cancel
Showing results for 
Search instead for 
Did you mean: 

SD number range based on company codes

Former Member
0 Kudos

Dear all,

We have two company codes in one client.We want to create  separate SD number ranges based on company codes.Is there any possibilities to do this.Please advice.

Regards,

Abdul jabbar

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member8821
Active Participant
0 Kudos

As per my experience, clients want separate document types per company code. You could do the same, as you have only 2 company codes.

You have to assign the number range to a document type (sales doc type, delivery type, billing type, Sales Invoice type and etc.)

mahendra_jani3
Contributor
0 Kudos

Hi Abdul,

Try some coding as shown below in RV60AFZZ.

Create a Z-Table with whichever parameter you need and update the same with Number Range ID.

Assign From to To numbers in SNRO for billing documents.

Regards,

MJ.

former_member186940
Participant
0 Kudos

Hi Abdul,

I got curious when i saw your question. So i started searching for the same, one of the solution could be what  has provided. However i found another possible solution on SCN provided by Former Member . the link...

regards,

Amol Marathe

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Please, see SAP Note 595327 - Determining a different number range interval. The note determines different number range per company as a template

I hope this helps you

Regards

Eduardo

hasan_ahmed1
Active Participant
0 Kudos

Abdul,

If you have  different doc types for two company codes then you can maintain different number ranges in standard for two company codes.

If you have same doc types for two company codes then you have to go for enhancement.

1. Create one ztable: Maintain the entries like below.

company codeSD document categ.Document typeSequence NumberPrefix codeObject nameNumber range number
2XX1CZXXX1A01Z_XXX_X101
2XX1CZXXX1A01Z_XXX_X101
2XX1CZXXX1A01Z_XXX_X101
2XX1CZXXX1A01Z_XXX_X101
2XX1HZXXX1A01Z_XXX_X101
2XX1HZXXX1A01Z_XXX_X101
2XX1HZXXX1A01Z_XXX_X101
2XX1HZXXX1A01Z_XXX_X101
2XX1HZXXX1A01Z_XXX_X101
2XX1JZXXX1A02Z_XXX_X102
2XX1JZXXX1A02Z_XXX_X102
2XX1JZXXX1A02Z_XXX_X102
2XX1JZXXX1A02Z_XXX_X102
2XX1JZXXX1A02Z_XXX_X102
2XX1KZXXX1A01Z_XXX_X101
2XX1KZXXX1A01Z_XXX_X101
2XX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XXX_X108
2XX2SZXXX1A08Z_XXX_X108
2XX2TZXXX1A07Z_XXX_X107
2XX2TZXXX1A07Z_XXX_X1

07

2. In SNRO Maitain the number Ranges interval

First system take the number range interval and searches for the entry in ztable and prefix the code as per the ztable enteries.

By this u can differentiate the number ranges by company code.

Revert back to the forum if need any clarification.

Thank$

Hidayath

former_member182378
Active Contributor
0 Kudos

abdul,

in my experience, clients have separate document types per company code. You could do the same, as you have only 2 company codes.

You can assign the number range to a document type (sales doc type, delivery type, billing type)