<?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 a deep structure for dynamic internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585666#M1273640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;created a zcelltab structure as below. But while creating dynamic internal table, I received the error with &lt;/P&gt;&lt;P&gt;'Type "ZCELLTAB" is unknown 68 ZCELLTAB-CELLTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ZCELLTAB,&lt;/P&gt;&lt;P&gt;CELLTAB LIKE LVC_S_STYL,&lt;/P&gt;&lt;P&gt;END OF ZCELLTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;T_CELLTAB&amp;gt; TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA : LT_CELLTAB TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA: WA_CELLTAB TYPE LINE OF LVC_T_STYL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_FCAT1 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;GW_FCAT1 TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;GT_FCAT2 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;GW_FCAT2 TYPE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After filling the FCAT1, I added the field in FCAT2 like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_FCAT2[ ] = GT_FCAT1[ ].&lt;/P&gt;&lt;P&gt;G_TABIX = G_TABIX + 1.&lt;/P&gt;&lt;P&gt;GW_FCAT2-INTTYPE = 'C'.&lt;/P&gt;&lt;P&gt;MOVE G_TABIX TO GW_FCAT2-COL_POS.&lt;/P&gt;&lt;P&gt;GW_FCAT2-OUTPUTLEN = '10'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-FIELDNAME = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-TABNAME = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-REF_FIELD = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-REF_TABLE = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;APPEND GW_FCAT2 TO GT_FCAT2&lt;/P&gt;&lt;P&gt;CLEAR GW_FCAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While calling the below method, the error with &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_FCAT2&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EP_TABLE = GT_REQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN GT_REQ-&amp;gt;* TO &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA GWA_REQ LIKE LINE OF &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN GWA_REQ-&amp;gt;* TO &amp;lt;F_WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;F_VAL&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;F_VAL&amp;gt; = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB-MATNR IS INITIAL.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;T_CELLTAB&amp;gt;&lt;/P&gt;&lt;P&gt;CLEAR WA_CELLTAB.&lt;/P&gt;&lt;P&gt;WA_CELLTAB-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED.&lt;/P&gt;&lt;P&gt;INSERT WA_CELLTAB INTO TABLE &amp;lt;T_CELLTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;F_WA&amp;gt; TO &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GR_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK&lt;/P&gt;&lt;P&gt;IT_TOOLBAR_EXCLUDING = G_EXCLUDE&lt;/P&gt;&lt;P&gt;I_SAVE = G_SAVE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_DEFAULT = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IS_LAYOUT = G_LAYOUT&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;IT_FIELDCATALOG = F_CAT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where I was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I remove the T_CELLTAB as the field name is not mentioned in the structure 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 May 2010 14:11:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-07T14:11:47Z</dc:date>
    <item>
      <title>create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585656#M1273630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a dynamic table using method cl_alv_table_create=&amp;gt;create_dynamic_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The normal structure gets created. but now I want to creat a Deep structure for having information of colors also for each column. So I want to add a COLTAB type LVC_T_SCOL for colors information .&lt;/P&gt;&lt;P&gt;How should I create this using above method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 07:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585656#M1273630</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-05-20T07:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585657#M1273631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you need to know can be found at:&lt;/P&gt;&lt;P&gt;[Creating Flat and Complex Internal Tables Dynamically using RTTI|https://wiki.sdn.sap.com/wiki/display/Snippets/Creating&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;P&gt;&lt;/P&gt;&lt;P&gt;The coding requires that your SAP basis release &amp;gt;= 6.20.&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>Wed, 20 May 2009 07:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585657#M1273631</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-05-20T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585658#M1273632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the instant reply. I want to create this as interactive ALV. If user clicks on one of the record, its next details should get displayed in another ALV format. Will it be possible using this method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;MAdhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 08:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585658#M1273632</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-05-20T08:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585659#M1273633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt; Creat two field cats one with all the dynamic fields Fcat_1 and other with all the dynamic fields with your deep strcu fcat_2&lt;/P&gt;&lt;P&gt;    CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-inttype      = 'C'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-outputlen  = '10'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-fieldname  = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_field   = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_table  = '&lt;STRONG&gt;ZCELLTAB&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;    APPEND wa_fieldcat TO fcat_2.&lt;/P&gt;&lt;P&gt;    CLEAR wa_fieldcat.&lt;/P&gt;&lt;P&gt;ZCELLTAB is table type of your deep strc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the method create_dynamic_table with the fcat_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA :  wa_is_layout     TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;             wa_is_layout-stylefname = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;             wa_is_layout-col_opt    = 'X'.&lt;/P&gt;&lt;P&gt;and for to display using set_table_for_first_display use &lt;/P&gt;&lt;P&gt;Fact_1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585659#M1273633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585660#M1273634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will you please explore this more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to show the material characteristic values for which I am creating table dynamically. now I want to show those characteristics in red which are failing otherwise green (LVC_T_SCOL). So I want color table to be for each row. And after displaying this report, I need to have facility to double click on one particular record to go to the next level report which is the comparison of material batch results with its specifications .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: madhuri sonawane on May 20, 2009 3:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585660#M1273634</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-05-20T10:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585661#M1273635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madhuri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the same but instead of color i made it editable depending on the condition in my dynamic ALV Report which we have used as interface to update database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first Creat Structure ZCELLTAB with field name as CELLTAB and component type as LVC_T_SCOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, create two filedcat (FCAT_1 and FCAT_2) with all the Dynamic fields and in only FACT_2 fieldcat add one more field ,&lt;/P&gt;&lt;P&gt;    wa_fieldcat-inttype   = 'C'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-outputlen = '10'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-fieldname = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_field = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;    wa_fieldcat-ref_table = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;    APPEND wa_fieldcat TO FCAT_2.&lt;/P&gt;&lt;P&gt;    CLEAR wa_fieldcat.&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           = FCAT_2&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table                  = dyn_table&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 dyn_table-&amp;gt;* TO &amp;lt;it_600&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 Field Symbol&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE DATA dyn_line LIKE LINE OF &amp;lt;it_600&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN dyn_line-&amp;gt;* TO &amp;lt;wa_600&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*but to display with FCAT_1 &lt;/P&gt;&lt;P&gt;    CALL METHOD alv_grid_600-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout            = wa_is_layout&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding = it_exclude_300&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab            = &amp;lt;it_600&amp;gt;&lt;/P&gt;&lt;P&gt;        it_fieldcatalog      = FCAT_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and while filling the values in the into dynamci internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'T_CELLTAB'  OF STRUCTURE &amp;lt;wa_600&amp;gt;  TO &amp;lt;t_celltab&amp;gt;.&lt;/P&gt;&lt;P&gt;          CLEAR wa_celltab.&lt;/P&gt;&lt;P&gt;          wa_celltab-FNAME  = wa_material-matnr.&lt;/P&gt;&lt;P&gt;          wa_celltab-COLOR-COL         = 5 .&lt;/P&gt;&lt;P&gt;          INSERT wa_celltab INTO TABLE &amp;lt;t_celltab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope u understood .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 12:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585661#M1273635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T12:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585662#M1273636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Madhuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585662#M1273636</guid>
      <dc:creator>Madhurivs23</dc:creator>
      <dc:date>2009-05-21T11:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585663#M1273637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sai,&lt;/P&gt;&lt;P&gt;I have similar situation where I want to disable or enable the cells based on condtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your source code, how you are inserting the &amp;lt;t_celltab&amp;gt; values in to the dynamic field symbol table &amp;lt;it_100&amp;gt;.&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;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 03:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585663#M1273637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T03:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585664#M1273638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using field symbols assign the field "T_CELLTAB" (Deep structure) of the dynamic internal table work area into a field symbols of type table of cell tab and insert the values in to cell tab as below.&lt;/P&gt;&lt;P&gt;Data : &amp;lt;t_celltab&amp;gt; type lvc_t_styl.&lt;/P&gt;&lt;P&gt;DATA :lt_celltab TYPE lvc_t_styl.&lt;/P&gt;&lt;P&gt; DATA  wa_celltab TYPE LINE OF lvc_t_styl&lt;/P&gt;&lt;P&gt;*&amp;lt;wa_600&amp;gt; dynamic internal table work area.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE &amp;lt;wa_600&amp;gt; TO &amp;lt;t_celltab&amp;gt;.&lt;/P&gt;&lt;P&gt;CLEAR wa_celltab.&lt;/P&gt;&lt;P&gt;wa_celltab-fieldname = name.&lt;/P&gt;&lt;P&gt;for disableu2026&lt;/P&gt;&lt;P&gt;wa_celltab-style     = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;For enable.&lt;/P&gt;&lt;P&gt;wa_celltab-style     = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;INSERT wa_celltab INTO TABLE &amp;lt;t_celltab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saikumar B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 05:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585664#M1273638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T05:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585665#M1273639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a zcelltab structure as below. But while creating dynamic internal table, I received the error  with &lt;/P&gt;&lt;P&gt;'Type "ZCELLTAB" is unknown 68 ZCELLTAB-CELLTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ZCELLTAB,&lt;/P&gt;&lt;P&gt;         CELLTAB LIKE LVC_S_STYL,&lt;/P&gt;&lt;P&gt;     END OF ZCELLTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;T_CELLTAB&amp;gt; TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA : LT_CELLTAB TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA:  WA_CELLTAB TYPE LINE OF LVC_T_STYL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_FCAT1 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;           GW_FCAT1 TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;            GT_FCAT2 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;            GW_FCAT2  TYPE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After filling the FCAT1, I added the field in FCAT2  like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GT_FCAT2[ ] = GT_FCAT1[ ].&lt;/P&gt;&lt;P&gt;  G_TABIX = G_TABIX + 1.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-INTTYPE = 'C'.&lt;/P&gt;&lt;P&gt;  MOVE G_TABIX TO GW_FCAT2-COL_POS.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-OUTPUTLEN = '10'.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-FIELDNAME = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-TABNAME = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-REF_FIELD = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;  GW_FCAT2-REF_TABLE = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;  APPEND GW_FCAT2 TO GT_FCAT2&lt;/P&gt;&lt;P&gt;  CLEAR GW_FCAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While calling the below method, the error with &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_FCAT2&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      EP_TABLE        = GT_REQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN GT_REQ-&amp;gt;* TO &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA GWA_REQ LIKE LINE OF &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;  ASSIGN GWA_REQ-&amp;gt;* TO &amp;lt;F_WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR'  OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;F_VAL&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;F_VAL&amp;gt; = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB-MATNR IS INITIAL.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;T_CELLTAB&amp;gt;&lt;/P&gt;&lt;P&gt;        CLEAR WA_CELLTAB.&lt;/P&gt;&lt;P&gt;        WA_CELLTAB-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;        WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED.&lt;/P&gt;&lt;P&gt;        INSERT WA_CELLTAB INTO TABLE &amp;lt;T_CELLTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;F_WA&amp;gt; TO &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GR_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          I_CONSISTENCY_CHECK  = G_CONSISTENCY_CHECK&lt;/P&gt;&lt;P&gt;          IT_TOOLBAR_EXCLUDING = G_EXCLUDE&lt;/P&gt;&lt;P&gt;          I_SAVE               = G_SAVE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       I_DEFAULT            = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          IS_LAYOUT            = G_LAYOUT&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          IT_OUTTAB            = &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;          IT_FIELDCATALOG      = F_CAT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where I was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I remove the T_CELLTAB as the field name is not mentioned in the structure 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venn e on May 7, 2010 4:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 14:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585665#M1273639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585666#M1273640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;created a zcelltab structure as below. But while creating dynamic internal table, I received the error with &lt;/P&gt;&lt;P&gt;'Type "ZCELLTAB" is unknown 68 ZCELLTAB-CELLTAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ZCELLTAB,&lt;/P&gt;&lt;P&gt;CELLTAB LIKE LVC_S_STYL,&lt;/P&gt;&lt;P&gt;END OF ZCELLTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;T_CELLTAB&amp;gt; TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA : LT_CELLTAB TYPE LVC_T_STYL.&lt;/P&gt;&lt;P&gt;DATA: WA_CELLTAB TYPE LINE OF LVC_T_STYL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: GT_FCAT1 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;GW_FCAT1 TYPE LVC_S_FCAT,&lt;/P&gt;&lt;P&gt;GT_FCAT2 TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;GW_FCAT2 TYPE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After filling the FCAT1, I added the field in FCAT2 like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_FCAT2[ ] = GT_FCAT1[ ].&lt;/P&gt;&lt;P&gt;G_TABIX = G_TABIX + 1.&lt;/P&gt;&lt;P&gt;GW_FCAT2-INTTYPE = 'C'.&lt;/P&gt;&lt;P&gt;MOVE G_TABIX TO GW_FCAT2-COL_POS.&lt;/P&gt;&lt;P&gt;GW_FCAT2-OUTPUTLEN = '10'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-FIELDNAME = 'T_CELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-TABNAME = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-REF_FIELD = 'CELLTAB'.&lt;/P&gt;&lt;P&gt;GW_FCAT2-REF_TABLE = 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;APPEND GW_FCAT2 TO GT_FCAT2&lt;/P&gt;&lt;P&gt;CLEAR GW_FCAT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While calling the below method, the error with &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_FCAT2&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EP_TABLE = GT_REQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN GT_REQ-&amp;gt;* TO &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA GWA_REQ LIKE LINE OF &amp;lt;F_TAB&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN GWA_REQ-&amp;gt;* TO &amp;lt;F_WA&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'MATNR' OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;F_VAL&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;F_VAL&amp;gt; = ITAB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB-MATNR IS INITIAL.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 'T_CELLTAB' OF STRUCTURE &amp;lt;F_WA&amp;gt; TO &amp;lt;T_CELLTAB&amp;gt;&lt;/P&gt;&lt;P&gt;CLEAR WA_CELLTAB.&lt;/P&gt;&lt;P&gt;WA_CELLTAB-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;WA_CELLTAB-STYLE = CL_GUI_ALV_GRID=&amp;gt;MC_STYLE_DISABLED.&lt;/P&gt;&lt;P&gt;INSERT WA_CELLTAB INTO TABLE &amp;lt;T_CELLTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND &amp;lt;F_WA&amp;gt; TO &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GR_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK&lt;/P&gt;&lt;P&gt;IT_TOOLBAR_EXCLUDING = G_EXCLUDE&lt;/P&gt;&lt;P&gt;I_SAVE = G_SAVE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_DEFAULT = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IS_LAYOUT = G_LAYOUT&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;IT_OUTTAB = &amp;lt;F_TAB&amp;gt;&lt;/P&gt;&lt;P&gt;IT_FIELDCATALOG = F_CAT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know where I was wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I remove the T_CELLTAB as the field name is not mentioned in the structure 'ZCELLTAB'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 May 2010 14:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585666#M1273640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-07T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: create a deep structure for dynamic internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585667#M1273641</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;Create a Table type with "ZCELLTAB" with field "CELLTAB" of type LVC_S_STYL in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saikumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 05:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-deep-structure-for-dynamic-internal-table/m-p/5585667#M1273641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-10T05:43:58Z</dc:date>
    </item>
  </channel>
</rss>

