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

Error in defaulting AR Transaction Type based on Sales Order type using Order Management Extensions

edited Apr 29, 2025 2:34PM in Order Management 4 comments

We are trying to default the AR Transaction Type based on Sales Order type using the Order Management Extensions. Pre Transformation Rules does not work in case of copy order, so we are using the Order Management Extensions.

Order Management Extensions Code: (latest)

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;

def extensionName = context.getExtensionName();
def varMessage = "IN code";
List<Message> messages = new ArrayList<Message>();
ValidationException ex = new ValidationException(messages);

def orderTypeCode = header.getAttribute("TransactionTypeCode");
def billingTxnTypeId

if( orderTypeCode.equals("OEM Sale-CHN") || orderTypeCode.equals("CF OEM-CHN"))
{
billingTxnTypeId = getBillingTxnTypeId("CHN_OE_SALE1");
}

else if ( orderTypeCode.equals("Sample Sale-CHN") || orderTypeCode.equals("PARTS FOR EMP-CHN"))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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