<?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: PUSH-BUTTON in ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990945#M404263</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;GO to SE41 copy the status STANDARD from the program SAPLKKBL..And give the status name and your program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the parameter I_CALLBACK_PF_STATUS_SET give the form name 'PF_STATUS_SET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PF_STATUS_SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STATUS NAME THAT YOU GAVE IN SE41'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&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;For user command pass the parameter I_CALLBACK_USER_COMMAND with the user command subroutine name..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;IF R_UCOMM = ''.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Example&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = lv_repid&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2007 05:10:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-07T05:10:10Z</dc:date>
    <item>
      <title>PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990944#M404262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we create a push-button in ALV-GRID.&lt;/P&gt;&lt;P&gt;How will u handle a push-button in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 05:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990944#M404262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T05:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990945#M404263</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;GO to SE41 copy the status STANDARD from the program SAPLKKBL..And give the status name and your program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the parameter I_CALLBACK_PF_STATUS_SET give the form name 'PF_STATUS_SET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PF_STATUS_SET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STATUS NAME THAT YOU GAVE IN SE41'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&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;For user command pass the parameter I_CALLBACK_USER_COMMAND with the user command subroutine name..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;IF R_UCOMM = ''.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Example&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = lv_repid&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 05:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990945#M404263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T05:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990946#M404264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;To add a push button and handle it,you have to define a local class and use the methods &amp;lt;b&amp;gt;handle_toolbar&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;handle_user_command&amp;lt;/b&amp;gt;.Here is a sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_eh DEFINITION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_eh DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DATA:&lt;/P&gt;&lt;P&gt;         &amp;lt;b&amp;gt;ls_toolbar  TYPE stb_button&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;b&amp;gt;handle_toolbar&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;                FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                    IMPORTING e_object e_interactive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;b&amp;gt;handle_user_command&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;                FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                    IMPORTING e_ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_eh DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*Type referencing an object of the class&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: lo_obj TYPE REF TO lcl_eh.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS lcl_eh IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_eh IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*METHOD:      HANDLE_TOOLBAR&lt;/P&gt;&lt;P&gt;*DESCRIPTION: This method provides the necessary detail required to&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             create an extra button in the toolbar.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD &amp;lt;b&amp;gt;handle_toolbar.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;    MOVE 'CREATE' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;    MOVE 0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;    MOVE 'CREATE' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;    MOVE 'ICON_DETAIL' TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;    MOVE 'CREATE' TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*METHOD:      HANDLE_USER_COMMAND&lt;/P&gt;&lt;P&gt;*DESCRIPTION: This method is used to handle the push button&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;METHOD handle_user_command.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    CASE e_ucomm.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      WHEN 'CREATE'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**logic&lt;/P&gt;&lt;P&gt;        ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beejal&lt;/P&gt;&lt;P&gt;**reward if this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 05:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990946#M404264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T05:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990947#M404265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ajay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you want to have a "push-button" column, i.e. push-buttons &amp;lt;b&amp;gt;within&amp;lt;/b&amp;gt; an ALV grid then you need to implement the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Set the style of the column as button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  ls_fcat-style = CL_GUI_ALV_GRID =&amp;gt; MC_STYLE_BUTTON.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) When the user pushes the button event &amp;lt;b&amp;gt;BUTTON_CLICK&amp;lt;/b&amp;gt; is triggered. Thus, define an appropriate event handler method.&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>Fri, 09 Mar 2007 22:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990947#M404265</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-03-09T22:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990948#M404266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay Do this way. you just copy this and modify according to your naming conventions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP INCLUDE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;CLASS event_handler_class DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Toolbar Event for Fund ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_alv_toolbar_prod FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                  IMPORTING e_object,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Handling ALV Grids toolbar buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_user_command_prod FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;         IMPORTING e_ucomm,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Handling ALV Grids toolbar buttons&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_user_command_region FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;         IMPORTING e_ucomm,&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;   gp_handler           TYPE REF TO event_handler_class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM INCLUDE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS event_handler_class IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_alv_toolbar_prod.&lt;/P&gt;&lt;P&gt;    PERFORM handle_product_toolbar USING e_object . "e_interactive.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_ar_toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD handle_user_command_prod.&lt;/P&gt;&lt;P&gt;    PERFORM handle_user_command_prod USING e_ucomm.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;FORM handle_product_toolbar  USING&lt;/P&gt;&lt;P&gt;                  p_object TYPE REF TO  cl_alv_event_toolbar_set.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adding Buttons to Toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: ls_toolbar           TYPE stb_button.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adding 'Select All' Button on the toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;  MOVE 'SELECT_ALL' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;  MOVE 0 TO ls_toolbar-butn_type.&lt;/P&gt;&lt;P&gt;  MOVE 'Select All' TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;  MOVE icon_create TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;  MOVE 'Select All' TO ls_toolbar-quickinfo.                                          " Select All&lt;/P&gt;&lt;P&gt;  APPEND  ls_toolbar TO p_object-&amp;gt;mt_toolbar .              "INDEX 1.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the form Hndle User Command you write you own code.&lt;/P&gt;&lt;P&gt;FORM handle_user_command_prod  USING    p_ucomm TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF p_ucomm = 'SELECT_ALL'.&lt;/P&gt;&lt;P&gt;    LOOP AT gt_product INTO gs_product.&lt;/P&gt;&lt;P&gt;      gs_product-product_check = 'X'.&lt;/P&gt;&lt;P&gt;      MODIFY gt_product FROM gs_product TRANSPORTING product_check.&lt;/P&gt;&lt;P&gt;      CLEAR: gs_product.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you write this code before Set table for first display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SET HANDLER gp_handler-&amp;gt;handle_user_command_prod  FOR gp_alv_grid_prod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SET HANDLER gp_handler-&amp;gt;handle_alv_toolbar_prod  FOR gp_alv_grid_prod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 05:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990948#M404266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T05:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: PUSH-BUTTON in ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990949#M404267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ajay..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check this link and read the 'An Easy Reference for ALV Grid Control' pdf file.  &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/advancedsearch?query=an%20easy%20reference%20for%20alv%20grid%20control&amp;amp;cat=sdn_all"&amp;gt;http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/advancedsearch?query=an%20easy%20reference%20for%20alv%20grid%20control&amp;amp;cat=sdn_all&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will be helpful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Jalendhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 07:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-in-alv-grid/m-p/1990949#M404267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T07:57:03Z</dc:date>
    </item>
  </channel>
</rss>

