Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modifying the internal Table

Former Member
0 Likes
609

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

6 REPLIES 6
Read only

Former Member
0 Likes
581

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.

Read only

Former Member
0 Likes
581

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

Read only

Former Member
0 Likes
581

Use this command.In transporting put all your fields that you want to modify.

MODIFY TABLE scarr_tab FROM scarr_wa

TRANSPORTING currcode.

Read only

Former Member
0 Likes
581

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

Read only

0 Likes
581

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 ?

Read only

Former Member
0 Likes
581

Hi,

use sy-index instead of sy-tabix.

Regards,

Seema