Skip to Content
avatar image
Former Member

function module NUMBER_GET_NEXT

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Dec 24, 2014 at 02:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded