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: 

Number Range, Next Number

Former Member
0 Kudos

Hello guys,

I am using the FM 'NUMBER_GET_NEXT' to get the next number of the specified number range object. Is there a way to get the detail of the last number used in that number range. So that, if the last number created in the number range object is not used by any documents, I will use that number instead of calling the FM 'NUMBER_GET_NEXT' to get the next number.

Regards,

Greg

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
0 Kudos

HI,

Welcome to SDN/SCN

You can get this info from NRIV Table.

pass your Number Range Object to OBJECT and execute in SE16/SE11 the current Running number is given by NRLEVEL Field

In SNRO make the No of Numbers in Buffer to 0

Cheerz

Ram

3 REPLIES 3

former_member1245113
Active Contributor
0 Kudos

HI,

Welcome to SDN/SCN

You can get this info from NRIV Table.

pass your Number Range Object to OBJECT and execute in SE16/SE11 the current Running number is given by NRLEVEL Field

In SNRO make the No of Numbers in Buffer to 0

Cheerz

Ram

Former Member
0 Kudos

Hi,

NRIV is the table where number range details are stored. So hit this table to get require information.

Former Member
0 Kudos

Thanks guys, it worked

Cheerzz,

Greg