Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

number range object

Former Member
0 Likes
634

hi all,

i have to create number range interval like that,

D1 2009 0001 TO 9999

D2 2009 0001 TO 9999

.

.

.

DZ 2009 0001 TO 9999

My key field is D1, D2, ...., DZ, based on that i have to pick interval from number range object.

and the requirement is for every D1, D2, D3, ....., DZ, number should start from 0001 for every year.

but in SNRO , it is showing enter interval without overlap,

ifs there any alternative to solve this problem,

any suggestion is appreciated

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
588

What you exactly describe can't be done with number range alone (because the numbering 0001 to 9999 must be unique for each year, which is not the case with what you want).

Instead, I advise you to create a number range according to SAP philosophy (for example D1 has number range 010001 to 019999, D2 : 020001 to 029999, etc.), and you define a conversion exit for the number domain, which removes the first 2 digits : an internal number 010001 will be displayed "0001", 020001 will also be displayed "0001" (you may also choose to display "D1-0001", "D2-0001", etc.)

Read only

0 Likes
588

Hello,

I have to deny this statement. It is possible to start count for each year new from one. Therfore you have to activate the year checkbox in the number range definition.

For structuring the count to another value you can use sub component or grouping. Both techniques could be used and differ in detail. You should check the documentation which best fits your needs in you customer development the number range object is used in.

Best regards

Roman Weise

Read only

0 Likes
588

Roman, yes I was wrong in saying it was not directly possible. I think the only possibility is to use the "subobject data element" functionality. The subobject would correspond to the 2 characters field (D1...DZ). For each subobject, Yogesh has to enter only one interval. For example, he will enter D1 subobject with interval "01" from 0001 to 9999, then he will enter D2 subobject and create another interval "01" from 0001 to 9999.

When you say "I have to deny this statement", it should apply to my statement "can't be done with number range alone" (thank you for correcting me as I was wrong), but NOT to "it must be unique for each year" : I don't say it can't restart from 0001 each year, but that in one year, numbers must be unique (here I forgot that we could use subobjects).