SAP Knowledge Base Article - Public

3447823 - Best practice when using API Purchase Order Accruals Periodic Amount - Read, Adjust, Review

Symptom

This article introduces guidelines when using API Purchase Order Accruals Periodic Amount - Read, Adjust, Review.

Environment

SAP S/4HANA Cloud

Resolution

We recommend the following guidelines when calling the API actions AdjustPlannedCost and SetPerdcPurOrdAccrsToReviewed:

  • Include 100 entries per changeset within a single HTTP request, it takes about 3.2 seconds to process such a changeset.
  • Limit the number of entries per changeset to no more than 1000 in a single HTTP request, it takes about 40 seconds to process a changeset with 1000 entries.
  • In cases where multiple changesets are included within one HTTP request, we advise maintaining a total of no more than 5000 entries, it takes 2.6 minutes to process 50 changesets with 100 entries in each.

Additionally, if you want to call the API in an asynchronous mode, you can add key-value "prefer:respond-async" in the HTTP request header. The client will directly get a "HTTP 202 accepted" response, accompanied by a location URL directing to the status monitor in the response header which can be used later by the client to fetch the result.

 

When calling the API to fetch the periodic accrual entries:

  • By default, the OData response includes a maximum of 100 entries. If additional entries remain, the response will feature a link within the property "@odata.nextLink" to fetch the remaining entries.
  • If query option $top is set with a value exceeding 5000, the OData response contains up to the number of entries specified by the provided $top value. Should there be further entries to retrieve, the response provides a link within the property "@odata.nextLink" to obtain the remaining entries.

 

Note: The system performance and time provided serve as guidelines and are subject to change based on the resources utilized by other processes or tenants within the same client environment.

See Also

Overview | Purchase Order Accruals Periodic Amount - Read, Adjust, Review | SAP Business Accelerator Hub

Keywords

Purchase Order Accruals Periodic Amount - Read, Adjust, Review, guidelines, best practice, AdjustPlannedCost, SetPerdcPurOrdAccrsToReviewed, changeset, HTTP request. , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions