SAP Knowledge Base Article - Public

3754817 - An Error Occurs When Creating A Credit Memo via Billing Document API – S/4Hana Cloud Public Edition

Symptom

The following error occurs when creating a credit memo via API:

Billing of SD doc. 12345678 not supported because its SD doc. category is M. (Where 12345678 refers to the Billing Document ID).

Environment

 SAP S/4HANA Cloud Public Edition

Reproducing the Issue

Execute the respective payload.

Cause

The error Billing of SD doc. 12345678 not supported because its SD doc. category is M. because the SDDocumentCategory was M (Invoice) while referencing a Credit Memo Request, which should use the category K (Credit Memo) instead.

Resolution

In order to resolve the issue, the payload needs to be adjusted accordingly with the appropriate SDDocumentCategory, as per below:

{
   "_Control":{
      "DefaultBillingDocumentDate":"2026-04-23",
      "DefaultBillingDocumentType":"G2",
      "AutomPostingToAcctgIsDisabled":false
   },
   "_Reference":[
      {
         "SDDocument":"12345678",
         "SalesOrganization":"1010",
         "SDDocumentCategory":"K"
      }
   ]
}

Further details, please refer to the following codes which should be used for each document category:

  • A: Inquiry 
  • B: Quotation
  • C: Order
  • D: Item Proposal
  • E: Scheduling Agreement
  • F: Scheduling Agreement with External Service Agent
  • G: Contract
  • H: Returns
  • I: Order Without Charge
  • J: Delivery
  • K: Credit Memo Request
  • L: Debit Memo Request
  • M: Invoice
  • N: Invoice Cancellation
  • O: Credit Memo
  • P: Debit Memo

Keywords

odata v4, billing document api, createfromsddocument, credit memo, credit memo request, sd document category, sdDocumentCategory K, sdDocumentCategory M, billing due list, error message billing of sd doc not supported, sdbil_bd_rap 003, g2 credit memo type, vf01 consistency , KBA , SD-BIL-IV-2CL , Processing Billing Documents (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions