<?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 Push button is ALV grid display. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228169#M1009865</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;I am can anyone tell me hw to create pushbottun in pf-status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2008 08:24:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-08T08:24:21Z</dc:date>
    <item>
      <title>Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228169#M1009865</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;I am can anyone tell me hw to create pushbottun in pf-status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 08:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228169#M1009865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T08:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228170#M1009866</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;In the application tool bar of the PF-STATUS...U can put ur text for the push button,activate it and now pass the PF-STATUS to alv_grid....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will get the pushbutton on the application tool bar..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 08:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228170#M1009866</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2008-08-08T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228171#M1009867</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;Check the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="294811"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 08:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228171#M1009867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T08:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228172#M1009868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this sample code availble on SDN&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* create a custom area on the screen 
DATA : gref_ver_toolbar      TYPE REF TO cl_gui_toolbar,
       gref_custom_container TYPE REF TO cl_gui_custom_container.
 
* initializing toolbar
* Creating toolbar container............................................
  create object gref_custom_container
  exporting
  container_name              = iv_ccarea   " control area on screen
 exceptions
   cntl_error                  = 1
   cntl_system_error           = 2
   create_error                = 3
   lifetime_error              = 4
   lifetime_dynpro_dynpro_link = 5
   others                      = 6
     .
 
* creating reference to toolbar........................................
  create object gref_ver_toolbar
  exporting
   parent         = gref_custom_container
   display_mode       = 1
 exceptions
   cntl_install_error = 1
   cntl_error         = 2
   cntb_wrong_version = 3
   others             = 4
      .
* subroutine to create buttons
* Local data............................................................
  data: lv_fcode       type ui_func,
        lv_icon        type iconname,
        lv_is_disabled type c,
        lv_quickinfo   type iconquick.
 
 
* delete node  button...................................................
  lv_fcode            = 'DELETE'.
  lv_icon             = '@11@'.
  lv_is_disabled      = space.
  lv_quickinfo        = test(001).
 
* adding button to toolbar
  call method gref_toolbar-&amp;gt;add_button
   exporting
    fcode            = lv_fcode
    icon             = lv_icon
    is_disabled      = lv_is_disabled
    butn_type        = cntb_btype_button
    quickinfo        = lv_quickinfo
   exceptions
    cntl_error       = 1
    cntb_btype_error = 2
    cntb_error_fcode = 3
    others           = 4
            .
* registering toolbar
* Local data............................................................
  data: ls_event type cntl_simple_event,
        lt_event type cntl_simple_events.
  ls_event-eventid    = cl_gui_toolbar=&amp;gt;m_id_function_selected.
  ls_event-appl_event = space.
  append ls_event to lt_event.
 
* Method for Registering Events for Toolbar.............................
  call method gref_toolbar-&amp;gt;set_registered_events
    exporting
      events                    = lt_event[]
    exceptions
      cntl_error                = 1
      cntl_system_error         = 2
      illegal_event_combination = 3
      others                    = 4.
 
 * Setting handler for the Toolbar Buttons..............................
  set handler  gref_application-&amp;gt;handle_function_selected
          for  gref_toolbar.
 
 


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;just copy paste the above code in the PBO of the screen also you need to create a method handle_function_selected which will take care of the function on the button&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Method to handle button on toolbar....................................
     handle_function_selected
                    FOR EVENT function_selected
                           OF cl_gui_toolbar
                    IMPORTING fcode.
 
method handle_function_selected.
      case fcode.
 
        when 'DELETE'.
*          code...
     endcase.          
 
endmethod.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 08:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228172#M1009868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T08:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228173#M1009869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Set pf status 'ZEXM'. double click on the pf status . Then go to application tool bar tab . Enter the function code in the input field .Double click on the fcode. Enter the required text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In the alv function module REUSE_ALV_GRID_DISPLAY , in this Fm in the parameter I_CALLBACK_PF_STATUS_SET give the name of the A name .  The pf status should be in within form and endform. In this Form and endform , you can handle the push button . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form pf status.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'FCODE'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 08:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228173#M1009869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T08:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228174#M1009870</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;Check this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program       = sy-repid&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'PFSTATUS'&lt;/P&gt;&lt;P&gt;      it_fieldcat              = it_fieldcat&lt;/P&gt;&lt;P&gt;      is_layout                = it_layout&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     it_event_exit            = it_eventexit&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_screen_start_column    = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_screen_start_line      = 20&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_screen_end_column      = 70&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_screen_end_line        = 45&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_grid_title             = 'Call Tcode Refresh ALV'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = t_final.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  user_command&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&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;      text&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;*User actions on ALV&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm TYPE sy-ucomm&lt;/P&gt;&lt;P&gt;                        rs_selfield TYPE slis_selfield.  &lt;/P&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'PUSHBUTTON'.&lt;/P&gt;&lt;P&gt;         write ur logic here...&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "user_command&lt;/P&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM PFSTATUS                                            *&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;FORM pfstatus USING ut_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STANDARD_FULLSCREEN1' .&lt;/P&gt;&lt;P&gt;ENDFORM.                               " PF_STATUS_SET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the 'STANDARD_FULLSCREEN1'  and add ur push button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 12:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228174#M1009870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T12:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Push button is ALV grid display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228175#M1009871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the call back status or Event for set pf status, we can do that.&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_pf_status_set = 'STATUS'&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM STATUS using extab type slis_t_extab.

set pf-status 'STANDARD' excluding extab.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to SE41, here you enter program name SAPLKKBL and status name STANDARD , now click on Copy status Button, and now a pop up appears , enter the PRogram name &lt;STRONG&gt;in to&lt;/STRONG&gt; option. Now copy it, go to change mode add the button in the application tool bar, and activate that . then you go to you program and check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For handling the button you need to use the user_command event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND using ucomm type sy-ucomm
 selfield type slis_selfield.

case ucomm.
when 'ABC'.

endcase.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2008 12:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-button-is-alv-grid-display/m-p/4228175#M1009871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-08T12:57:11Z</dc:date>
    </item>
  </channel>
</rss>

