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

moving data within internal table.

Former Member
0 Likes
549

hi,

I want to move data from one column of itab to other column of itab.

itab is internal table.

ie moving from itab-count to itab-dummy.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
521

Hi..

i got it wrong..

loop at itab.

itab-dummy = itab-count.

modify itab index sy-tabix from itab transporting

dummy.

endloop.

Message was edited by:

Rammohan Nagam

Read only

Former Member
0 Likes
521

HI,

Look at itab.
move itab-count to Itab-dummy.
modify ITAB index sy-tabix.
Endloop.

Regards

Sudheer

Read only

Former Member
0 Likes
521

exchange:

DATA: temp LIKE itab-dummy.

LOOP AT itab.

temp = itab-dummy.

itab-dummy = itab-count.

itab-count = temp.

MODIFY itab INDEX SY-TABIX.

ENDLOOP.

just replace

LOOP AT itab.

itab-dummy = itab-count.

MODIFY itab INDEX SY-TABIX.

ENDLOOP.