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: 

function module NUMBER_GET_NEXT

Former Member
0 Kudos

Hi guys,

I have an issue with function module NUMBER_GET_NEXT, it is returning old numbers from previous years

for example I'm passing this parameters:

NUMBER_GET_NEXT

NR_RANGE_NR                 01
OBJECT                      ZWTY_MAST
QUANTITY                    00000000000000000001

and it is returning

NUMBER                      007000139

In the transaction SNRO  I have:

Intervals:

No  From number   To Number  Current Number

01    007000000    007999999    7000146

Can somebody reply?

thanks a lot

1 ACCEPTED SOLUTION

Former Member
0 Kudos

In SNRO for the Number Range Object, if To Year is checked, the numbers are reset every year.

For such cases, you need to pass the year in the parameter TOYEAR when calling FM NUMBER_GET_NEXT

4 REPLIES 4

Former Member
0 Kudos

In SNRO for the Number Range Object, if To Year is checked, the numbers are reset every year.

For such cases, you need to pass the year in the parameter TOYEAR when calling FM NUMBER_GET_NEXT

0 Kudos

Hi,

Please check SNRO in To-year flag is checked or not?

and also check that "No interval rolling" flag....

else old number will get roll again....

Regards,

Naga

0 Kudos

thanks for your helpful answer, I will test

0 Kudos

thanks for your helpful answer, I will test