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
486

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
434

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.

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.

2 REPLIES 2
Read only

anup_deshmukh4
Active Contributor
0 Likes
435

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
434

Thank you,

It solved my problem!