Symptom
The Document Numbering Rule for Invoices is used for a Credit Memo in some cases but in others the correct Document Numbering Rule is used.
Prerequisites:
- The scoping element Invoice and Credit Memo Items in Customer Invoice Request is In Scope.
- A different Prefix is set up in the Fine Tuning Activity Document Numbering Formats for Customer Invoicing is set up for the Document Type Invoice and for Document Type Credit Memo
Environment
SAP Business ByDesign
Reproducing the Issue
-
Go to the Business Configuration work center.
-
Select the Overview view.
-
Open Fine Tuning Activity Document Numbering Formats for Customer Invoicing.
-
Click on Define document numbering formats for other countries/regions.
-
There are 2 rules created for the respective Company and Country:
For Document Type Invoice the prefix AB is maintained and for Document Type Credit Memo the Prefix CD is maintained
- Go to the Customer Invoicing work center.
- Select the Invoice Documents view.
- Search for AB-XXX-2024. The Invoice Type is Credit Memo and the Total has a negative value.
- Search for CD-XXX-2024. The Invoice Type is Credit Memo and the Total has a negative value.
You expect that both have the Prefix CD as per the rule defined.
Cause
The scoping element Invoice and Credit Memo Items in Customer Invoice Request is In Scope in your system. This means that you can create Manual Invoice Requests or Manual Credit Memo Requests that include both Invoice Items (with a positive amount) and Credit Memo Items (with a negative amount).
If you create different document numbering rules with different Prefix in the Fine Tuning Activity Document Numbering Formats for Customer Invoicing for the Document Type Invoice and for Document Type Credit Memo, the system will use the corresponding prefix depending on the positive or negative overall Total of the Invoice when the Invoice is created.
When AB-XXX-2024 was created the total overall amount was positive and the amount was then changed to an overall negative amount.
Resolution
This is the expected system behaviour.
See Also
Keywords
Inconsistent, Document Numbering, Negative Invoice, Customer Invoices, Credit Memo, Credit Memo Item, Invoice Item, Document Numbering Rule, Prefix, , KBA , AP-CI-CI-GLO , Cross-Country Extensions , Problem
SAP Knowledge Base Article - Public