cancel
Showing results for 
Search instead for 
Did you mean: 

API_SALES_ORDER retuning empty values for sales order items during POST operation

abdul_hakim
Active Contributor

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

Ryan-Crosby
Active Contributor
0 Kudos
That is normal for a POST operation. If you want to retrieve the results after the POST, then you would follow it with a GET operation.
Ryan-Crosby
Active Contributor
0 Kudos
$batch can be used to initiate a GET request after the POST.
abdul_hakim
Active Contributor
0 Kudos
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
View Entire Topic
abdul_hakim
Active Contributor
0 Kudos

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