what is difference between MOVE and MOVE-CORRESPONDING?

Answer Posted / malli.gontla

move statement is more effienet than move-corresponding.
In case of dialog programming move/movecorresponding stsmt
are used to put internal table workarea data into screen fields.
data: begin of itab occurs 0,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
ort01 like lfa1-ort01,
end of itab.(here lfa1 is DBtable name)
:
:
* in case of movecorresponding

Move-Corresponding itab to lfa1.
(here:lfa1 is screen fields name).

* in case of MOVE stmt.

Move itab-lifnr to lfa1-lifnr.
Move itab-name1 to lfa1-name1.
Move itab-ort01 to lfa1-ort01.

Movecorresponding :
If DBtable having 1000 fields and you are using
movecorresponding, then system has to check all the field in
table to move.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are two different ways to add fields to sap tables?

532


How to call transaction in session method without recording?

1548


Difference between /N and /BEND?

823


Difference between sy-tabix and sy-index?

797


how to read the standard field value in your custom program.

991






Why do we need enhancements?

633


Final class

1019


What is a table cluster? : abap data dictionary

738


What is an authorization in sap?

615


What is the disadvantage of using exec sql statement in abap?

538


A subroutine can be terminated unconditionally using exit. State true or false : abap modularization

613


Explain client-dependent and client-independent tables.

611


What is the tcode for sapscript forms?

660


Explain some essential objects in abap dictionary?

707


What is an update task? : abap modularization

592