Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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 Currency Conversion Type when SO currency is other than USD using OM Extension

Summary:

HI

Functional Currency is USD. When sales order is enter using currency other than USD then 'Corporate Currency'. Pre-transformation rule is not available for currency conversion type defaultation. So I am trying with groovy script in order management extension.

def currency = header.getAttribute("TransactionalCurrencyCode");

if (TransactionalCurrencyCode!= 'USD') {

  header.setAttribute("CurrencyConversionTypeCode", "Corporate");

}


The validation of the script is successful but it given an error when we create the sales order



Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

23C

Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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