10-18-2007 2:46 PM
Hi
Req :
A varible which should be a unique no for one execution of the program .
if the variable is i_doc = '1000000000' for one execution (f8), then for the next execution(f8) of the prog 'i_doc = '1000000001'. and so on . It should be
a number of length 10. Not time and date varible fields.
Thanks,
Vind.
10-18-2007 2:48 PM
10-18-2007 2:47 PM
Hi,
You can create a Number range object and then you can get the next number every time the report is run,.
The number range object can be created through the transaction SNRO. You can use the Function Module
NUMBER_GET_NEXT to get the next number.
Regards,
Aj
10-18-2007 2:48 PM
10-18-2007 3:33 PM
Hi
i created a object z_doc through SNRO tc., Can you pls let me know how to use this varible in the fm NUMBER_GET_NEXT.
Thanks,
Vind.
10-18-2007 3:43 PM
Simply pass the name Z_DOC and the interval number, if you have not yet created an interval, you can do so in the SNRO transaction, this is simply telling the number range object what the number range is, like 1000000000 to 1999999999
DATA: new_number(10) TYPE c.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '0001'
object = 'Z_DOC'
IMPORTING
number = new_number
EXCEPTIONS
OTHERS = 8.
Regards,
RIch Heilman
10-18-2007 2:49 PM
Hi Vind,
You could place an entry on table TVARV and update it or create a number range.
Regards,
Chester