<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filling dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436615#M1551096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed you can't access these columns &lt;STRONG&gt;statically&lt;/STRONG&gt; (by just writting work area and component name) as they might not be included in the table structure, however you can easily access them &lt;STRONG&gt;dynamically&lt;/STRONG&gt; (by providing this component name as a variable). For this you need a field symbol and the approach like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data l_field type string.
field-symbols &amp;lt;field&amp;gt; type any.

l_field = 'FIELD1'.
ASSIGN COMPONENT l_field OF STRUCTURE l_dyn_work_area TO &amp;lt;FIELD&amp;gt;.
&amp;lt;FIELD&amp;gt; = "now put your required value here to fill the 'FIELD1' in your strcture
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If still not clear just do search around &lt;STRONG&gt;ASSIGN COMPONENT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 11:12:14 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-12-10T11:12:14Z</dc:date>
    <item>
      <title>Filling dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436613#M1551094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I have to display randomly generated columns ( Run time). So I hv created a dynamic internal table. &lt;/P&gt;&lt;P&gt;Structure of that table :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it1 --&amp;gt; Field(fix) field2(Fix) CC1 CC2 ..........etc. ( From CC1, thiese fields cab be up to any no). &lt;/P&gt;&lt;P&gt;I have my dynamically created interal no and work area.But I am not able to fill this internal table as it's column is defined randomly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guy pls thorw some light on this issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advanced..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Aks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436613#M1551094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436614#M1551095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search this forum with keyword "assign component" you can find lot of threads related how to fill dynamic IT.&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436614#M1551095</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-12-10T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436615#M1551096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed you can't access these columns &lt;STRONG&gt;statically&lt;/STRONG&gt; (by just writting work area and component name) as they might not be included in the table structure, however you can easily access them &lt;STRONG&gt;dynamically&lt;/STRONG&gt; (by providing this component name as a variable). For this you need a field symbol and the approach like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data l_field type string.
field-symbols &amp;lt;field&amp;gt; type any.

l_field = 'FIELD1'.
ASSIGN COMPONENT l_field OF STRUCTURE l_dyn_work_area TO &amp;lt;FIELD&amp;gt;.
&amp;lt;FIELD&amp;gt; = "now put your required value here to fill the 'FIELD1' in your strcture
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If still not clear just do search around &lt;STRONG&gt;ASSIGN COMPONENT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436615#M1551096</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-12-10T11:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filling dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436616#M1551097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here dynamically colums will be create and internal table created for that LFA1 table otherwise.&lt;/P&gt;&lt;P&gt;You can declare the types declaration.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF TY_DATA,&lt;/P&gt;&lt;P&gt;LIFNR TYPE LIFNR,&lt;/P&gt;&lt;P&gt;END OF TY_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: pannnn_ref TYPE REF TO data,&lt;/P&gt;&lt;P&gt;      pnnnn_str TYPE REF TO cl_abap_structdescr,&lt;/P&gt;&lt;P&gt;       pannnn_wa_ref TYPE REF TO data.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS :&amp;lt;psnnnn&amp;gt;    TYPE STANDARD TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;pannnn_wa&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                &amp;lt;pacccc_wa&amp;gt; TYPE c,&lt;/P&gt;&lt;P&gt;                 &amp;lt;value&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;data:dbtab type string value 'LFA1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA pannnn_ref TYPE STANDARD TABLE OF (dbtab).     "TY_DATA that also we can give&lt;/P&gt;&lt;P&gt;  ASSIGN pannnn_ref-&amp;gt;* TO &amp;lt;psnnnn&amp;gt;.&lt;/P&gt;&lt;P&gt;  CREATE DATA pannnn_wa_ref TYPE (dbtab).&lt;/P&gt;&lt;P&gt;  ASSIGN pannnn_wa_ref-&amp;gt;* TO &amp;lt;pannnn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN &amp;lt;pannnn_wa&amp;gt; TO &amp;lt;pacccc_wa&amp;gt; CASTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;muralii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filling-dynamic-internal-table/m-p/7436616#M1551097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-10T11:15:31Z</dc:date>
    </item>
  </channel>
</rss>

