‎2006 Jul 26 10:48 AM
Hi friends,
i am modifying the internal table with index sy-tabix, but the record in that particular index is being removed while modifying in this way.
how to modify the internal table with out affecting the already existing records ?
I already tried Append, its adding a extra line but thats not fulfilling my requirement. I need to modify the internal table with out affecting my existing data.
pls help me.
Thanks & regards,
Joe
‎2006 Jul 26 10:50 AM
Hi joseph,
1. use this logic
2. Use extra variable.
3.
<b>DATA : TABIX INDEX TYPE SY-TABIX.</b>
loop at itab.
<b>TABIX = SY-TABIX.</b>
itab-field1 = 'xyz'.
<b>MODIFY ITAB INDEX TABIX.</b>
endloop.
regards,
amit m.
‎2006 Jul 26 10:50 AM
Hi,
use this
Modify itab
from wa
index <index>
transporting field1 field2 .
field1 , field2 ---> fields to be modified.
transfer the value to be modified in the workarea ( WA )
Message was edited by: Manoj Gupta
‎2006 Jul 26 10:51 AM
Use this command.In transporting put all your fields that you want to modify.
MODIFY TABLE scarr_tab FROM scarr_wa
TRANSPORTING currcode.
‎2006 Jul 26 10:52 AM
Hi,
See this...
Modify table itab index transporting matnr.
check syntax.
I think you missed TRANSPORTING.
Thanks.
If this helps you reward with points.
Message was edited by: KDeepak
‎2006 Jul 26 11:07 AM
Hi Deepak ,
my problem is index only,
if i give sy-tabix , the current record in that index is being removed, i am asking the solution for that only.
can you help me ?
‎2006 Jul 26 11:09 AM