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_GET_NEXT: how it gets the number

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

jogeswararao_kavala
Active Contributor
0 Kudos

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

2 REPLIES 2

jogeswararao_kavala
Active Contributor
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

Perform some search in online help with keywords : Number Range Buffer

Regards,

Raymond