what is difference between MOVE and MOVE-CORRESPONDING?
Answer Posted / 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 |
Post New Answer View All Answers
How can we set the table spaces and extent sizes? : abap data dictionary
What are pool tables?
What is the max no of match code id's that can be defined for one match code object? : abap data dictionary
What is netweaver???what is the relationship with ABAP?
What is bdc programming? : abap bdc
Can we use flow logic control key words in abap/4 and vice-verse?
What is an update task? : abap modularization
Suppose the client wants me the vacancy to be displayed on a website as well as ess. How should I do it? : sap abap hr
What are the two methods for modifying sap standard tables?
What two statements are required in an abap program to output an icon using a write statement?
Explain some essential objects in abap dictionary?
How can we create callable modules of program code within one abap/4 program?
Define subtype ? : abap hr
What two statements are required in an abap program to output an icon using a written statement?
What are the advantages and disadvantages of using views in abap programming ?