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

How to write the groovy script for the Line type selection in sales order (Order management)

edited Oct 3, 2023 9:35AM in Order Management 3 comments

Summary:

Requirement - Order type = CH Return SO and Line type = Return for credit and return the item

Content (required):

In the below script, when user select Return for credit and return the item line type then also it will showing the Warning/Error.


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


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

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

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


String messageText = "Please select Return Type as Return for credit and return the item ";

String orderTypeCode = header.getAttribute("TransactionTypeCode");

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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