Number Range Object-3

lightNumber Range Object & Sub Object

 

 

 

For a number range object ( without sub object) we can maintain multiple ranges and these range numbers can’t overlap . It is possible for each object we can assign a sub object( optional) data element and multiple ranges can be maintained for each object and sub object value.


Go to Tx- SNRO

1

Provide number range object name and select Create button.

2

Provide short & long text. provide subobject data element as LAND1 ( country) and number length domain & %warning. Select Customizing tab.

3

Set No Buffering and Save.

4

Up to now we have create a object with subobject. Now we have to maintain the range for each subobject. So select Ranges button.

5

As subobject is assigned, thwn we have to maintain the range for each of the sub object value.

6

Provide country name as DE and select Change Intervals button.

7

Here provide interval number as ’01’ & range from 1000 to 9999. Finally Select Save button.

8

Similarly maintain range for sub object value IN.

9

10


Here we have an application program that uses FM -NUMBER_GET_NEXT and passes the object, sub object & interval number to generate the next sequential number.

1112

13


Execute the program multiple times for land as ‘IN’ and it generates the sequential number as maintained.

141516


Execute the program multiple times for land as ‘DE’ and it generates the sequential number as maintained.

17181920


If we execute the program for a country where sub object interval is not maintained we receive a message as below.

2122


If we check the NR status for each of the number range interval of each sub object then we can get to know the current NR status.

2324


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s