SAP Knowledge Base Article - Public

3787188 - Submit multiple project settlement rules in a single POST operation using Project Settlement Rule API - SAP S/4HANA Cloud Public Edition

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

  1. Use the Project Settlement Rule OData API to create a settlement distribution rule for a WBS element.
  2. Attempt to include multiple settlement distribution rules within a single POST operation.
  3. 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

  1. Prepare an OData $batch request to group multiple POST operations in one HTTP call.
  2. For each settlement distribution rule, create an individual POST operation within the $batch payload.
  3. Ensure each POST operation contains only the required fields per the API schema (for example: SettlementType, SettlementPercentageRate, AccountAssignmentType, FixedAsset).
  4. Send the $batch request to the Project Settlement Rule service so that multiple rules are created in one transaction.
  5. Verify that all distribution rules have been created as expected.

See Also

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

Product

SAP S/4HANA Cloud Public Edition all versions