<?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: Dynamic Internal Table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765828#M1462337</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;Could you please let us know your definition part of source code on the GET_I ?&lt;/P&gt;&lt;P&gt;BTW, you also need to set the DO SUM attribute in the fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Mar 2010 00:10:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-26T00:10:07Z</dc:date>
    <item>
      <title>Dynamic Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765827#M1462336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have created a Dynamic ALV using RTTS classes like cl_abap_structdescr,cl_abap_tabledescr and cl_abap_datadescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of columns to be displayed is dynamic and i am able to display the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to perform SUBTOTAL on few of the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dynamic table how do i assign those columns as Type 'I' so that i can perform DO_SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the method GET_I of class cl_abap_elemdescr but unable to achive the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Mar 2010 21:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765827#M1462336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-25T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765828#M1462337</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;Could you please let us know your definition part of source code on the GET_I ?&lt;/P&gt;&lt;P&gt;BTW, you also need to set the DO SUM attribute in the fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 00:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765828#M1462337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T00:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765829#M1462338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know when I need to create a dynamic alv I use the following (plumbing code removed). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: it_field_catalog      TYPE lvc_t_fcat.
DATA: dyn_table             TYPE REF TO data.
FIELD-SYMBOLS: &amp;lt;dyn_table&amp;gt;         TYPE table. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create your alv as normal. Or auto create the entries based on the tables, whatever conditions you use to determine the structure of the table at run time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ls_fcat-fieldname   = '???'.
  ls_fcat-inttype     = '?' .
  ls_fcat-outputlen   = '?' .
  ls_fcat-coltext     = '?' .
  ls_fcat-seltext     = '?' .
  ls_fcat-f4availabl  = '?'.
  ls_fcat-edit        = '?'.
  ls_fcat-key         = '?'.
  APPEND ls_fcat TO it_field_catalog .
&lt;/CODE&gt;&lt;/PRE&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 = it_field_catalog
       IMPORTING ep_table        = dyn_table
       EXCEPTIONS
              generate_subpool_dir_full = 1.

   ASSIGN dyn_table-&amp;gt;* TO &amp;lt;dyn_table&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This field symbol to the table can then be passed in place of the table when calling your alv and performing operations on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 02:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765829#M1462338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T02:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765830#M1462339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the below code, lt_components will have the details of type of each component in your dynamic structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lo_struc_descr ?= cl_abap_typedescr=&amp;gt;describe_by_data( &amp;lt;workarea&amp;gt; ).
 lt_components = lo_struc_descr-&amp;gt;get_components( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 03:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765830#M1462339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-26T03:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Internal Table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765831#M1462340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 20:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-internal-table-problem/m-p/6765831#M1462340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-29T20:33:19Z</dc:date>
    </item>
  </channel>
</rss>

