You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Default the Order Type based on the Sales Channel

We need to default the Order Type based on the Sales Channel when creating Return Orders using Order Management Extensions.

I have the following query to default based on the Transaction Type. Can someone help me include the Sales Channel as well?

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
def lines = header.getAttribute("Lines");
while ( lines.hasNext() )
{
def line1 = lines.next();
String CategoryCode = line1.getAttribute("TransactionCategoryCode");
if( CategoryCode == "RETURN")
{
header.setAttribute("TransactionTypeCode","Return - Rep Sales");
return;
}
}
return;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!