‎2006 Sep 14 7:07 PM
can any body please explain about move and move-correspoding...thanks
‎2006 Sep 14 7:17 PM
hi vijaya,
mOVE - > when we use Move,
MOVE source to TARGET.
here source and target shuld be of same structre and order.
MOVE COressponding - >
MOVE CORRESSPONDING source TO target.
the source and target shuld be same structure but can be in different order.
but the process will happend correctly like MOVE.
BUT PERFORMANCE
***********************
NEVER USE MOVE CORRESSPONDING.
IT WILL TAKE MORE TIME.
SO ALWYS USE 'MOVE'.
RGDS
anver
if hlped mark points
‎2006 Sep 14 7:11 PM
Hi,
MOVE just move the values without looking at the field names. Meaning it just the moves the number of characters from the source to the target structure OR variable.
MOVE-CORRESPONDING looks for the corresponding field names in the target structure and move those values only..
DATA: BEGIN OF source,
matnr type matnr,
end of source.
DATA: BEGIN OF target,
vbeln type vbeln,
matnr type matnr,
end of target.
source-matnr = 'asdfasf'.
MOVE-CORRESPONDING source to target.
write: / 'vbeln- ', target-vbeln.
write: / 'matnr- ', target-matnr.
clear: target.
skip 1.
MOVE source to target.
write: / 'vbeln- ', target-vbeln.
write: / 'matnr- ', target-matnr.
If you see the second output the value in matnr is moved to
vbeln in target.
Thanks,
Naren
‎2006 Sep 14 7:13 PM
MOVE is used to move data from one field to another field with similar datatype.
MOVE-CORRESPONDING is used to move data between structures. It searches for all names of subfields that occur both in struc1 and struc2.
‎2006 Sep 14 7:17 PM
hi vijaya,
mOVE - > when we use Move,
MOVE source to TARGET.
here source and target shuld be of same structre and order.
MOVE COressponding - >
MOVE CORRESSPONDING source TO target.
the source and target shuld be same structure but can be in different order.
but the process will happend correctly like MOVE.
BUT PERFORMANCE
***********************
NEVER USE MOVE CORRESSPONDING.
IT WILL TAKE MORE TIME.
SO ALWYS USE 'MOVE'.
RGDS
anver
if hlped mark points
‎2006 Sep 14 7:24 PM