Symptom
- Updating NetPriceAmount on an existing standard purchase order item via PATCH does not change the value when a header-level discount condition is maintained.
- The header-level discount is applied across all items, but the PATCH on item NetPriceAmount does not work as expected.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a standard purchase order with NetPriceAmount and discount pricing conditions at the item or header level.
- Maintain the discount at the header level so it is applied across all purchase order items.
- Attempt to update the item's NetPriceAmount using the Purchase Order OData API (PATCH on the purchase order item).
- The return code indicates success, however the net price in the PO is not reflecting the change when checked in ME23N.
Cause
When supplementary conditions other than the base price are present, the NetPriceAmount cannot be modified directly — the update must be made by patching the pricing element instead.
Resolution
- Do not PATCH NetPriceAmount on the purchase order item entity. Instead, use the OData V4 service to work with pricing elements (API_PURCHASEORDER_2).
- Retrieve the item's pricing elements by navigating from PurchaseOrderItem to the pricing element entity (for example, _PurOrdPricingElement) and identify the base price condition (for example, condition type ZPR0).
- PATCH the pricing element with the required values, such as:
- ConditionRateAmount
- ConditionCurrency
- ConditionIsManuallyChanged = true
- If you receive "Condition … cannot be processed manually", adjust the condition type setting in configuration:
- SSCUI 101094 "Set Pricing Condition Types - Purchasing"
- Change Manual Entries (KMANU) from D (Not possible to process manually) to one of: ' ' (No limitations), A (Free), or C (Manual entry has priority), as required.
- After updating configuration, repeat the PATCH on the pricing element. The pricing procedure will recalculate the item net price while preserving header-level discounts.
- Avoid deleting and recreating discount pricing elements unless specifically required; the supported approach is to update pricing elements via the API.
Keywords
NetPriceAmount, purchase order, OData API, PATCH, header discount, pricing conditions, PurOrdPricingElement, ConditionRateAmount, ZPR0, KMANU, SSCUI 101094, API_PURCHASEORDER_2, condition cannot be processed manually, base price condition, pricing update , KBA , MM-FIO-PUR-PO-2CL , Fiori UI for Purchase Orders (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public