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

about move statement in abap.

Former Member
0 Likes
1,643

move-corresponding is only for structure or also for internal table?

if you know please some details.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,098

move-corresponding is for internal table

move-corresponding itab1 to itab2.

append itab2.

This will transfer the fields from itab1 to itab2 with the same field names in both the tables

move-corresponding is only for structure or also for internal table?

if you know please some details.

7 REPLIES 7
Read only

Former Member
0 Likes
1,099

move-corresponding is for internal table

move-corresponding itab1 to itab2.

append itab2.

This will transfer the fields from itab1 to itab2 with the same field names in both the tables

Read only

Former Member
0 Likes
1,098

HI,

Move corresponding is for internal tables..

Structure does not hold any data.. Its just a definition of fields..

Move corresponding fields of itab to itab1..

It does move all similar field data of itab with itab2..

rewards if useful

regards,

nazeer

Read only

Former Member
0 Likes
1,098

Hi,

To move values between the components of structures, use the statement

MOVE-CORRESPONDING <struct1> TO <struct2>.

This statement moves the contents of the components of structure <struct1> to the components of <struct2> that have identical names.

When it is executed, it is broken down into a set of MOVE statements, one for each pair of fields with identical names, as follows:

MOVE STRUCT1-<ci> TO STRUCT2-<c i>.

Regards

Sudheer

Read only

Former Member
0 Likes
1,098

Move corresponding is for internal tables..

Move corresponding fields of itab1 to itab2.

it will move all the fields from itab1 to itab2,

Inorder to send one field alone from itab1 to itab2.

then

move itab1 to itab2 transporting fieldname where.....

try to reward yar if its useful,

thanks and regards

vijay

Read only

Former Member
0 Likes
1,098

Hi,

Move-Corresponding is for either structure or Internal table can be use.

and Nested structure also we can use. but the structure/Internal table same component should be there.

MOVE-CORRESPONDING struc1 TO struc2.

But Maximum we should try to avoid this statement why becuase it is performance issue.

Regards

Ganesh

Read only

Former Member
0 Likes
1,098

hi vel,

if your itab structure and database table structure mismatchs then only u can use 'move-corresponding' statemnent otherewise 'move' statement is enough,

and also if u use 'move-corresponding' statemnent then performance of ur report can be a problem..

regards..

seshu.

Read only

Former Member
0 Likes
1,098

for both structure and internal tables

Regards,

Venkata chalapathi