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

ShipToCountry Hold based on the Order extension.

Summary:

Requirement is to apply Hold based on Ship to Country.

Can you please share the code?

Content (required):


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.util.logging.Level;

List < Message > messages = new ArrayList < Message > ();def logger = context.getLogger();

def ShipToCountry = header.getAttribute("ShipToCountry");

def lines = header.getAttribute("Lines");

while(lines.hasNext()) {

def line = lines.next();

if (ShipToCountry == "Japan")

{

def hold = line.applyHold("COMPLIANCE_HOLD"); // create a hold and use the COMPLIANCE_HOLD hold code

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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