How to set a sales order warehouse validation using order management extensions?.
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):
Tagged:
0