2025 Nov 07 10:43 AM - edited 2025 Nov 07 12:57 PM
hello there lovely SAP Community,
id like to create a Account Assignment "M" with a reference for a Sales Order and Sales Order item for an already existing Sales order. it needs to be done with a Odata API.
Currently im Struggling with that on Item level a Update on Item lvl needs to be done to Change AccountAssignment Category to "M" and on Account Assingment lvl a Account assingment needs to be Created.
Kinda Like:
A Patch on item lvl.
Request clarification before answering.
Hello @Phil_P
Thank you for your question.
To summarise, account assignment handling in public cloud for purchase order through OData follows a two-step logic because of how the manage transactional consistency works within the clean-core framework.
You are correct that the system treats the Item-level “AccountAssignmentCategory” as an update to the item entity. The account assignment line itself as a create (POST) under the nested entity set _PurOrdAccountAssignment.
However, OData service for purchase Orders does not support performing both actions in a single payload or PATCH call. You are required to perform these operations sequentially. First you need to update the item category, then create the account assignment line.
Have a look at the following references for further details.
APIs in Sourcing and Procurement, Operations for Purchase Order, Display Purchasing Documents by Account Assignment, Account assignment in purchasing document
Let me know if you have further questions.
Best regards
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.