<?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: DYNAMIC INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733330#M898523</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;This is a very simple tip to create a dynamic internal table, ie. a table not defined until runtime, inside ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, so it only references an SAP database table, but this should be good enough for most applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few declarations to make:&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;table&amp;gt; type any.&lt;/P&gt;&lt;P&gt;types: fieldref type ref to data.&lt;/P&gt;&lt;P&gt;data: dyn_table type fieldref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the actual code to generate the table:&lt;/P&gt;&lt;P&gt;create data dyn_table type (SAP Table).&lt;/P&gt;&lt;P&gt;assign dyn_table-&amp;gt;* to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is now a field symbol which can be referenced in the normal way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link it will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 12:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 13:35:15 GMT</pubDate>
    <dc:creator>prasanth_kasturi</dc:creator>
    <dc:date>2008-04-25T13:35:15Z</dc:date>
    <item>
      <title>DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733328#M898521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I AM WORKING ON BULDING DYNAMIC INTERNAL TABLE AND I AM USING FIELD SYMBOLS FOR THE SAME AS BELOW:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  lr_tab type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:&lt;/P&gt;&lt;P&gt;  &amp;lt;tab&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create data lr_tab type table of (IO_TABLE).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign lr_tab-&amp;gt;* to &amp;lt;tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;  INTO TABLE &amp;lt;tab&amp;gt;&lt;/P&gt;&lt;P&gt;  FROM (IO_TABLE)&lt;/P&gt;&lt;P&gt;  WHERE ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DURING create data lr_tab type table of (IO_TABLE).* I AM GETTING THE ERROR THAT '&lt;STRONG&gt;THE TYPE SPECIFICATION OF TABLE IS INCOMPLETE'.&lt;/STRONG&gt;.CAN ANY ONE PLZ GUDE ME SOLUTION FOR THIS..&lt;/P&gt;&lt;P&gt;PLZZ HELP ME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733328#M898521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733329#M898522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;type-pools : abap. &lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;dyn_table&amp;gt; type standard table, &lt;/P&gt;&lt;P&gt;&amp;lt;dyn_wa&amp;gt;, &lt;/P&gt;&lt;P&gt;&amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;data: dy_table type ref to data, &lt;/P&gt;&lt;P&gt;dy_line type ref to data, &lt;/P&gt;&lt;P&gt;xfc type lvc_s_fcat, &lt;/P&gt;&lt;P&gt;ifc type lvc_t_fcat. &lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame. &lt;/P&gt;&lt;P&gt;parameters: p_table(30) type c default 'T001'. &lt;/P&gt;&lt;P&gt;selection-screen end of block b1. &lt;/P&gt;&lt;P&gt;start-of-selection. &lt;/P&gt;&lt;P&gt;perform get_structure. &lt;/P&gt;&lt;P&gt;perform create_dynamic_itab. *********&lt;STRONG&gt;Creates a dyanamic internal table&lt;/STRONG&gt;********* &lt;/P&gt;&lt;P&gt;perform get_data. &lt;/P&gt;&lt;P&gt;perform write_out. &lt;/P&gt;&lt;P&gt;form get_structure. &lt;/P&gt;&lt;P&gt;data : idetails type abap_compdescr_tab, &lt;/P&gt;&lt;P&gt;xdetails type abap_compdescr. &lt;/P&gt;&lt;P&gt;data : ref_table_des type ref to cl_abap_structdescr. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the structure of the table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ref_table_des ?= &lt;/P&gt;&lt;P&gt;cl_abap_typedescr=&amp;gt;describe_by_name( p_table ). &lt;/P&gt;&lt;P&gt;idetails] = ref_table_des-&amp;gt;components[. &lt;/P&gt;&lt;P&gt;loop at idetails into xdetails. &lt;/P&gt;&lt;P&gt;clear xfc. &lt;/P&gt;&lt;P&gt;xfc-fieldname = xdetails-name . &lt;/P&gt;&lt;P&gt;xfc-datatype = xdetails-type_kind. &lt;/P&gt;&lt;P&gt;xfc-inttype = xdetails-type_kind. &lt;/P&gt;&lt;P&gt;xfc-intlen = xdetails-length. &lt;/P&gt;&lt;P&gt;xfc-decimals = xdetails-decimals. &lt;/P&gt;&lt;P&gt;append xfc to ifc. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;form create_dynamic_itab. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call method cl_alv_table_create=&amp;gt;create_dynamic_table &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;it_fieldcatalog = ifc &lt;/P&gt;&lt;P&gt;importing &lt;/P&gt;&lt;P&gt;ep_table = dy_table. &lt;/P&gt;&lt;P&gt;assign dy_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;create data dy_line like line of &amp;lt;dyn_table&amp;gt;. &lt;/P&gt;&lt;P&gt;assign dy_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;. &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Data from table. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select * into table &amp;lt;dyn_table&amp;gt; &lt;/P&gt;&lt;P&gt;from (p_table). &lt;/P&gt;&lt;P&gt;endform. &lt;/P&gt;&lt;P&gt;Write out data from table. &lt;/P&gt;&lt;P&gt;loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;. &lt;/P&gt;&lt;P&gt;do. &lt;/P&gt;&lt;P&gt;assign component sy-index &lt;/P&gt;&lt;P&gt;of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;if sy-subrc 0. &lt;/P&gt;&lt;P&gt;exit. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;if sy-index = 1. &lt;/P&gt;&lt;P&gt;write:/ &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;write: &amp;lt;dyn_field&amp;gt;. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;enddo. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733329#M898522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733330#M898523</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;This is a very simple tip to create a dynamic internal table, ie. a table not defined until runtime, inside ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, so it only references an SAP database table, but this should be good enough for most applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few declarations to make:&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;table&amp;gt; type any.&lt;/P&gt;&lt;P&gt;types: fieldref type ref to data.&lt;/P&gt;&lt;P&gt;data: dyn_table type fieldref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the actual code to generate the table:&lt;/P&gt;&lt;P&gt;create data dyn_table type (SAP Table).&lt;/P&gt;&lt;P&gt;assign dyn_table-&amp;gt;* to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is now a field symbol which can be referenced in the normal way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link it will be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab030.htm" target="test_blank"&gt;http://www.sap-img.com/ab030.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 12:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 13:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733330#M898523</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-25T13:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733331#M898524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the below code. This should work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;tab&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;DATA: new_line TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA new_line TYPE STANDARD TABLE OF (IO_TABLE).&lt;/P&gt;&lt;P&gt;ASSIGN new_line-&amp;gt;* TO &amp;lt;tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;FROM (IO_TABLE)&lt;/P&gt;&lt;P&gt;INTO TABLE &amp;lt;tab&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 16:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733331#M898524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T16:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733332#M898525</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;report z_dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;dyn_table&amp;gt; type standard table,&lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_wa&amp;gt;,&lt;/P&gt;&lt;P&gt;               &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: dy_table type ref to data,&lt;/P&gt;&lt;P&gt;      dy_line  type ref to data,&lt;/P&gt;&lt;P&gt;      xfc type lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ifc type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame.&lt;/P&gt;&lt;P&gt;parameters: p_table(30) type c default 'T001'.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform get_structure.&lt;/P&gt;&lt;P&gt;  perform create_dynamic_itab.&lt;/P&gt;&lt;P&gt;  perform get_data.&lt;/P&gt;&lt;P&gt;  perform write_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : idetails type abap_compdescr_tab,&lt;/P&gt;&lt;P&gt;       xdetails type abap_compdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ref_table_des type ref to cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the structure of the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ref_table_des ?=&lt;/P&gt;&lt;P&gt;      cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).&lt;/P&gt;&lt;P&gt;  idetails[] = ref_table_des-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at idetails into xdetails.&lt;/P&gt;&lt;P&gt;    clear xfc.&lt;/P&gt;&lt;P&gt;    xfc-fieldname = xdetails-name .&lt;/P&gt;&lt;P&gt;    xfc-datatype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-inttype = xdetails-type_kind.&lt;/P&gt;&lt;P&gt;    xfc-intlen = xdetails-length.&lt;/P&gt;&lt;P&gt;    xfc-decimals = xdetails-decimals.&lt;/P&gt;&lt;P&gt;    append xfc to ifc.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_dynamic_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = ifc&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = dy_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  assign dy_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data dy_line like line of &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  assign dy_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select Data from table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select * into table &amp;lt;dyn_table&amp;gt;&lt;/P&gt;&lt;P&gt;             from (p_table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form write_out .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write out data from table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;    do.&lt;/P&gt;&lt;P&gt;      assign component  sy-index&lt;/P&gt;&lt;P&gt;         of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      if sy-index = 1.&lt;/P&gt;&lt;P&gt;        write:/ &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        write: &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.                    " write_out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Apr 2008 14:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733332#M898525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-26T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733333#M898526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;Compare with this code......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER: tabname type dd02l-TABNAME.

DATA: stru_tab TYPE REF TO data.
FIELD-SYMBOLS &amp;lt;tab&amp;gt; TYPE table.

CREATE DATA stru_tab TYPE TABLE OF (tabname).
ASSIGN stru_tab-&amp;gt;* TO &amp;lt;tab&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2008 10:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733333#M898526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-03T10:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733334#M898527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2008 12:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table/m-p/3733334#M898527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-30T12:48:05Z</dc:date>
    </item>
  </channel>
</rss>

