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

OM Extension to update Schedule ship date

Summary:

The requirement is to update the schedule ship date = Requested ship date -15 days. Used the groovy script given in oracle document (Doc ID 3019572.1) to update Schedule ship date. Facing Jave Exception error .

Need your Expert advice to fix this.

Content (please ensure you mask any confidential information):

Groovy script:

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;

def LineRSD = line.getAttribute("RequestShipDate");
if (LineRSD == null) return;
def LineRSD_Time = LineRSD.getTime();
def vPSD = new java.sql.Date(LineRSD_Time - getTimeInMillis(15));
def lines = header.getAttribute("Lines");
while( lines.hasNext() ) {
def line = lines.next();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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