Among "Move" and "Move Corresponding", which is efficient one?
Answers were Sorted based on User's Feedback
Answer / sukhbir
Both will move data from one itab to other...
However Move statement can only be used to pass data b/w 2
similar structured internal table.
Performance issue :
Move corresponding reduces the performance and not
suggested.
Is This Answer Correct ? | 11 Yes | 2 No |
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 ? | 9 Yes | 3 No |
Answer / prabha
as of me...
Move is the efficient compare to move-corresponding.
becuz.........
comming to move statement
if we use move it directly moving to appropriate field.
if we moving one-one field no problem..but if we are moving
total structure both should have same structure....
comming to move-corresponding ...
if we use this first it have to search for corresponding
field then it will do move operation...
so it is not that much efficient than move...
if i am wrong please correct me.
Is This Answer Correct ? | 4 Yes | 0 No |
I think Move-corresponding is better than Move.
Think you want to transfer data between two internal tables
of different type, e.g. 10 fields
I saw comment above that move-corresponding will have to
look all the fields and then transfer which takes time.
That's true but what if you have used Move. There will be
10 lines of code and it also does the transfer only. So
performence wise there is not big difference.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / aashish mehta
For "move-corresponding", the two internal tables must have
same structure, else it will give error.
But for "move", the two may or may not have the same structure.
Performancewise, move-corresponding is more faster than move.
Is This Answer Correct ? | 2 Yes | 14 No |
Answer / guest
I guess, 'move corresponding' is very efficient then 'move'
statement. Because usually we use this stamtent for internal
table fields only...so if we give move corresponding. Those
fields only moving to other place (what ever you want).
Is This Answer Correct ? | 2 Yes | 19 No |
Explain what is sap script? What is the purpose of sap script?
How did you handle errors in Call Transaction?
As an ABAP developer, how can we check after we release our object as to where has it reached(i.e. testing client box ,production client box etc)? In case it is not possible please let me know the same.
How to handle Errors in Function Modules?
Can you set up background processing using call transaction?
How debug a back ground job?
what is work flow?
3 Answers FutureSoft, Siebel Systems,
What loop do you code for a READ DATASET Statement
Define database layer?
what are the diff types of dispatcher in sap ?
what are the events in ABAP?
18 Answers Keane India Ltd, Microsoft,
how many structures are in sap R/3(ABAP)