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

Former Member
0 Kudos
767

Hi i am using the FM number_get_next.

can u plss tell me waht are the essential things that i need to give to this function module.

like waht should be passed in nr_range_nr

object

quantity

subobjecttoyear

and most importantntly number

do i need to declare something to be passed to number heer

4 REPLIES 4

KalC
Active Participant
141

Hi ,

You have to pass nr_range_nr and object which you can create through SNRO transaction. you can get the number from the importing parameter NUMBER.

nr_range_nr should be 01 for internal number range and 02 for external number range. This is maintained in SNRO for that particular number range object.

reward if helpful.

Regards,

Kalyan.

Edited by: Kalyan on Dec 28, 2007 8:53 AM

Former Member
0 Kudos
141

Hi,

go to se37 --> type 'NUMBER_GET_NEXT' in Function module area --> press display

--> press FUNCTION MODULE DOCUMENTATION tab you can get all the details about that function module.(Try it out in ECC5.0 server).

hope this works.

former_member187452
Contributor
0 Kudos
141

Hi,

for this function module you need to create an object using Tcode SNRO . In that object you have to specify the number range.

Then you can pass that object to this FM.

Also you have to specify nr_range_nr = '01'.

and in the importing you will get the number generated.

Regards,

Bharat.

      • Reward Points if helpful.

Former Member
0 Kudos
141

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = var

OBJECT = 'ZGPNO'

IMPORTING

NUMBER = GEXNO

EXCEPTIONS

INTERVAL_NOT_FOUND = 1

NUMBER_RANGE_NOT_INTERN = 2

OBJEC

T_NOT_FOUND = 3

QUANTITY_IS_0 = 4

QUANTITY_IS_NOT_1 = 5

INTERVAL_OVERFLOW = 6

BUFFER_OVERFLOW = 7

OTHERS = 8.

-> Here "var" is nothing but if u go to transaction SNRO give the object name(ZGPNO) and click "number ranges" ,before "from number" and "to number" column u will find a column named "NO" ,VAR is the value we specify there.

-> "GEXNO" IS THE OUTPUT VARIABLE WHERE THE NEXT NUMBER FLOWS AUTOMATICALLY WHEN THE FUNCTION MODULE EXECUTES....

Reward if Usefull

Regards,

V.Balaji