2007 Dec 28 7:46 AM
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
2007 Dec 28 7:51 AM
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
2007 Dec 28 7:52 AM
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.
2007 Dec 28 7:53 AM
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.
2007 Dec 28 8:27 AM
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