Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Warning MEssage not being displayed in UI — Cloud Customer Connect
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
7
Views
6
Comments
edited Dec 11, 2020 6:03PM in Order Management 6 comments

Content

HI,

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.

Register

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