‎2008 May 01 7:38 AM
Hi all,
i my report i have a final internal table .
when i execute the report this final internal table values need to come under the ztable which i have created.
please help me how to get this values into ztable.
help me how to write code for this.
its urgent.
thanks in advance.
‎2008 May 01 7:41 AM
Hi Hemal,
Write the Below Code:
LOOP AT t_itab INTo wa_itab.
INSERT Ztable FROM wa_itab.
ENDLOOP.where t_itab is your Final Internal Table,
and Final Internal TAble is of Type ZTABLE,
and wa_itab you Work Area of Type ZTABLE.
Regards,
Sunil
‎2008 May 01 7:42 AM
Hi,
First of all the requirement should be that the internal table should be of the same structure as your Z table.
Then, once u get data into internal table,
You can simply write the statement :
MODIFY ZTABLE from table <itab>.
Regards,
Himanshu
‎2008 May 01 7:44 AM
Hi,
Do like this
MODIFY zsd_ra FROM TABLE it_zsd_ra.
UPDATE zsd_ra FROM TABLE it_zsd_ra.
Regards,
PRashant
‎2008 May 01 8:25 AM
hi,
using modify command i am getting the data.
but
i have 5 fields in my final internal table and same fields in ZTABLE.
in my final internal table i have 5 values but i am able to see only one value in Ztable i.e., last value.
please tell me how to write code to get all the values
‎2008 May 01 12:34 PM
hi this is one of the best way for inserting..
i had create a ztable z213 and i had given 2 fields matnr meins
tables:z213 .
data: begin of itab occurs 0,
matnr like mara-matnr,
meins like mara-meins,
end of itab.
select matnr meins from mara into table itab up to 10 rows.
loop at itab.
z213-matnr = itab-matnr.
z213-meins = itab-meins.
insert z213.
endloop.
regards,
venkat