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

assign component---

Former Member
0 Kudos
433

For a structured data object <s>, we can use the statement

ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.

to assign one of its components <comp> to the field symbol <FS>. It is said we can specify the component <comp> either as a literal or a variable but hoe to specify this as a variable?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
396

For a structured data object <s>, we can use the statement

ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.

to assign one of its components <comp> to the field symbol <FS>. It is said we can specify the component <comp> either as a literal or a variable but hoe to specify this as a variable?

2 REPLIES 2
Read only

Former Member
0 Kudos
397

For a structured data object <s>, we can use the statement

ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.

to assign one of its components <comp> to the field symbol <FS>. It is said we can specify the component <comp> either as a literal or a variable but hoe to specify this as a variable?

Read only

0 Kudos
394

loop at itab into wa_itab .

assign component wa_itab-fieldname of structure <l_line> to <l_field>.

endloop .