Symptom
It is necessary to create multiple settlement rules at once for a project in a single POST API call using the API API_PROJECTSETTLEMENTRULE.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use the Project Settlement Rule OData API to create a settlement distribution rule for a WBS element.
- Attempt to include multiple settlement distribution rules within a single POST operation.
- Observe that the response payload returns HTML Error and the data was not posted to the system if multiple settlement rules are included in a single POST call.
Cause
The API does not support submitting multiple distribution rules in a single POST operation. Multiple rules must be sent as separate POST operations combined in an OData $batch request.
Resolution
- Prepare an OData $batch request to group multiple POST operations in one HTTP call.
- For each settlement distribution rule, create an individual POST operation within the $batch payload.
- Ensure each POST operation contains only the required fields per the API schema (for example: SettlementType, SettlementPercentageRate, AccountAssignmentType, FixedAsset).
- Send the $batch request to the Project Settlement Rule service so that multiple rules are created in one transaction.
- Verify that all distribution rules have been created as expected.
See Also
- API Specifications: Overview | Project Settlement Rule | SAP Business Accelerator Hub
- Help Portal: Settlement Distribution Rule for Project
Keywords
project settlement rule api, multiple fixed assets, wbs element, distribution rule, odata, batch request, $batch, single post limitation, create multiple rules, edmx, settlement to asset, account assignment an, projectsettlementrule, public api, s4hana cloud , KBA , CO-OM-2CL , Overhead Cost Controlling (Public Cloud) , Problem
SAP Knowledge Base Article - Public