2006 Jun 21 2:22 PM
Hi everybody,
is it possible to generate number range automatically, instead of using transaction 'snro'?
Here 'automatically' means to call certain FM.
Thanks in advace!
Regards,
Liying
Hi everybody,
is it possible to generate number range automatically, instead of using transaction 'snro'?
Here 'automatically' means to call certain FM.
Thanks in advace!
Regards,
Liying
2006 Jun 21 2:25 PM
Hi,
'NUMBER_GET_NEXT' -
Creates Next Number Range for the object
2006 Jun 21 2:30 PM
2006 Jun 21 2:39 PM
No, I mean I want to create a Number Range Object, not the next number.
2006 Jun 21 2:40 PM
Hi,
Unless you create a object in SNRO you cannot use the function module NUMBER_GET_NEXT to get the next serial number. If you are talking about this, an object in SNRO is mandatory and you can use the function in your program to get the next number.
If you want to generate your own serial number, you need to keep track of what was the last number, interval, min and max numbers etc.
Regards,
Ravi
Note : Please mark the helpful answers
2006 Jun 21 2:45 PM
Yes, I want to generate mein own serial number,
"you need to keep track of what was the last number, interval, min and max numbers etc."
Yes, I want to do this via FM,is this possible?
regards,
Liying
2006 Jun 21 2:48 PM
Hi,
If you want to do all this by yoruself, then I guess you will have to build your own custom tables as well the code for that.
I don't think there are any functions that SAP Provides for the same.
Regards,
Ravi
2006 Jun 21 2:57 PM
Hi,
I found FMs:
NUMBER_RANGE_OBJECT_MAINTAIN
NUMBER_RANGE_OBJECT_READ
are they correct ones,somehow?
Regards,
Liying
2006 Jun 21 3:01 PM
2006 Jun 21 3:01 PM
The problem is, this function NUMBER_RANGE_OBJECT_MAINTAIN also is capable of maintaining the number range object is a dialog program, so throws the screens where in the user can edit the data of a specific number.
It still doesn't create a number range.
NUMBER_RANGE_OBJECT_READ - just gets you the details of the object.
Look at the documentation, they are very clear
NUMBER_RANGE_OBJECT_INIT - This just intializes the memory of the project.
Regards,
Ravi
Note : Please mark the helpful answers
Message was edited by: Ravikumar Allampallam
2006 Jun 21 2:59 PM
HI,
Create a Number range Object in <b>SNRO</b> t.code.
Use the Function module <b>'NUMBER_GET_NEXT'</b> to get the next number.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = <No range object which you created in SNRO>
IMPORTING
number = <you will get the next no here>.Thanks
Sudheer