on 08-14-2019 5:41 AM
Hi all,
This query was raised with me earlier today. The documentation is strong in this area, so I have added both the answer and the links to the documentation in case community users have similar issues around APIs in the future.
Question - "I'm trying to create a sales order with reference to 'value contract' using SalesOrder API 'SAP_COM_0109'. I am passing over the contract number in payload using field '"ReferenceSDDocument". The expectation is that both the header & line items will be copied over from the contact to sales order. In this case only the header fields are getting filled. Is there a way to automatically copy over header & line items from contract to sales order without adding all item information into the payload?"
Thanks
Answer: "So that the system knows which item(s) to copy into the sales order, you need to fill in the reference item number and reference document number at item level for the item(s) that you want to copy. Try using the following:
{
"SalesOrderType" : "OR",
"ReferenceSDDocument" : "40000xxx",
"to_Item":[
{
"ReferenceSDDocument" : "40000xxx",
"ReferenceSDDocumentItem" : "10"
},
{
"ReferenceSDDocument" : "",
"ReferenceSDDocumentItem" : ""
}
]
}
-------------------
See the following documentation for further info:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.