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

Warning MEssage not being displayed in UI

Received Response
edited Dec 11, 2020 6:03PM in Order Management 8 comments



I am trying to use the groovy script suggested by Oracle to validate duplicate PO numbers but the script seems to be throwing error message instead of warning. 


import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
// get the Customer PO Number
String customerPONumber = header.getAttribute("CustomerPONumber");
String OrderNumber = header.getAttribute("OrderNumber");
// If the PO number is null, then there's nothing to validate
if( customerPONumber == null ) return;
// We will use the HeaderPVO to run a query with a predicate based on customer PO Number. The where clause predicate will be set using

Howdy, Stranger!

Log In

To view full details, sign in.


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