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.