2007 May 07 9:10 AM
move-corresponding is only for structure or also for internal table?
if you know please some details.
2007 May 07 9:12 AM
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
2007 May 07 9:12 AM
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
2007 May 07 9:14 AM
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
2007 May 07 9:19 AM
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
2007 May 09 6:20 AM
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
2007 May 09 10:13 AM
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
2007 May 09 10:37 AM
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.
2007 May 09 10:37 AM
for both structure and internal tables
Regards,
Venkata chalapathi