Application Development 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: 

How to find Last number used in the number range

Former Member
0 Kudos

Dear All,

I have created a Number range in SNRO and I have used it in many programs to generate number.

Now I need to find out and use the Last number used (or Current number) in that Number range object in one of my program.

Is there any standard Function module or Table to find out the Last number used in the Number Range?

Can anyone let me know the solution for this?

7 REPLIES 7

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

You can get the result from SNRO itself.

SNRO --> Give the Number Range Obj. --> Number Ranges --> Display Intervals.

Do you want this to be done programatically ?

You can check the table NRIV-NRLEVEL. This gives you the number that was last used.

BR,

Suhas

Edited by: Suhas Saha on Jun 30, 2009 4:55 PM

GauthamV
Active Contributor
0 Kudos

Check NRIV table.

Former Member
0 Kudos

check the number range in display mode, there itself you will find the current no generated.

Former Member
0 Kudos

>

> Dear All,

>

> I have created a Number range in SNRO and I have used it in many programs to generate number.

> Now I need to find out and use the Last number used (or Current number) in that Number range object in one of my program.

>

> Is there any standard Function module or Table to find out the Last number used in the Number Range?

>

> Can anyone let me know the solution for this?

Please search the forum for the FM 'NUMBER_GET_NEXT'

Regards

Rajesh

0 Kudos

>

> Please search the forum for the FM 'NUMBER_GET_NEXT'

That will "use up" the next number.

Rob

0 Kudos

>

> >

>

> > Please search the forum for the FM 'NUMBER_GET_NEXT'

>

> That will "use up" the next number.

>

> Rob

Will this FM 'NUMBER_GET_INFO' help then?

Regards

Rajesh.

uwe_schieferstein
Active Contributor
0 Kudos

Hello

Of course there is a standard fm available and it would have taken you only a few seconds to find out:

NUMBER_GET_INFO

Regards

Uwe