<?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: Get all the function button in SET_TABLE_FOR_FIRST_DISPLAY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731110#M1110337</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;you have to configure the layout of the alv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout-no_toolbar = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the layout to the method set_table_for_first_display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 09:28:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-11T09:28:08Z</dc:date>
    <item>
      <title>Get all the function button in SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731108#M1110335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used the the method SET_TABLE_FOR_FIRST_DISPLAY to display my ALV. Unfortunately, icons like TOTAL, FILTER..... that are availble in SET_TABLE_FOR_FIRST_DISPLAY is not working. Kindly please provide me answer why the icons are not working. Below is my code. Did I miss something? Helpful advise will be rewarded. Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE OBJECT CC_OBJ
    EXPORTING
*      PARENT                      =
      CONTAINER_NAME              = 'CC_OBJ'
*      STYLE                       =
*      LIFETIME                    = lifetime_default
*      REPID                       =
*      DYNNR                       =
*      NO_AUTODEF_PROGID_DYNNR     =
    EXCEPTIONS
      CNTL_ERROR                  = 1
      CNTL_SYSTEM_ERROR           = 2
      CREATE_ERROR                = 3
      LIFETIME_ERROR              = 4
      LIFETIME_DYNPRO_DYNPRO_LINK = 5
      OTHERS                      = 6
      .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CREATE OBJECT OBJ_ALV_GRID
    EXPORTING
*      I_SHELLSTYLE      = 0
*      I_LIFETIME        =
      I_PARENT          = CC_OBJ
*      I_APPL_EVENTS     = space
*      I_PARENTDBG       =
*      I_APPLOGPARENT    =
*      I_GRAPHICSPARENT  =
*      I_NAME            =
*      I_FCAT_COMPLETE   = SPACE
    EXCEPTIONS
      ERROR_CNTL_CREATE = 1
      ERROR_CNTL_INIT   = 2
      ERROR_CNTL_LINK   = 3
      ERROR_DP_CREATE   = 4
      OTHERS            = 5
      .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

* CALLING THE CREATED INSTANCE TO METHOD
  CALL METHOD OBJ_ALV_GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
   EXPORTING
*    I_BUFFER_ACTIVE               =
*    I_BYPASSING_BUFFER            =
*    I_CONSISTENCY_CHECK           =
      I_STRUCTURE_NAME              = 'SFLIGHT'
*    IS_VARIANT                    =
*    I_SAVE                        =
*    I_DEFAULT                     = 'X'
*    IS_LAYOUT                     =
*    IS_PRINT                      =
*    IT_SPECIAL_GROUPS             =
*    IT_TOOLBAR_EXCLUDING          =
*    IT_HYPERLINK                  =
*    IT_ALV_GRAPHICS               =
*    IT_EXCEPT_QINFO               =
*    IR_SALV_ADAPTER               =
    CHANGING
      IT_OUTTAB                     = IT_SFLIGHT
*    IT_FIELDCATALOG               =
*    IT_SORT                       =
*    IT_FILTER                     =
  EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR                 = 2
    TOO_MANY_LINES                = 3
    OTHERS                        = 4
          .
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


* FREE MEMORY FOR ALV GRID AND CLASS CL_GUI_CFW.
  CALL METHOD OBJ_ALV_GRID-&amp;gt;FREE.
  CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.
  CALL SCREEN '0100'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 08:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731108#M1110335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T08:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get all the function button in SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731109#M1110336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will see the TOTAL button if your output internal table contain at least one value field, such as data type P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative you can implement the event handler for TOOLBAR event. BCALV_GRID_05 for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chris Xu on Nov 11, 2008 5:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731109#M1110336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get all the function button in SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731110#M1110337</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;you have to configure the layout of the alv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: layout type lvc_s_layo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout-no_toolbar = '  '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass the layout to the method set_table_for_first_display.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 09:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731110#M1110337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get all the function button in SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731111#M1110338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply but I got it by myself. Actually, It is automatic that the controls of the ALV is active. The only problem is my logic. Below should be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*CALL SCREEN '0100'.

CALL METHOD OBJ_ALV_GRID-&amp;gt;FREE.
CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.*
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 10:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-all-the-function-button-in-set-table-for-first-display/m-p/4731111#M1110338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T10:29:13Z</dc:date>
    </item>
  </channel>
</rss>

