Skip to Content
author's profile photo Former Member
Former Member

Sales Order Number Range


Would like to know if is it possible, in SAP S/4 HANA Cloud, to assign different number range to the same SD document type based on organizational elements (e.g. Sales organization).

In the on premise version, such result could be achieved through program user exit (e.g. for sales document, the include program MV45AFZZ - USEREXIT_NUMBER_RANGE).

In Manage your solution, through configuration step 102819, number range for sales documents can be defined; while with configuration step 102495, number range can be assigned to each available document type.

Is such 1:1 relationship between number range and document type, the only option currently available on the SAP S/4 HANA Cloud?

Thank you very much for your help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 25, 2019 at 08:08 AM

    Hello Luca,

    Thanks for your question! Please be very careful in dealing with number range changes in S/4HANA cloud.

    The user exit is not available on S/4HANA cloud. So you can only assign one number range to a sales document type. Please don't touch SAP predefined number range settings. Some customers changed SAP predefined number range, error occurred during S/4HANA cloud upgrade.

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 25, 2019 at 09:02 AM

    Hi Luca,

    Assigning different number range to sales documents based on custom logic such as org. elements is currently not supported in S/4HANA Cloud. There is no corresponding BAdI to support this extension.

    However, I'm not sure if its relevant for your business requirement - the solution supports flexible billing document numbering.

    You can use it to allocate a newly created billing document of a given billing document type to one of several internal number range intervals. This enables a flexible allocation of billing documents to number range intervals that is dependent on one or more attributes (header fields) of the billing document that is to be created.

    The document number of the new billing document is drawn from the number range interval that the custom logic determines. The custom logic in the BAdI method determines the correct number range interval for a given billing document by evaluating whether specific billing document header fields satisfy certain conditions that you must specify when implementing the BAdI.

    Examples of these fields include the originating sales organization, company, tax departure country, and any custom fields that have been added to the billing document header through extensibility. Depending on the result of the evaluation, the system then creates the new billing document number in the number range interval that you have specified to be appropriate for the situation.

    Business Context: Sales - Billing Document

    BAdI: Flexible Billing Document Numbering



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.