Need help on making warehouse mandatory on a sales order header
Summary:
Need help on making warehouse mandatory on a sales order header
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;
def warehouse = header.getAttribute("WarehouseId"); // Warehouse attribute at header
if (warehouse == null || warehouse.toString().trim().isEmpty()) {
throw new ValidationException("Warehouse is mandatory at the header level");
}
Tagged:
0