<?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: structura generated dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333266#M798801</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;Check this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZV_DYNAMIC .&lt;/P&gt;&lt;P&gt;PARAMETERS: P_COL1 TYPE I,&lt;/P&gt;&lt;P&gt;P_COL2 TYPE I.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA: CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TYP_ITAB,&lt;/P&gt;&lt;P&gt;COL1 TYPE I,&lt;/P&gt;&lt;P&gt;COL2 TYPE I,&lt;/P&gt;&lt;P&gt;COL3 TYPE I,&lt;/P&gt;&lt;P&gt;COL4 TYPE I,&lt;/P&gt;&lt;P&gt;COL5 TYPE I,&lt;/P&gt;&lt;P&gt;COL6 TYPE I,&lt;/P&gt;&lt;P&gt;END OF TYP_ITAB.&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE TABLE OF TYP_ITAB, WA LIKE LINE OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA-COL1 = 1.&lt;/P&gt;&lt;P&gt;WA-COL2 = 2.&lt;/P&gt;&lt;P&gt;WA-COL3 = 3.&lt;/P&gt;&lt;P&gt;WA-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&lt;P&gt;LOOP AT ITAB ASSIGNING &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TABIX = 1. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT COL1 OF STRUCTURE &amp;lt;FS&amp;gt; TO &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT COL2 OF STRUCTURE &amp;lt;FS&amp;gt; TO &amp;lt;FS2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;FS1&amp;gt; TO ITAB1. &lt;/P&gt;&lt;P&gt;MOVE &amp;lt;FS1&amp;gt; TO ITAB1-COL1.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;FS2&amp;gt; TO ITAB1-COL2.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ &amp;lt;FS1&amp;gt;,&amp;lt;FS2&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB1-COL1, ITAB1-COL2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 13:57:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T13:57:45Z</dc:date>
    <item>
      <title>structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333265#M798800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Could You tell me how to influence on itab structure depending on some parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if parameter x = 3 the data structure would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;  LEVEL1 LIKE c,&lt;/P&gt;&lt;P&gt;  LEVEL2 LIKE c,&lt;/P&gt;&lt;P&gt;  LEVEL3 LIKE c,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the x parameter would be 9 the data will have LEVEL1, ... LEVEL9 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve that? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 13:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333265#M798800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T13:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333266#M798801</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;Check this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZV_DYNAMIC .&lt;/P&gt;&lt;P&gt;PARAMETERS: P_COL1 TYPE I,&lt;/P&gt;&lt;P&gt;P_COL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;/P&gt;&lt;P&gt;WRITE P_COL1 TO CHAR.&lt;/P&gt;&lt;P&gt;CONCATENATE 'COL' CHAR INTO COL1.&lt;/P&gt;&lt;P&gt;WRITE P_COL2 TO CHAR.&lt;/P&gt;&lt;P&gt;CONCATENATE 'COL' CHAR INTO COL2.&lt;/P&gt;&lt;P&gt;*FIELD-SYMBOLS &amp;lt;F&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;*ASSIGN (COL1) TO &amp;lt;F&amp;gt;.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB1 OCCURS 0,&lt;/P&gt;&lt;P&gt;COL1 TYPE I,&lt;/P&gt;&lt;P&gt;COL2 TYPE I,&lt;/P&gt;&lt;P&gt;END OF ITAB1.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS1&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;&amp;lt;FS2&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;DATA: VAR TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB ASSIGNING &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-TABIX = 1. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT COL1 OF STRUCTURE &amp;lt;FS&amp;gt; TO &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE. &lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT COL2 OF STRUCTURE &amp;lt;FS&amp;gt; TO &amp;lt;FS2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;FS1&amp;gt; TO ITAB1. &lt;/P&gt;&lt;P&gt;MOVE &amp;lt;FS1&amp;gt; TO ITAB1-COL1.&lt;/P&gt;&lt;P&gt;MOVE &amp;lt;FS2&amp;gt; TO ITAB1-COL2.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/ &amp;lt;FS1&amp;gt;,&amp;lt;FS2&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;WRITE:/ ITAB1-COL1, ITAB1-COL2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 13:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333266#M798801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333267#M798802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. A way is to use cl_alv_table_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this code sample at sdn : [ABAP Code Sample for ALV Grid from Dynamically-Created Internal Table|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1d22e990-0201-0010-588d-c4b4b431c52b]   or [search sdn for cl_alv_table_create|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=cl_alv_table_create&amp;amp;cat=sdn_codesamples].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 13:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333267#M798802</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-24T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333268#M798803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Piotr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have already the &lt;STRONG&gt;RTTI&lt;/STRONG&gt; classes available on your system you may use them. For details refer to:&lt;/P&gt;&lt;P&gt;[Creating Flat and Complex Internal Tables Dynamically using RTTI|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/creating%2bflat%2band%2bcomplex%2binternal%2btables%2bdynamically%2busing%2brtti]&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 20:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333268#M798803</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-24T20:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333269#M798804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Satish Panakala&lt;/STRONG&gt;    &lt;/P&gt;&lt;P&gt;code leads me into dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raymond Giuseppi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns &lt;EM&gt;'The type "SLIS_FIELDCAT_ALV" is unknown.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Uwe Schieferstein&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;go_table         TYPE REF TO cl_salv_table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns &lt;EM&gt;'The type "CL_ALV_TABLE" is unknown.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Piotr Wojciechowski on Jan 25, 2008 9:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 08:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333269#M798804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333270#M798805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pjotr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to add the type-pool to your report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_my_report.

