‎2007 Feb 22 12:44 PM
Hi All,
I created one Z table and one dialog program for maintain that table.
In that i have one field which has to be maintained programatically just like PO number. For every new record that has to be incremented by one.
How can i do this.
Regards,
Ashwin
‎2007 Feb 22 12:48 PM
CReate a Number range in SNRO transaction.
IN your program you have to use the FM NUMBER_GET_NEXT to get a unique number every time.
Regards,
Ravi
‎2007 Feb 22 12:48 PM
from ur program ur inserting data into the table....before that declare a variable as
data: val type i.
select max(field) into v_field from ztable.
val = v_field + 1.
ztable-field = val.
update other values of ztable...
insert ztable.
‎2007 Feb 22 12:49 PM
‎2007 Feb 22 12:49 PM
Hi
,
You need to create a Number Range object for this one. in the Transaction code SNRO, Create a Number Range object in this one. and use the below function module to get the next number every time and store that next number in that field
<b>GET_NEXT_NUMBERS
RH_GET_NEXT_NUMBER</b>
Regards
Sudheer
‎2007 Feb 22 12:50 PM
Hello,
This can be done with Tcode SNRO:
All the use the FM SWU_NUMBER_RANGE_CREATE
Vasanth
‎2007 Feb 22 1:00 PM
HI Guys,
Thanks for ur replys.
But i created a ztable, so how can i create a number range.
Regards,
Ashwin