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

API Purchase Order Item Note

Julien_Rouillard
Explorer
0 Likes
580

I would like to use the API_PURCHASEORDER_2 odatav4 API to mass upload the item long text on purchase Order.

Following documentation on api.sap.com and help.sap.com I was able to create a note on the Purchase Order Item. However, it appends to existing text, it doesn't overwrite. Is there a way to overwrite?

Thank you

Julien

Accepted Solutions (0)

Answers (1)

Answers (1)

Filipp
Explorer

Hi Julien,

I don't have access to the system with that API, but if you can't (I assume) manipulate RAP BO implementation to make SAVE_TEXT to insert the text, then you could try to use a $batch request that DELETEs the existing note entity first, then POSTs the replacement text:

POST /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/$batch

You'd want to GET the existing note first to obtain its key.

KBA 3604894 ("How to POST several OData V4 service entities at the same time") documents $batch support for this API and uses PO item notes as its example payload.

Julien_Rouillard
Explorer
0 Likes

Hi,

That was my alternative option, unfortunately, I am on premise and there is no API to delete purchase Item note text.

Thanks

Julien