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
What is the use of table control in bdc is it same in module pool table control? : abap bdc
What are the differences between primary and secondary indexes?
What is difference between dependent and independent data?
What is meant by exclusive, not cumulative lock? : sap abap data dictionary
How do you populate data into a multiple line field?
How to find Kernal badi ?
What is the syntax of packed number?
What are the page windows? How many main windows will be there in a page window?
When to use logical database?
What is the difference between internal tables and extract datasets? : abap modularization
Describe the difference between macro and subroutine?
Define the various contents of technical specifications ?
Explain what is the difference between sy-tabix and sy-index? Where it is used?
Difference between call by value and call by reference? : abap data dictionary
How do you send files to the legacy systems from SAP and vice versa? How does one know that the legacy files have come on to the SAP server you are working on?