<?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: Create Deep structure in Dyn.Int Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990894#M953463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the I_STYLE_TABLE flag to create a style table in dynamic table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 call method cl_alv_table_create=&amp;gt;create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
      I_STYLE_TABLE = 'X'      "&amp;lt;&amp;lt; To create a style table type LVC_T_STYL
    importing
      ep_table        = g_hts.
  assign g_hts-&amp;gt;* to &amp;lt;i_status&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 14:56:04 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-06-18T14:56:04Z</dc:date>
    <item>
      <title>Create Deep structure in Dyn.Int Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990893#M953462</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 am creating a deep structure inside a dynamic internal table, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is the code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ls_fcat-fieldname = 'CELLTAB'.
  ls_fcat-no_out    = c_x.
  append ls_fcat to pt_fieldcat.

  call method cl_alv_table_create=&amp;gt;create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
    importing
      ep_table        = g_hts.
  assign g_hts-&amp;gt;* to &amp;lt;i_status&amp;gt;.
  ...
  ...

  field-symbols: &amp;lt;fs9&amp;gt; type LVC_T_STYL.

  loop at &amp;lt;i_status&amp;gt; assigning &amp;lt;wa_status&amp;gt;.
      assign component 'CELLTAB' of structure &amp;lt;wa_status&amp;gt; to &amp;lt;fs9&amp;gt;.
      " Here i am getting error 'Type conflict with ASSIGN in program'
  ...
  ...
 endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is working fine with the following Uwe's example&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Creating" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Creating&lt;/A&gt;&lt;EM&gt;Flat&lt;/EM&gt;and&lt;EM&gt;Complex&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;Dynamically&lt;EM&gt;using&lt;/EM&gt;RTTI&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  gs_comp-type ?= cl_abap_typedescr=&amp;gt;describe_by_data( celltab ).
  gs_comp-name  = 'CELLTAB'.
  append gs_comp to gt_components.

  go_sdescr  = cl_abap_structdescr=&amp;gt;create( gt_components ).
  go_tdescr  = cl_abap_tabledescr=&amp;gt;create( go_sdescr ).
  create data gdo_handle type handle go_tdescr.
  assign gdo_handle-&amp;gt;* to &amp;lt;gt_itab&amp;gt;.
  ...

 loop at &amp;lt;gt_itab&amp;gt; assigning &amp;lt;gs_struc&amp;gt;.
    assign component 'CELLTAB' of structure &amp;lt;gs_struc&amp;gt; to &amp;lt;lt_celltab&amp;gt;.
 endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 14:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990893#M953462</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-06-18T14:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep structure in Dyn.Int Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990894#M953463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the I_STYLE_TABLE flag to create a style table in dynamic table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 call method cl_alv_table_create=&amp;gt;create_dynamic_table
    exporting
      it_fieldcatalog = pt_fieldcat
      I_STYLE_TABLE = 'X'      "&amp;lt;&amp;lt; To create a style table type LVC_T_STYL
    importing
      ep_table        = g_hts.
  assign g_hts-&amp;gt;* to &amp;lt;i_status&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 14:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990894#M953463</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-06-18T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep structure in Dyn.Int Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990895#M953464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;apart from these two field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ls_fcat-fieldname = 'CELLTAB'.
  ls_fcat-no_out    = c_x.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what else is supplied to fieldcatelog for CELLTAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 14:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990895#M953464</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-06-18T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Deep structure in Dyn.Int Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990896#M953465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Naimesh,&lt;/P&gt;&lt;P&gt;I made a mistake while passing values while creating field catalog for style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ls_fcat-fieldname = 'CELLTAB'.
  ls_fcat-ref_field = 'STYL'.
  ls_fcat-ref_table = 'WTY_PNV_DYNPRO_ALV'.
  ls_fcat-no_out    = c_x.
  append ls_fcat to pt_fieldcat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After giving this it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 15:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-deep-structure-in-dyn-int-table/m-p/3990896#M953465</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-06-18T15:09:45Z</dc:date>
    </item>
  </channel>
</rss>

