‎2010 May 03 3:13 PM
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
‎2010 May 03 3:38 PM