on 04-05-2024 5:09 PM
Hello Experts
We are using SAP standard API https://api.sap.com/api/OP_API_SALES_ORDER_SRV_0001/path/post_A_SalesOrder
for Sales order creation. While making POST call to create Sales order along with Sales order items the Sales order is getting created successfully along with items. However in the response Payload the items section is returned as blank and we expect the line items details that got created. Please let me know how to get the line items data as well in the response Payload during POST call.
Current response received for items:
"to_Item" : {
"results" : [
]
}
Regards,
Abdul Hakim
Hi All, We have received response from SAP Support. This is the current API Design and there is no bug in the Standard API. Regards, Abdul Hakim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thanks for the response. Our sender system is expecting the item data as well as part of the response payload after successful POST operation and they do not want to perform another GET call. Please let me know if this is possible in this particular API.
Regards,
Abdul Hakim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abdul,
have you checked afterward on the database if the sales order was created with the items?
If yes then it might be that the creation happens asynchronously. Otherwise, which I am guessing right now a bit more, you did not create the items on the salesorder. You have not done a deep insert and therefore the items are empty.
Best,
Edrilan Berisha
SAP S/4HANA Cloud Financials Development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.