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-do-date-transformations-in-groovy-extensions

Summary:

how-to-do-date-transformations-in-groovy-extensions

Content (please ensure you mask any confidential information):


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



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;
import java.sql.Timestamp;

java.util.Date sysDate = new java.util.Date();

def poNumber = header.getAttribute("CustomerPONumber");

if(poNumber == "HA12RI34")	
{


msg= new Message( Message.MessageType.WARNING," Time in UTC :" + sysDate );
throw new ValidationException(msg);

}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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