TYPE-POOLS: slis.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 08:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333270#M798805</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-25T08:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333271#M798806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add the following line to the global data of your program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;TYPE-POOLS: SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 08:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333271#M798806</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-01-25T08:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333272#M798807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. I try to do simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZWOP_TEST1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;newtab&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dyntab LIKE dntab OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: i_fcat TYPE lvc_t_fcat.&lt;/P&gt;&lt;P&gt;DATA: wa_fcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;DATA: dref TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'F1'.&lt;/P&gt;&lt;P&gt;  wa_fcat-ref_field = 'text01'.&lt;/P&gt;&lt;P&gt;  wa_fcat-ref_table = 'zlstrom01'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO i_fcat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_fcat-fieldname = 'F2'.&lt;/P&gt;&lt;P&gt;  wa_fcat-ref_field = 'text01'.&lt;/P&gt;&lt;P&gt;  wa_fcat-ref_table = 'zlstrom01'.&lt;/P&gt;&lt;P&gt;  APPEND wa_fcat TO i_fcat .&lt;/P&gt;&lt;P&gt;&lt;/P&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 = i_fcat&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    ep_table = dref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;newtab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;newtab&amp;gt;-F1 = 'aaa'.&lt;/P&gt;&lt;P&gt;&amp;lt;newtab&amp;gt;-F2 = 'bbb'.&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;newtab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&amp;lt;NEWTAB&amp;gt;" is a table without a header line and therefore has no component called "F1".&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 08:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333272#M798807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333273#M798808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Piotr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;single fields of dynamically created strucures/tables you can reach the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT field OF STRUCTURE structure TO field_symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 08:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333273#M798808</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-01-25T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333274#M798809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Eric Cartman*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could You tell me how to add 2 records to my &amp;lt;newtab&amp;gt; in my example program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;F1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;F2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;aaa&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;bbb&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ccc&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;ddd&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333274#M798809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: structura generated dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333275#M798810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need a dynamic work area as well...&lt;/P&gt;&lt;P&gt;definition:&lt;/P&gt;&lt;P&gt;DATA : gw_dynwa TYPE REF TO data.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;gf_line&amp;gt;  TYPE ANY,&lt;/P&gt;&lt;P&gt;&amp;lt;gf_field&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the program, after the table is ready and assigned to field-symbol:&lt;/P&gt;&lt;P&gt;    CREATE DATA gw_dynwa LIKE LINE OF &amp;lt;newtable&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN gw_dynwa-&amp;gt;* TO &amp;lt;gf_line&amp;gt;. ==&amp;gt; Now you have work area as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To insert line into internal table trough the work area you have to code for each singel field:&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'F1' OF STRUCTURE &amp;lt;gf_line&amp;gt; TO &amp;lt;gf_field&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;gf_field&amp;gt; = 'aaa'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when one line is read, you can append:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;gf_line&amp;gt; to &amp;lt;newtable&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structura-generated-dynamically/m-p/3333275#M798810</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-01-25T09:17:07Z</dc:date>
    </item>
  </channel>
</rss>

