UFFI Sales Order - How to set a UDF
I have successfully created a UFFI that imports an XML file as a Sales Order Drafts.
My sticking point is setting a UDF that will show it as imported - I can't find any reference to setting a UDF to a value?
0
-
My Google-Fu seems to be working better today -
https://answers.sap.com/questions/325294/how-to-update-a-udf-value-in-arinvoice-uisng-diapi.html
Has this line in the code - I replaced oInvoice with document (the object for the Order I'm importing) and U_yourfieldname with the UDF field name and it worked perfectly.
oInvoice.UserFields.Fields.Item("U_yourfieldname").Value = "aaa";
-
Hello,
Can you share your code to import a sales order?
Thank you
Please sign in to leave a comment.
Comments
2 comments