SAP Knowledge Base Article - Public

3633545 - Item numbering discrepancy between sales document and billing document

Symptom

Item numbering is not identical between sales document and billing document despite field 'copy item number' is set on header level in copy control of sales document to billing Document.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Set the flag 'Copy item number' in copy control on header level.
  2. Create a sales order with several items. Some items should have billing plan. Example:
    • Item 10
    • Item 20 (Item with billing plan)
    • Item 30 (Item with billing plan)
    • Item 40
  3. Create the billing document.
  4. Check the number of the billing line items. The numbering and the sequence of items seem to be incorrect. Example:
    • Item 10
    • Item 40
    • Item 41 (Item 20 of sales document with billing plan)
    • Item 42 (Item 30 of sales document with billing plan)

Cause

  • The line-item number in the invoice is taken over from the configuration of the `Copy item number` flag within the copy-control settings for Sales document to Billing document. When this flag is activated, the line-item numbers in the invoice are carried over from the sales order. However, if the flag is not activated, the system reassigns item numbers during the billing document creation process. 
  • To elaborate, the system processes line items without a billing plan first, followed by those with a billing plan. For example, the first and last line items in the sales order do not have a billing plan, so they are processed first and assigned as the first and second items in the invoice as 10 and 40. 
  • Subsequently, the items with a billing plan are processed, and their item numbers are reassigned as 41 and 42, following the configuration in the Node - Define Billing Types. This field determines the increment by which the system automatically generates item numbers for sales, delivery, or billing documents. 

Resolution

This is the standard system behavior as designed by SAP.

See Also

Keywords

item numbering, sales document, billing document, copy item number, sap s/4hana cloud, billing plan, line items, sequence, incorrect numbering, standard design, sap system , KBA , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions