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

Reading dynamic internal tables.

Former Member
0 Likes
535

Hi,

I have created a dynamic internal table.I need to read the data from the same.

Since the field names are in a variable. How do i read specific fields from the table.

Kindly respond.

1 ACCEPTED SOLUTION
Read only

anup_deshmukh4
Active Contributor
0 Likes
483

loop at your table assigning to a field symbol of type any...

loop at <itab> assigning <field_sym_type_any>.

ASSIGN COMPONENT 'your field name in quotes or variable ' OF STRUCTURE

<field_sym_type_any> TO <field_symbol_type any_2>.

endloop.

2 REPLIES 2
Read only

anup_deshmukh4
Active Contributor
0 Likes
484

loop at your table assigning to a field symbol of type any...

loop at <itab> assigning <field_sym_type_any>.

ASSIGN COMPONENT 'your field name in quotes or variable ' OF STRUCTURE

<field_sym_type_any> TO <field_symbol_type any_2>.

endloop.

Read only

0 Likes
483

Thank you,

It solved my problem!