cancel
Showing results for 
Search instead for 
Did you mean: 

regarding number generating for Forms

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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