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

Custom Number Range

Former Member
0 Likes
482

Dear All:

I am writing a custom application which requires a new custom table with a

unique sequential number as part of the key.

I was thinking of letting my program just lookup the last sequential number

used in this table, just before incrementing that number by 1 and then

writing out the new record to this table.

Are there better ways of doing this?

Any ideas much appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
459

use the function 'NUMBER_GET_NEXT'. In the table NRIV you have toinsert

some information about the range of the numbers you wish to have.

2 REPLIES 2
Read only

Former Member
0 Likes
459

Create a new Object from T-CODE - SNRO. Give an Interval and use the FM NUMBER_GET_NEXT to get the next number.

Hope this helps.

Amandeep

Read only

Former Member
0 Likes
460

use the function 'NUMBER_GET_NEXT'. In the table NRIV you have toinsert

some information about the range of the numbers you wish to have.