<?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 Dynamic table runtime error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512602#M1559720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working on upgrading from 4.6c to ECC 6.0 and I've run into a programming problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a class that I use to convert any internal table based on a dictionary structure to a comma-separated text file.  For the most part, I use the dynamic table techniques that are easy to find here and in other code forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 6.0 I can not get it to work.  The value assignment of the input table to the field-symbol for the dynamic table causes a "OBJECTS_TABLES_NOT_COMPATIBLE" runtime error.  So far what I can find on this error specific to dynamic tables is related to BW and/or PI.  And I can't seem to find any alternative ways of dealing with dynamic tables.  In debug I can see that decimal number fields in the dynamic table have a different length than what's in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or ideas would be greately appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is part of the method that converts the itab to an dynamic internal table, then creates a csv record for each record (I've hilighted the line that causes the dump) :&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( i_structure ).&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;&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;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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;put data into the dynamic table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;dyn_table&amp;gt; = it_data[].&lt;/STRONG&gt;    "&amp;lt;&amp;lt;==the runtime error happens on this line&lt;/P&gt;&lt;P&gt;&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;    clear: l_fdata, l_data.&lt;/P&gt;&lt;P&gt;    do.&lt;/P&gt;&lt;P&gt;      l_index = sy-index.&lt;/P&gt;&lt;P&gt;      assign component l_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;      read table ifc into xfc index l_index.&lt;/P&gt;&lt;P&gt;      if xfc-inttype = 'D'.&lt;/P&gt;&lt;P&gt;*etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt; - George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 14:20:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-17T14:20:46Z</dc:date>
    <item>
      <title>Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512602#M1559720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working on upgrading from 4.6c to ECC 6.0 and I've run into a programming problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a class that I use to convert any internal table based on a dictionary structure to a comma-separated text file.  For the most part, I use the dynamic table techniques that are easy to find here and in other code forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 6.0 I can not get it to work.  The value assignment of the input table to the field-symbol for the dynamic table causes a "OBJECTS_TABLES_NOT_COMPATIBLE" runtime error.  So far what I can find on this error specific to dynamic tables is related to BW and/or PI.  And I can't seem to find any alternative ways of dealing with dynamic tables.  In debug I can see that decimal number fields in the dynamic table have a different length than what's in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or ideas would be greately appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is part of the method that converts the itab to an dynamic internal table, then creates a csv record for each record (I've hilighted the line that causes the dump) :&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( i_structure ).&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;&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;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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;put data into the dynamic table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;dyn_table&amp;gt; = it_data[].&lt;/STRONG&gt;    "&amp;lt;&amp;lt;==the runtime error happens on this line&lt;/P&gt;&lt;P&gt;&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;    clear: l_fdata, l_data.&lt;/P&gt;&lt;P&gt;    do.&lt;/P&gt;&lt;P&gt;      l_index = sy-index.&lt;/P&gt;&lt;P&gt;      assign component l_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;      read table ifc into xfc index l_index.&lt;/P&gt;&lt;P&gt;      if xfc-inttype = 'D'.&lt;/P&gt;&lt;P&gt;*etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt; - George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 14:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512602#M1559720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-17T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512603#M1559721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for sap notes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is one 1225508&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it_data compatible with the structure of dynamic internal table ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512603#M1559721</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-17T15:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512604#M1559722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.  That is exactly the issue.  The definition of the dynamic internal table for certain kinds of columns (decimal numbers) is different than the one used to build it_data even though they are both using the same dictionary structure name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and just incase I wasn't clear, this worked perfectly in 4.6c for any dictionary defined structure.  This error is occuring in ECC 6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt; - George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:33:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512604#M1559722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-17T15:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512605#M1559723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even i faced some similar decimal issues problems while using cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you change it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:wf_data TYPE REF TO data,
     wf_str TYPE REF TO data,
     i_comp TYPE cl_abap_structdescr=&amp;gt;component_table,
     lf_struct TYPE REF TO cl_abap_structdescr,
     lf_new_type TYPE REF TO cl_abap_structdescr,
     lf_new_tab TYPE REF TO cl_abap_tabledescr.

FIELD-SYMBOLS:&amp;lt;fs_tab&amp;gt; TYPE STANDARD TABLE,
              &amp;lt;fs_line&amp;gt; TYPE ANY.

  lf_struct ?= cl_abap_typedescr=&amp;gt;describe_by_name( i_structure ).
  i_comp = lf_struct-&amp;gt;get_components( ).


  TRY.
      lf_new_type = cl_abap_structdescr=&amp;gt;create( i_comp ).
    CATCH cx_sy_struct_creation .                       "#EC NO_HANDLER
  ENDTRY.

  TRY.
      lf_new_tab =
      cl_abap_tabledescr=&amp;gt;create( p_line_type = lf_new_type
      p_table_kind = cl_abap_tabledescr=&amp;gt;tablekind_std p_unique = ' ' ).
    CATCH cx_sy_table_creation .                        "#EC NO_HANDLER
  ENDTRY.

  CREATE DATA wf_data TYPE HANDLE lf_new_tab.
  CREATE DATA wf_str TYPE HANDLE lf_new_type.

  ASSIGN wf_data-&amp;gt;* TO &amp;lt;fs_tab&amp;gt;.
  ASSIGN wf_str-&amp;gt;* TO &amp;lt;fs_line&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 16:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512605#M1559723</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-17T16:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512606#M1559724</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;For Dynamic internal table.u check &lt;STRONG&gt;SM30&lt;/STRONG&gt; Transaction.ther is one simple way to find the code in debugging.&lt;/P&gt;&lt;P&gt;if not possible i will send code which is relatd to dynamic table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 *&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Form  get_table_structure
