<?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: set_table_for_first_display SUBTOTAL button grayed out in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628963#M1281769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your two suggestions worked flawlessly.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another related question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the subtotal dialog displays, three options are displayed, sort ascending, sort descending, and subtotal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing tcode FS10N, a fourth option, countrol break also displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the control break option to display in my program when the subtotal dialog displays?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2009 20:34:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-08T20:34:12Z</dc:date>
    <item>
      <title>set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628956#M1281762</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;&lt;/P&gt;&lt;P&gt;Method "set_table_for_first_display" of class "cl_gui_alv_grid" is displaying the SUBTOTAL icon grayed out.  Initially I was excluding the button.  But after commenting out the exclude logic, the button displayed but is not active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do i need to changed to allow that button to be pressed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_grid  TYPE REF TO cl_gui_alv_grid,     " ALV grid object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA ls_exclude TYPE ui_func.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;prevent display of the following icons on the ALV toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ls_exclude = cl_gui_alv_grid=&amp;gt;mc_mb_subtot.           " SUBTOTAL&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; append ls_exclude to pt_exclude.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL METHOD w_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_bypassing_buffer   = 'X'&lt;/P&gt;&lt;P&gt;      is_layout            = l_layout&lt;/P&gt;&lt;P&gt;      it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog      = il_fieldcat&lt;/P&gt;&lt;P&gt;      it_outtab            = il_outtab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 22:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628956#M1281762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628957#M1281763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove the below passing parameter &lt;/P&gt;&lt;P&gt;it_toolbar_excluding = lt_exclude to the call of the method..set_for)first_diaply..&lt;/P&gt;&lt;P&gt;and check...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sravan Kumar on May 8, 2009 6:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 04:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628957#M1281763</guid>
      <dc:creator>former_member242255</dc:creator>
      <dc:date>2009-05-08T04:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628958#M1281764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Create a Table of Type LVC_T_SORT --&amp;gt;T_sort&lt;/P&gt;&lt;P&gt;2) Field string of type LVC_S_SORT---&amp;gt;Fs_sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass:&lt;/P&gt;&lt;P&gt;FS_sort-Fieldname = &amp;lt;Numceric Field&amp;gt;.&lt;/P&gt;&lt;P&gt;FS_SORT-SUBTOT = 'X'.&lt;/P&gt;&lt;P&gt;Append fs_sort to t_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Pass the table to &lt;STRONG&gt;CALL METHOD w_grid-&amp;gt;set_table_for_first_display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 07:27:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628958#M1281764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T07:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628959#M1281765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sravan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing exclude table from the method did not change the SUBTOTAL icon.  It is still grayed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 16:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628959#M1281765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628960#M1281766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gurpreet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding your code suggestion,  the SUBTOTAL icon is still grayed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 16:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628960#M1281766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T16:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628961#M1281767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce, try clicking the "total" button first. The subtotal button should then be active.  If you want the subtotal button to be active by default, you must set the alv grid to total any of the numeric fields on first display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628961#M1281767</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-05-08T17:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628962#M1281768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, to set the totaling for a column use the DO_SUM field in the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;clear: ls_fcat.
  ls_fcat-reptext    = 'Est. Hrs'.
  ls_fcat-coltext    = 'Est. Hrs'.
  ls_fcat-fieldname  = 'ESHRS'.
  ls_fcat-ref_table  = 'I_ALV'.
  ls_fcat-datatype   = 'QUAN'.
  ls_fcat-do_sum     = 'X'.      "&amp;lt;--- SEt this flag
  ls_fcat-just       = 'R'.
  ls_fcat-outputlen  = '10'.
  ls_fcat-col_pos    = 7.
  append ls_fcat to fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628962#M1281768</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-05-08T17:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628963#M1281769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your two suggestions worked flawlessly.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another related question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the subtotal dialog displays, three options are displayed, sort ascending, sort descending, and subtotal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing tcode FS10N, a fourth option, countrol break also displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the control break option to display in my program when the subtotal dialog displays?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 20:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628963#M1281769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T20:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: set_table_for_first_display SUBTOTAL button grayed out</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628964#M1281770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question was answered correctly, but I wanted to ask a follow-up question.  I thought my follow-up question would be more likely to be looked at and answered if the question was still marked as unanswered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 20:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-subtotal-button-grayed-out/m-p/5628964#M1281770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T20:45:44Z</dc:date>
    </item>
  </channel>
</rss>

