on ā2026 Feb 09 3:05 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.