Application Development 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: 

Updating to another internal table

Former Member
0 Kudos

Hi,

I am having two internal tables. I have to move only corresponding fields to another table. I have written code like this.. it is going dump.

LOOP AT GT_EKKO.

MOVE-CORRESPONDING: GT_EKKO TO GT_OUT.

MODIFY GT_OUT.

ENDLOOP.

Regards

Reddy.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Instead of MODIFY use APPEND..

LOOP AT GT_EKKO.

MOVE-CORRESPONDING: GT_EKKO TO GT_OUT.

<b>APPEND GT_OUT</b>.

ENDLOOP.

Thanks,

Naren

1 REPLY 1

Former Member
0 Kudos

Hi,

Instead of MODIFY use APPEND..

LOOP AT GT_EKKO.

MOVE-CORRESPONDING: GT_EKKO TO GT_OUT.

<b>APPEND GT_OUT</b>.

ENDLOOP.

Thanks,

Naren