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 |
How can I get ascii value of any letter? Is there any function?
when we are entering a purchase order it goes to which table?
What is the alternative to batch input session?
Can we add a field to the sap standard screen? If so, how?
please give the remaining answers.
Prepare a Report for last month Last Date- First Date?
Difference between select option and ranges ?
Explain what are the system fields? Explain?
What are the types of search helps? : sap abap data dictionary
What is the function module for INDIAN PAYROLL to read table cluster for given cluster table and sequence number?
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
How do you generate Interactive report using ALV's?