Skip to Content
0
Jun 15, 2009 at 05:45 AM

Using move vs. manual assignment of workarea values

48 Views

Dear forumers,

Just a quick question here:-

Example 1:

    LOOP AT i_tab1 INTO w_wa_1.
      w_wa_2-bukrs = w_wa_1-bukrs.
      w_wa_2-anln1 = w_wa_1-anln1.
      w_wa_2-aktiv = w_wa_1-aktiv.
      w_wa_2-deakt = w_wa_1-deakt.
      w_wa_2-invnr = w_wa_1-invnr.
      w_wa_2-txt50 = w_wa_1-txt50.
      append w_wa_2 to itab2.
    ENDLOOP.

Example 2:

    LOOP AT i_tab1 INTO w_wa_1.
      move w_wa_1 to w_wa_2.
      append w_wa_2 to itab2.
    ENDLOOP.

If w_wa_1 and w_wa_2 have exactly the same structure, which method is better for higher performance - Example 1 (manual assignment of workarea values) or Example 2 (using the move statement, not the move-corresponding statement)?

Appreciate your inputs here - just needed some confirmations.

Thanks.