Symptom
When using the API_PRELIMINARYBILLINGDOCUMENT and attempting to PATCH multiple PricingDocumentItemElement records within a single $batch request, the system returns the following error message: "The system cannot process more than one condition type in one session".
Environment
SAP S/4HANA Cloud Public Edition
Cause
This is the system behavior of the API_PRELIMINARYBILLINGDOCUMENT service regarding pricing condition updates. The changing pricing elements in the first batch may impact subsequent conditions.
Resolution
Split each PATCH into a separate session.
See Also
- Help documentation: Preliminary Billing Document API – Update
Keywords
API_PRELIMINARYBILLINGDOCUMENT, preliminary billing document, pricing condition, PATCH, condition type, pricing recalculation, PricingDocumentItemElement, multiple conditions, session , KBA , SD-BIL-PBD-2CL , Preliminary Billing Documents (Public Cloud) , Problem
SAP Knowledge Base Article - Public