2006 Dec 06 12:05 PM
I got to move some 188 fields from one structure to
another.Would not like to use Move-corresponding.
Can field-symbol be used instead?
Please send the code if present.
2006 Dec 06 2:07 PM
Hi Madhav,
If you are more than 3rd part of structure better use MOVE-CORRESPONDING. Since Move corresponding is faster than fields symbols. Fieldsymbols are taking more compile time rather than structures. Don't use field symbols in this case.
Regards
Bhupal Reddy
I got to move some 188 fields from one structure to
another.Would not like to use Move-corresponding.
Can field-symbol be used instead?
Please send the code if present.
2006 Dec 06 2:03 PM
hi,
loop at itab assinging <f1>.
read table <second itab> with key.....
check sy-subrc
<f1>- fieldname = req value.
performance also will improve.
2006 Dec 06 2:07 PM
Hi Madhav,
If you are more than 3rd part of structure better use MOVE-CORRESPONDING. Since Move corresponding is faster than fields symbols. Fieldsymbols are taking more compile time rather than structures. Don't use field symbols in this case.
Regards
Bhupal Reddy
2006 Dec 06 2:07 PM
Hi Madhav,
Will suggest you to do F1 on ABAP key always before finding solution elsewhere. I believe SAP explanation is always better than any.
Eg: field-symbols->F1
Hope this helps in future.
Manish