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


Please Help Members By Posting Answers For Below Questions

Explain the difference between tables and structures?

487


How to create report in SD open sales order which covers all Organization, delivery status, shipping details and partner function details. plz mention the detail coding Tahnks, Rahul

2123


How many structures can be created in a Ztable ?

3129


WHAT ARE THE INPUT PARAMETERS TO BE PASSED FOR THE BAPIS 'BAPI_CUSTMATINFO_GETDETAILM' AND 'BAPI_CUSTMATINFO_GETLIST'

1773


Differentiate between table and template ?

603






How many types of tables exists and what are they in data dictionary? : abap data dictionary

716


Is the basic list deleted when the new list is created?

582


how can we enable hyperlink in screen painter?

3380


Can you print decimals in type n? What is difference between float and packed data type?

758


What is an on”*-input filed” statement?

605


How many secondary indexes can we create in a table?

623


how do you transport lsmw data from one system to another?

666


What is lock mechanism? How do we create lock objects in abap?

641


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain.? : abap data dictionary

746


any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?

1987