Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question