cancel
Showing results for 
Search instead for 
Did you mean: 

Number range customizing to be used in USEREXIT_NUMBER_RANGE

Former Member
0 Kudos

Hi,

We are going to use the userexit "USEREXIT_NUMBER RANGE" to have different numbering for the invoices of each company code.

  1. First, I create the number range ID 80 from 9000000000 to 9099999999
  2. Secondly, I assign billing type F2  to number range ID 80 (from 9000000000 to 909999999)

and then I need to Split this number range for each company code.

My question is: where do we have to create the subranges for eachcompany codes:

COMPANY CODE A -- NUMBER RANGE ID A1 -- FROM 901000000 to 9019999999

COMPANY CODE B -- NUMBER RANGE ID B1 -- FROM 902000000 to 9029999999

etc

The problem is that I could not créate number ranges IDs A1 and A2 because it would be overlapping with nr.range ID 80 previously defined.


Could anyone clarify me this issue?

Thanks in advance,

LG

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member211104
Active Participant
0 Kudos

Hi,

please follow the below Points

1.create a Z table and maintain your parameters like company code + Billing type+Number range

2.Use the Exit- USEREXIT_NUMBER_RANGE (RV60AFZZ)


in the billing ,system will use the above user exit and number range will be determined from the Z-Table and which will be by pass the standard (which is maintained in the Billing Document ).Fill number range used when saving the invoice with the number range from table Z**** for the relevant company code (VBRK_BUKRS) and Billing type (VBRK-FKART).


you can check the Note 595327 for this .


Hope this helps to you , if not please let me know.


regards

sundar

Lakshmipathi
Active Contributor
0 Kudos
 where do we have to create the subranges for eachcompany codes

Can you reconfirm your above statement as we normally consider Sales Organization as the highest hierarchy for SD.  Also please let me know how many sales organizations one company code have.

G. Lakshmipathi

suman_sardar2
Active Contributor
0 Kudos

Hello LGI,

Do not try to create the Number range interval "80 from 9000000000 to 9099999999"

Create as per your requirement the two as you mentioned

"COMPANY CODE A -- NUMBER RANGE ID A1 -- FROM 901000000 to 9019999999

COMPANY CODE B -- NUMBER RANGE ID B1 -- FROM 902000000 to 9029999999"

Create a Ztable with the following combination;

Comp Code                / Billing Type / Number Range Interval

COMPANY CODE A /  F2                  / A1

Try to put the logic in the User exit so it will check the combination from the above table and as per the requirement it will create the Billing document  number for the specified company code.

Try to do it in the DEV and let me know the outcome.

Thanks,

Suman$

Former Member
0 Kudos

Thanks Suman for your reply.

Just a clarification, in the customizing in SPRO > Sales and Distribution > Billing > Define Billing types I do not have to assign the number range in each billing type, right? (see screenshot attached to which field I refer)

thanks,

LG

suman_sardar2
Active Contributor
0 Kudos

Hi,

Yes you do not have to assign it implicitly in the Billing document in VOFA if you are going for the Exit.

Please try it and update here.

Thanks,

Suman$