what is difference between MOVE and MOVE-CORRESPONDING?
Answers were Sorted based on User's Feedback
Answer / bhabaneesh
Move is used to data transfer between the same structure
but move-corresponding data transfer between two structure
if both have some common fields
Is This Answer Correct ? | 38 Yes | 2 No |
Answer / yasin
Take a look at this example
05 WS-CURRENT-DATE.
10 CURRENT-CC PIC X(02).
10 CURRENT-YY PIC X(02).
10 CURRENT-MM PIC X(02).
10 CURRENT-DD PIC X(02).
05 WS-INSERT-DATE.
10 CURRENT-MM PIC X(02).
10 FILLER PIC X(01) VALUE '/'.
10 CURRENT-DD PIC X(02).
10 FILLER PIC X(01) VALUE '/'.
10 CURRENT-CC PIC X(02).
10 CURRENT-YY PIC X(02).
MOVE CORRESPONDING WS-CURRENT-DATE TO WS-INSERT-DATE
Here 'Move Corresponding' moves the fields in WS-CURRENT-
DATE variable to their same field names in WS-INSERT-DATE,
irrespective of their Structure .
Move Statement will just moved the contents as is from a
variable to other, irrespective of the fields .
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / srinivas
move-corresponding is the one used to move internal body
work area to screen fields.
move-corresponding itab to lfa1.
where as move statement is used to move field by field from
internal body to screen fields.
move : itab-lifnr = lfa1-lifnr.
Is This Answer Correct ? | 4 Yes | 7 No |
How does one know that the legacy files have come on to the SAP server you are working on?
what is the difference between mainwindow n final window?
What are the organizational related infotypes? : abap hr
what is use of sap script text file header?
Find the scenario and give the result: a, b, c are employees, where a, b will get basic, hra, da. C gets basic and da. How to group for the allowances? : sap abap hr
What are the events in screen programming?
What is the difference between data elements and domains?
what is Catch Command?
how can u write in single program call transaction and session method logic? if u
2 Answers Enteg Technologies, Wipro,
How will you process errors in session method?
In Interactive Report ,can I have more than 20 interactive Lists? Is it Possible ,If Yes How can i do it?
What is the meaning of client independent?