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

MOVE-CORRESPONDING Alternative..

Former Member
0 Likes
2,090

It is recommended not to use the Move-corresponding statements in the code.

Is there any alternative of that..which improves performance.

ex.

MOVE-CORRESPONDING WA_ITAB1 TO WA_SUCLOG.

please suggest.

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,387

This is a misconception. While the use of MOVE-CORRESPONDING does add a very small amount of execution time, it's not worth worrying about. It would likely take more time writing the code to move the fields individually than would be saved over the life of the program.

Rob

Read only

ThomasZloch
Active Contributor
0 Likes
1,387

> It is recommended not to use the Move-corresponding statements in the code.

Where is this recommended, except in posts here that are copied from previous posts that are copied from previous posts that are...

As I stated on similar occasions, "corresponding" (in move and select statements) allows for very efficient programming techniques, whereas the performance aspect is neglectable (just compare yourself for heaven's sakes).

My favourite example is an ALV list based on a DDIC structure with the field catalog. Two new fields from already accessed tables are required. If you programmed the list correctly all you need to do is add those two fields to the DDIC structure and that's it. Thanks to "corresponding".

Thomas

Read only

0 Likes
1,387

Thanks Rob and Thomas for ur response.

Regards,

Gaurav

Read only

Former Member
0 Likes
1,387

Read this article also..

[Using MOVE-CORRESPONDING - Myth to Meaningful|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30c02051-852d-2c10-3c91-ba2bcf404510]

Read only

0 Likes
1,387

Handy document!

By the way what made you aware after 120 days?

Thanks for sharing.

Cheers

Read only

0 Likes
1,387

>

> By the way what made you aware after 120 days?

It may have been Vijay's subtle way of reminding me to take care of something that I said I would do a couple of weeks ago and have now done

Rob

Read only

0 Likes
1,387

I am just reading Rob's Sticky, i thought it is useful, and just want to contribute to Rob's Sticky. He already posted a link referring to the current thread. Instead of Adding my comment there, i added it to the existing thread.

Read only

Former Member
0 Likes
1,387

This message was moderated.