cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API to create Inbound Delivery with reference to PO

ramesh_putta
Participant
0 Likes
1,183

Hello,

I am trying to use the API - API_INBOUND_DELIVERY_SRV/A_InbDeliveryHeader to create the inbound delivery with reference to a Purchase Order. I am using the following Json in the Gateway client.

ramesh_putta_0-1744291686127.png

But, I get the following error in the log.

ramesh_putta_1-1744291779408.png

Appreciate any inputs on what I am doing wrong here.

 

Accepted Solutions (1)

Accepted Solutions (1)

Sijin_Chandran
Active Contributor
0 Likes

Hello,

I tried checking this API in the SAP Sandbox system using TRY OUT feature in api.sap.com and it's indeed noted that there is no property/field available with name "ReferenceDocument" in EntitySet "A_InbDeliveryHeader" . You have passed 2 properties from header in this payload "ReferenceDocument" and "Supplier" , "Supplier" is there but the other one is not there and the message you got as a response is self-explanatory.

Please check.

Sijin_Chandran_0-1744295143529.png

Additional info:

"ReferenceDocument" is indeed found to be at the associated Item level entity that too with name "ReferenceSDDocument" , this api seems to be for Inbound Delivery to be created with respect to a Sales document and not for a Purchase document.

Sijin_Chandran_0-1744295596935.png

Thanks,

Sijin

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor
0 Likes

Check those samples in this SAP online help: Create Inbound Delivery, look for

  • Create an inbound delivery from purchase order 4500003742
  • Create an inbound delivery from a distinct purchase order item

(Basically use 'ReferenceSDDocument')