‎2006 Aug 26 11:17 AM
Hi,
I know how to create number range object and want to know how to assing to a table field or any object.
I want this to generate a new number whenever a new entry happen for that object.
thanks and regards.
Krishna
‎2006 Aug 26 11:19 AM
Hello Krishna
Using function module NUMBER_GET_NEXT with your number range object you get the next free number. In your application you have to assign this value to the requested (key) field.
Regards
Uwe
‎2006 Aug 26 11:19 AM
Hello Krishna
Using function module NUMBER_GET_NEXT with your number range object you get the next free number. In your application you have to assign this value to the requested (key) field.
Regards
Uwe
‎2006 Aug 26 12:53 PM
hi
good
go through these links
/people/federico.babelis2/blog/2006/04/14/service-desk-configuration-guide-for-dummies
http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/6eb2aa7aed44ea92ebb969e03081fb/content.htm
thanks
mrutyun
‎2006 Aug 26 2:10 PM
Hi Krishna,
In your program, you can read the next number by using the function NUMBER_GET_NEXT
DATA l_number TYPE i.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZTEST'
quantity = '1'
IMPORTING
number = l_number
quantity = ' '
RETURNCODE =
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
OTHERS = 7.
display l_number.
The informations about number ranges are stored in tables :
- TNRO Definition of number range objects
- NRIV Number range intervals.
Please do reward helpful answers.
Thanks
Satya Priya