‎2006 Dec 13 9:26 AM
Hi
my internal table have 10 fields. i need to populate the data into first field based on 9 fields data.
i did that part. but my problem is how to append that first field data into corresponding row of same internal table body.
‎2006 Dec 13 9:28 AM
Hi,
Read the sy-index when u r doing the calucaltion on 9 fields. Store it is local varaible like l_index.
Then after the calculation use the following syntax.
MODIFY ITAB WITH INDEX l_index transporting <field 1>.
Regards,
Vivek.
Reward if helps.
‎2006 Dec 13 9:29 AM
‎2006 Dec 13 9:28 AM
Hi,
In loop read the record of internal table.
assign the value to the field and modify that internal table.
loop at itab.
itab-field1 = 'XYZ'.
modify itab.
endloop.
Rgds,
Prakash
‎2006 Dec 13 9:30 AM
Hi,
use modify statement in the loop of that table.
for example:
loop at itab.
itab-field1 = itab-field2 + itab-field3 + ..
modify itab intex sy-tabix.
endloop.
regards
srini
‎2006 Dec 13 9:34 AM
loop at itab.
<do your checking assign the value for itab-f1 = 'abc' or something>
modify itab index sy-tabix.
endloop.
regards
shiba dutta
‎2006 Dec 13 9:36 AM
Hi,
loop at itab into wa.
wa-field1 = ...
modify itab from wa transporting field1 index sy-tabix.
endloop.
‎2006 Dec 13 9:38 AM
Hi,
Plz. use this elegant and simplest way, by using of field-symbols!
TYPES: BEGIN OF t_itab,
col1 type n,
col2 type n,
col3 TYPE n,
END OF t_itab.
DATA: itab TYPE TABLE OF t_itab,
wa TYPE t_itab.
FIELD-SYMBOLS: <fs> TYPE t_itab.
START-OF-SELECTION.
....
LOOP AT itab ASSIGNING <fs>.
<fs>-col1 = <fs>-col2 + <fs>-col3.
ENDLOOP.
....
END-OF-SELECTION.
if useful, please reward
‎2006 Dec 13 9:39 AM
LOOP AT ITAB.
MODIFY ITAB INDEX SY-TABIX TRANSPORITNG F1.
ENDLOOP.for the first field when changes are performed sy-tabix eq 1 and here the changed value say F1 (will be ur field ) overlapping in that field.
u have to use this .
regards,
vijay