Skip to Content
avatar image
Former Member

regarding number generating for Forms

Is it possible in SAP to generate alpha numeric number for Sales order, Sales Invoice, Cash memo, Debit note, Credit note etc with having individual predefined prefix for each document type along with individual serial number for each site?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 23, 2008 at 01:53 PM

    Hi Farahnaz,

    Well, you can do this only using the number range user exit.

    If you want to maintain number ranges per site / document type you can do something like this :

    Either create a new Z table with WERKS (site) / Document type (AUART) / Number range, and after this you can use the exit found in program MV45AFZZ -> FORM userexit_number_range USING us_range_intern -> INCLUDE zv45afzz07, and here you should check against your Z* table which is the number range to be used. Note that the number range should be maintained in the normal VN01 transaction.

    This table would only identify which number range will be used in the case of WERKS (or any other field you need) and document type. Than having the number range you should call the normal function (CALL FUNCTION 'NUMBER_GET_INFO' and 'GET_NEXT_NUMBER).

    In the standard SAP you can only assign number ranges to each document, independent of sales area or plant.

    If you need further controls this is the most secure way of having it.

    Regarding the alphanumeric ranges - in transaction VN01 you can define for example - AA00000 - AA99999 and check the flag 'external'. like this the system knows that this number ranges will be defined and called via customer exits.

    Let me know if this helped you,

    Regards,

    Alcides Fialho

    Add comment
    10|10000 characters needed characters exceeded