Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Unable to set the RSD, Shipping & Packing Instruction through OM Extension

Summary:

Unable to set the RSD, Shipping & Packing Instruction through OM Extension using the createLineParams
Content (please ensure you mask any confidential information):

We are trying to Add Lines To An Order Using Extension through Excel upload using Header Attachment File. In the Attachment we have LineNo, Item, UOM,Qty, RSD, Shipping, Packing and Slitting Instructions.

These values coming in xml file after invoke OIC call.

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

24B (11.13.24.04.0)

Code Snippet (add any code snippets that support your topic, if applicable):

   index = (j+1);     
    def createLineParams = new CreateLineParams();
    createLineParams.setProductNumber(CFItemNumber); //"AAC235-MR1");
    createLineParams.setOrderedQuantity(LineQty);
    createLineParams.setOrderedUOM(ItemUom)
    header.createNewLine(createLineParams); 
   
    def lines = header.getAttribute("Lines");
    while (lines.hasNext()) {
   
      def line = lines.next();
      def lineno = line.getAttribute("DisplayLineNumber") as int; 
      if(lineno == (j+1))
      {
      
   

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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