Application Development 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: 

assign component---

Former Member
0 Kudos
208

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

Former Member
0 Kudos
171

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

Former Member
0 Kudos
172

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?

0 Kudos
169

loop at itab into wa_itab .

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

endloop .