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 |
What is the t-code for transaction recorder? : abap bdc
WHAT ACTUALLY IS REAL TIME IMPLEMENTATION HOW MANY PHASES ARE THERE IN THAT
Explain what is step-loop?
how to find the driver program of a script without touching its print program?
4 Answers Cooperp, Genpact, Sony,
What are different data types in abap/4?
Can we execute the script individually? If yes How? Else what we need to do so?
In LSMW IN 9TH STEP WHICH IS A READ\IMPORT DATA IN TRANSACTION NUMBER SELECT OPITON WHAT TO ENTER IF MY DATA STARTS WITH CUSTOMER NUM 1000 TO CUS NUM 1051 WITH DIFFERENT SALESORG,SALESOFF,DIVISION,DISCHNNL DETAILS
What are the advantages of different types of bdc's?
cardinality 1:6 wat view?
What is the difference between internal tables and extract datasets? : abap modularization
How you upload Logo?
how to see the tables of 200 in client 100?