<?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 Add Structure Fields to Dynamic table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012860#M79271</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 want to print dynamic table in ALV GRID with color and style (some editable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to insert fields CELLCOLORS AND CELLSTYLES&lt;/P&gt;&lt;P&gt;which are declared regulary as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cellcolors TYPE lvc_t_scol&lt;/P&gt;&lt;P&gt;cellstyles TYPE lvc_t_styl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do that dynamicly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2005 09:08:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-18T09:08:38Z</dc:date>
    <item>
      <title>Add Structure Fields to Dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012860#M79271</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 want to print dynamic table in ALV GRID with color and style (some editable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to insert fields CELLCOLORS AND CELLSTYLES&lt;/P&gt;&lt;P&gt;which are declared regulary as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cellcolors TYPE lvc_t_scol&lt;/P&gt;&lt;P&gt;cellstyles TYPE lvc_t_styl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I do that dynamicly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2005 09:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012860#M79271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-18T09:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add Structure Fields to Dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012861#M79272</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;How do you create your dynamic table ? with fieldcatalog ... so just had this two fields in your fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2005 09:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012861#M79272</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-07-18T09:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add Structure Fields to Dynamic table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012862#M79273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;  MOVE 'MATNR' TO wa_fieldcat_dyn-fieldname.&lt;/P&gt;&lt;P&gt;  MOVE 'MARA'  TO wa_fieldcat_dyn-ref_table.&lt;/P&gt;&lt;P&gt;  MOVE 'MATNR' TO wa_fieldcat_dyn-ref_field.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat_dyn TO gt_fieldcat_dyn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'CRLTAB' TO wa_fieldcat_dyn-fieldname.&lt;/P&gt;&lt;P&gt;MOVE 'RESC_DEFAULT_ALV_FIELDS' TO wa_fieldcat_dyn-ref_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE 'COLORTAB' TO wa_fieldcat_dyn-ref_field.&lt;/P&gt;&lt;P&gt;  APPEND wa_fieldcat_dyn TO gt_fieldcat_dyn.&lt;/P&gt;&lt;P&gt;  ASSIGN st_struc_printout TO &amp;lt;fs_data&amp;gt;.&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           = gt_fieldcat_dyn &lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      ep_table                  = &amp;lt;fs_data&amp;gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      generate_subpool_dir_full = 1&lt;/P&gt;&lt;P&gt;      OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;                   &lt;/P&gt;&lt;P&gt;  ASSIGN &amp;lt;fs_data&amp;gt;-&amp;gt;* TO &amp;lt;gt_printout&amp;gt;.&lt;/P&gt;&lt;P&gt;  CREATE DATA new_line LIKE LINE OF &amp;lt;gt_printout&amp;gt;.&lt;/P&gt;&lt;P&gt;                 &lt;/P&gt;&lt;P&gt;  ASSIGN new_line-&amp;gt;*  TO &amp;lt;wa_printout&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2005 13:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-structure-fields-to-dynamic-table/m-p/1012862#M79273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-18T13:12:39Z</dc:date>
    </item>
  </channel>
</rss>

