Skip to Content
author's profile photo Former Member
Former Member

Performance Tunning

Which one is better among the two :

Loop

Move-Corresponding ta2 to tab1

Endloop.

or

Loop.

tab1-f1 = tab2 -f1.

Endloop.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:56 AM

    there is a better option if the structure of both table are same.

    itab1[] = itab2[]

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:58 AM

    HI

    Loop.

    tab1-f1 = tab2 -f1.

    Endloop.

    is the better option to choose

    because in the 1st one your useing MOVE CORRESPONDING it is not good to us e

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:55 AM

    second one ofcourse

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 05:56 AM

    Hi

    in the first case you should have the same field names

    so if there are are not matching fields it may be problem

    where as in second case since you are moving the particular field it is good always

    anycase in both cases we have to use append Itab.

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.