Symptom
Perform a credit recheck on the released sales order on the same day without making any changes to the order.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
API Sales Document with Credit Block - Read, Check, Release, Reject (A2X) can be used to trigger a same day credit recheck on the released sales order. The steps mentioned below should be followed to execute the API successfully:
- Get the Credentials.
- Go to app Communication Arrangements.
- Find the arrangement for the scenario SAP_COM_0325 (Sales Credit Management Integration).
- The Communication User (Basic Auth) and Password (provided when the arrangement was created) can be found inside the arrangement. If the password is no longer known, a new Communication User and Arrangement may need to be created.
- Test the API in Postman.
-
In Postman, issue a GET request to:
https://<your-tenant>/sap/opu/odata/sap/API_SLS_DOC_WITH_CREDIT_BLOCK/
Add header: X-CSRF-Token: Fetch
Use Basic Auth with the communication user from Step 1 - Copy the returned X-CSRF-Token and session cookies from the response.
-
Run a POST request to:
https://<your-tenant>/sap/opu/odata/sap/API_SLS_DOC_WITH_CREDIT_BLOCK/CheckCreditBlock?SDDocumentCategory='C'&SalesDocument=''
Add header: X-CSRF-Token: <token>
Add header: Cookie: <your-session-cookie>
See Also
Keywords
FIN-FSCM-CR, SD-BF-CM, Sales Document with Credit Block - Read, Check, Release, Reject (A2X), SAP_COM_0325, Sales Credit Management Integration, credit recheck, sales order, API_SLS_DOC_WITH_CREDIT_BLOCK , KBA , SD-BF-CM-2CL , Credit Management (Public Cloud) , FIN-FSCM-CR-2CL , Credit Management (Public Cloud) , How To
SAP Knowledge Base Article - Public