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, Next Number

Former Member
0 Likes
778

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
Read only

Former Member
0 Likes
714

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

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

3 REPLIES 3
Read only

Former Member
0 Likes
715

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

Read only

Former Member
0 Likes
714

Hi,

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

Read only

Former Member
0 Likes
714

Thanks guys, it worked

Cheerzz,

Greg