‎2008 Mar 28 10:22 AM
Hiii,
I have to insert data into a single column of a internal table from a field.The rest of the columns of the internal table are already filled.
wats is the syntax for it?? plz reply soon...its very urgent.
‎2008 Mar 28 10:45 AM
Hi,
try this
data idx type sy-tabix.
loop at itab.
itab-fld1 = 'some value'. " your empty field
modify itab index idx.
endloop.Regards,
V.Balaji
Reward if Usefull...
‎2008 Mar 28 10:22 AM
‎2008 Mar 28 10:25 AM
Hi
pass the value to other field then use modify transporting f1
loop at itab into wa.
v_index = sy-index.
read itab1 from wa1 with key f1 = f1
binary search.
if sy-subrc = 0.
wa-f2 = wa1-f2.
modify itab from wa index v_index transporting f2.
endif.
Regards
Shiva
‎2008 Mar 28 10:25 AM
hi,
do this way ....
DO 10 TIMES.
INSERT sy-index
INTO int_tab INDEX 1
REFERENCE INTO dref.
enddo.
‎2008 Mar 28 10:34 AM
thanks for ur reply.
but cn u be more clear in this...wat is reference and dref?
DO 10 TIMES.
INSERT sy-index
INTO int_tab INDEX 1
REFERENCE INTO dref.
enddo.
‎2008 Mar 28 10:45 AM
Hi,
try this
data idx type sy-tabix.
loop at itab.
itab-fld1 = 'some value'. " your empty field
modify itab index idx.
endloop.Regards,
V.Balaji
Reward if Usefull...
‎2008 Mar 28 10:49 AM
try like this..
data: wa like itab.
loop at itab.
wa-4thfield = 'ur value'.
modify itab from wa transporting 4thfield where 1st field =itab-1stfield and 2nd field = itab-2ndfield.
clear:wa.
endloop.
reward if useful..
Regards
Sugumar G
‎2008 Mar 28 10:50 AM
Hi,
data: V_idx type sy-tabix.
loop at itab.
itab-fld1 = itab1-field1.
modify itab index V_idx .
endloop.
‎2008 Mar 28 11:09 AM
i have tried in that way but all the fields of the internal table are getting modified.
for eg
field1---values need not to be changed,shud remain constant.
field2 -- values has to be inserted into this.
without changing other fields of the internal table.
‎2008 Mar 28 11:14 AM
It should not happen.... did you try like this??
LOOP AT itab INTO wa_itab.
wa_tab-fld3 = 'Some value'.
MODIFY itab FROM wa_itab INDEX sy-tabix.
ENDIF.
Otherwise ..can you paste your code here..by that we'll get better idea...
‎2008 Mar 28 11:16 AM
‎2008 Mar 28 11:12 AM
Hi,
data idx type sy-tabix.
loop at itab.
idx = sy-tabix.
itab-fld1 = 'some value'.
modify itab index idx.
endloop.Regards,
V.Balaji
Reward if Usefull...