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 to issue the tickets in support project?
1 Answers Bristle Cone, Cap Gemini, HCL, HP, Satyam, Wipro,
Dear Experts pls answer the folowing qs that i have faced in the recent intvws: a) Can we execute the script individually? If yes How? Else what we need to do so? b) Are Layout sets Client independent? c) How do you assign a print program to a script? d) Can we call a subroutine in a script? If so, how? e) What are the steps to print SAP script form?
What data is contained in data dictionary? : abap data dictionary
How do you document abap/4 programs? Do you use program documentation menu option?
check sy-subrc = 0 and if sy-subrc =0 difference explian
Hat are the different types of mode (run code) in call transaction method?
my questions are (1) how to transport a table along with its data from dev to prod/qa server? pls reply elaborately. if possible with screen shots. (2) i want to display like this :- * ** *** ****
How to attach a search help? how can you validate the entries in TMG?
what is bapi,badi,bdc,ale idocs?
What is Field symbol?
Urgent Openings for Professionals with 4+ yrs in SAP ABAP HR, for a Reputed CMM Level V Organization in Hyderabad
in ECC6.0 version which package u r working means what? if errors occurs during database updation using bapi how vl v know??bcoz it directly updates db?? how vl v pass tables in smartformd?