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

How to declare internal table field reference dynamically

Former Member
0 Likes
273

How to declare internal table field reference dynamically

Posted: May 3, 2010 3:45 PM Edit Reply

Hi,

I have a requirement to declare the internal table field reference dynamically. I would know the field reference only during runtime and at that time, I accordingly need to build the internal table and that will be used later for different purpose. The structure of the internal table should appear as mentioned below for better understaning.

DATA: BEGIN OF it_tab OCCURS 0,

key LIKE <dynamic>,

text LIKE t179t-vtext,

END OF it_tab.

<Dynamic> - dynamic field reference is known at the run time.

Please help me as how to declare this internal table having dynamic field reference.

Thanks,

Lakshmi

1 REPLY 1
Read only

Former Member
0 Likes
251

Moderator message - Duplicate post locked Rob