Symptom
You are using the API Credit Memo Request (A2X) to create a credit memo request. When the credit memo request is created, it automatically receives a default billing block Y8 - Check Credit Memo.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- A credit memo request is being created using the API Credit Memo Request (A2X).
- After the document is created, it automatically receives a billing block.
Cause
For this and similar OData APIs, you can use the property <HeaderBillingBlockReason> for billing block relevant configuration.
Resolution
If you want to remove billing blocks from credit memo requests, a PATCH request - /A_CreditMemoRequest('{CreditMemoRequest}') can be triggered to update the blocked credit memo request. If the property <HeaderBillingBlockReason> is maintained as below, the field for billing block will be left as initial.
- XML format: <HeaderBillingBlockReason/>
- json format: "HeaderBillingBlockReason": ""
See Also
SAP Help Portal - Credit Memo Request Header
Keywords
API_CREDIT_MEMO_REQUEST_SRV, Billing Block, Sales Document, OData API, HeaderBillingBlockReason, Remove Billing Block, Credit Memo Request, Sales Order , KBA , SD-SLS-API , API , SD-SLS-API-2CL , API (Public Cloud) , How To