*&amp;amp;---------------------------------------------------------------------
*       Get structure of an SAP table
*----------------------------------------------------------------------*
form get_table_structure.
  data : it_tabdescr type abap_compdescr_tab,
         wa_tabdescr type abap_compdescr.
  data : ref_table_descr type ref to cl_abap_structdescr.

* Return structure of the table.
  ref_table_descr ?= cl_abap_typedescr=&amp;gt;describe_by_name( p_table ).
  it_tabdescr[] = ref_table_descr-&amp;gt;components[].
  loop at it_tabdescr into wa_tabdescr.
    clear wa_fieldcat.
    wa_fieldcat-fieldname = wa_tabdescr-name .
    wa_fieldcat-datatype  = wa_tabdescr-type_kind.
    wa_fieldcat-inttype   = wa_tabdescr-type_kind.
    wa_fieldcat-intlen    = wa_tabdescr-length.
    wa_fieldcat-decimals  = wa_tabdescr-decimals.
    append wa_fieldcat to it_fieldcat.
  endloop.

endform.                    "get_table_structure

  &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;

*&amp;amp;---------------------------------------------------------------------
*&amp;amp;      Form  create_itab_dynamically
*&amp;amp;---------------------------------------------------------------------
*   Create internal table dynamically
*----------------------------------------------------------------------*
form create_itab_dynamically.
* Create dynamic internal table and assign to Field-Symbol
  call method cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = it_fieldcat
    IMPORTING
      ep_table        = dyn_table.
  assign dyn_table-&amp;gt;* to &amp;lt;fs_table&amp;gt;.
* Create dynamic work area and assign to Field Symbol
  create data dyn_line like line of &amp;lt;fs_table&amp;gt;.
  assign dyn_line-&amp;gt;* to &amp;lt;fs_wa&amp;gt;.
endform.                    "create_itab_dynamically

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: subrahmanyam24 on Nov 18, 2010 5:12 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: subrahmanyam24 on Nov 18, 2010 5:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 04:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512606#M1559724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-18T04:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512607#M1559725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: field(10) TYPE C.
 
FIELD-SYMBOLS: &amp;lt;fs_from&amp;gt;,  &amp;lt;fs_to&amp;gt;.

UNASSIGN:  &amp;lt;fs_from&amp;gt;,
                    &amp;lt;fs_to&amp;gt;.
 
LOOP AT it_data.  
+add code to populate field+   
    ASSINGN COMPONENT field OF STRUCTURE it_data TO &amp;lt;fs_from&amp;gt;.
    ASSINGN COMPONENT field OF STRUCTURE &amp;lt;dyn_wa&amp;gt; TO &amp;lt;fs_to&amp;gt;.
    &amp;lt;fs_to&amp;gt; = &amp;lt;fs_from&amp;gt;.
   APPEND  &amp;lt;dyn_wa&amp;gt; TO &amp;lt;dyn_table&amp;gt;.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 06:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512607#M1559725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-22T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic table runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512608#M1559726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the ideas.  I fixed this by creating a data object directly from the structure name of the input internal table and looping on the fields, transferring them individually to the dynamic table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Create dynamic work area and assign to FS
  create data dy_line like line of &amp;lt;dyn_table&amp;gt;.
  assign dy_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;.

* put data into the dynamic table
*  &amp;lt;dyn_table&amp;gt; = it_data[].    &amp;lt;&amp;lt;==== this was causing the error
  create data ls_data type (i_structure).
  loop at it_data reference into ls_data.
    assign ls_data-&amp;gt;* to &amp;lt;input_sdata&amp;gt;.
    do.
      l_index = sy-index.
      assign component l_index of structure &amp;lt;input_sdata&amp;gt; to &amp;lt;input_fdata&amp;gt;.
      assign component l_index of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_fdata&amp;gt;.
      if sy-subrc ne 0.
        exit.
      endif.
      &amp;lt;dyn_fdata&amp;gt; = &amp;lt;input_fdata&amp;gt;.
    enddo.
    append &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_table&amp;gt;.
  endloop.

* now loop at the dynamic table to build .csv output
  loop at &amp;lt;dyn_table&amp;gt; into &amp;lt;dyn_wa&amp;gt;.
    clear: l_fdata, l_data.
    do.
      l_index = sy-index.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 13:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-table-runtime-error/m-p/7512608#M1559726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-23T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

