Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

fiels-symbol

Former Member
0 Likes
487

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
464

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.

3 REPLIES 3
Read only

Former Member
0 Likes
464

hi,

loop at itab assinging <f1>.

read table <second itab> with key.....

check sy-subrc

<f1>- fieldname = req value.

performance also will improve.

Read only

Former Member
0 Likes
465

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

Read only

Former Member
0 Likes
464

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