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

Not able to create freight line with specified line type using OM extension

Hi Team,

We are trying to create sales order line using Order management extension and we are using the createLineParams PVO to create the line using the below code snippet.

//---
import oracle.apps.scm.doo.common.extensions.CreateLineParams;
def poNumber = header.getAttribute("CustomerPONumber");
if(poNumber != "CreateStandaloneLine") return;
def createLineParams = new CreateLineParams(); // Initialize the new variable so we can send the required attributes.
createLineParams.setProductNumber("AS54888"); // Add the AS54888 item to the new line.
createLineParams.setOrderedUOM("Each"); // Set the unit of measure to Each.
createLineParams.setOrderedQuantity(10); // Set the ordered quantity to 10.
header.createNewLine(createLineParams); // Use the attribute values from the above lines to create the line. The extension will cascade the other ship to and bill to attribute values from the order header.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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