cancel
Showing results for 
Search instead for 
Did you mean: 

Add new PO line item to the existing PO in S4 Public Cloud system using API

jgoud
Explorer
0 Kudos
173

Hi Experts,

I have a requirement to add a new PO line item to an existing PO in the S4 Public Cloud system. I finished changing PO line item data using the PATCH technique. However, it appears that adding a new PO line item to an existing PO on S4 Public Cloud is a difficult task. If the system is on-premise, we can use the BAPI to easily satisfy this need. However, using the API: API_PURCHASEORDER_PROCESS_SRV is really tough. Could you pls assist me if you know the solution.

Thanks & Regards,

Jay

Accepted Solutions (0)

Answers (1)

Answers (1)

daviddasilva
Active Contributor
0 Kudos

Hi Jay,

I suspect you need to use POST to create a new PO Line Item.

PATCHing is only for updating an object that is already there. By definition, a new PO Line Item means that it doesn't exist - so you need to use POST. You will need the PO number as a Key I imagine in the URL so you add a new line item to that specific PO.

Kind regards,

David