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 set a sales order warehouse validation using order management extensions?.

edited Oct 21, 2024 1:25PM in Order Management 8 comments

Summary:

I need to avoid that sales order warehouse was empty before to submit the sales order.

Content (please ensure you mask any confidential information):

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

def lines = header.getAttribute("Lines");

while (lines.hasNext()) {

def line = lines.next();

def InvOrg = line.getAttribute("InventoryOrganization");

if (!InvOrg == null) {

throw new ValidationException("Warehouse is mandatory");

}
}

But validation is not working, the sales order is submitted even is warehouse is empty


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

Oracle Fusion Cloud Applications 24C (11.13.24.07.0)

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!