NUMBER_GET_NEXT: how it gets the number
Hi Friends,
How the FM NUMBER_GET_NEXT, get the next number evethough the last generated number was not stored in database.
Thanks with Regards,
Vallamuthu M
Jogeswara Rao K replied
Hello vallamuttu,
See the sample code
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZPMDD'
quantity = '1'
IMPORTING
number = v_number.
Here ZPMDD is the number range object created in SNRO from where this fm gets the last created number. Means prior to use of this fm you need to create an object in SNRO and specify the range.
Regards
KJogeswaraRao