<?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 Buttons on application toolbar. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590705#M265865</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;set pf-status 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double clcik on test then u will forwarded to menu painter. expand the application toolbar and provide ur buttons and ur function codes for that.. u can choose icons for buttons and text for icons to display. provide function keys.. save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide the pf-status to ur alv grid control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2006 19:30:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-17T19:30:57Z</dc:date>
    <item>
      <title>Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590703#M265863</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;I have a alv report and now I need to add 2 push buttons on the application tool bar for this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how to proceed on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 18:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590703#M265863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T18:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590704#M265864</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;if you are using functionmodule REUSE_ALV_GRID_DISPLAY, then you have to &lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First create the ststus using set pf-status 'ZSTAT01' and then remove set pf-status statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. assgine the created PF-status to g_formname_pf_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the user-command, you can handle code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_formname_pf_status    TYPE slis_formname. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_formname_pf_status =  'ZSTAT01',&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       = g_repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = g_formname_pf_status&lt;/P&gt;&lt;P&gt;..............&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;      is_layout                = gs_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat              = gt_fieldcat[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = output_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error            = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&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;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 18:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590704#M265864</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-10-17T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590705#M265865</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;set pf-status 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double clcik on test then u will forwarded to menu painter. expand the application toolbar and provide ur buttons and ur function codes for that.. u can choose icons for buttons and text for icons to display. provide function keys.. save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide the pf-status to ur alv grid control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 19:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590705#M265865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590706#M265866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rama Krishna and Srinu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mentioned the statement set pf-status 'zsele' in my program and created two buttons select all, deselect all. But these buttons are comming on the select screen, not on the output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 21:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590706#M265866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-17T21:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590707#M265867</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;Follow the below steps to add your own buttons to ALV Grid Reort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Copy the standard status STANDARD from program SAPLSALV to your program.&lt;/P&gt;&lt;P&gt;   YOu can do this from transaction SE41. Now add your buttons to this status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now let us say the copied status is STAT001.&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_bypassing_buffer  = gs_test-bypassing_buffer&lt;/P&gt;&lt;P&gt;      i_buffer_active     = gs_test-buffer_active&lt;/P&gt;&lt;P&gt;      i_callback_program  = g_repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'STAT001'&lt;/P&gt;&lt;P&gt;   i_callback_user_command = 'F01_ALV_EVENT_USER_COMMAND'&lt;/P&gt;&lt;P&gt;      is_layout            = ls_layo&lt;/P&gt;&lt;P&gt;      it_fieldcat          = lt_fcat&lt;/P&gt;&lt;P&gt;      i_default            = gs_test-vari_default&lt;/P&gt;&lt;P&gt;      i_save               = gs_test-vari_save&lt;/P&gt;&lt;P&gt;      is_variant           = ls_vari&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    E_EXIT_CAUSED_BY_CALLER           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ES_EXIT_CAUSED_BY_USER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                          = gt_outtab&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error                     = 1&lt;/P&gt;&lt;P&gt;      others                            = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now write code in the USER_COMMAND for the new buttons.&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;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 22:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590707#M265867</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-10-17T22:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Push Buttons on application toolbar.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590708#M265868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it. Now I am getting Select all and Deselect all buttons, but I am not able to get my third button Remove. How should I get it and it is taking lot of time to get the output screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending my include, can you please check, if I am doing any thing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am getting lot of other buttons with my include. How to get rid of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data:
  g_variant              like  disvariant.          "variants
type-pools:  slis.                                "Global types
data: s_alv_layout_cat          type slis_layout_alv.
data: s_alv_print_cat           type slis_print_alv.
* ALV field catalog
data: it_alv_field_cat type slis_fieldcat_alv occurs 0 with header line,
      S_FIELDCATALOG type slis_fieldcat_alv occurs 0 with header line,
      i_fieldcat type slis_fieldcat_alv occurs 0 with header line,
      w_fieldcat like line of i_fieldcat.        "ALV FieldCat WorkArea
* ALV sort catalog
data: it_alv_sort_cat type slis_sortinfo_alv occurs 0 with header line.
* ALV event catalog
data: it_alv_event_cat type slis_alv_event occurs 0 with header line.
data: t_list_top_of_page type slis_t_listheader.

DATA: g_formname_pf_status TYPE slis_formname.

form sub_alv_routines.
* Populate the layout catalog for alv
  perform alv_layout.
* Populate the event catalog for alv
  perform alv_events.
* Populate the print catalog for alv
  perform alv_print.
endform.                 "sub_alv_routines

g_formname_pf_status = 'ZSTAT01'.

form sub_call_alv_grid tables lt_output.

* Call ALV display
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = sy-cprog
            i_callback_pf_status_set = g_formname_pf_status
            is_layout               = s_alv_layout_cat
            i_callback_user_command = 'USER_COMMAND'
            it_fieldcat             = it_alv_field_cat[]
*           it_sort                 = it_alv_sort_cat[]
            i_save                  = 'A'
            is_variant              = g_variant
            it_events               = it_alv_event_cat[]
            is_print                = s_alv_print_cat
            i_grid_title            = text-t01
       tables
            t_outtab                = lt_output
       exceptions
            program_error           = 1
            others                  = 2.

*  if sy-subrc &amp;lt;&amp;gt; 0.
*    message e048. "Error executing func. module REUSE_ALV_LIST_DISPLAY
*  endif.


endform.                    " sub_call_alv_grid

form alv_layout.

* Enable striped output display if user wants
  s_alv_layout_cat-zebra                = 'X'.
* Optimize column width if user wants
  s_alv_layout_cat-colwidth_optimize    = 'X'.
  s_alv_layout_cat-box_fieldname        = 'CHECK'.
  s_alv_layout_cat-no_input             = 'X'.
*  if p_lines = 'X'.
*    s_alv_layout_cat-no_vline           = ' '.
*  else.
*    s_alv_layout_cat-no_vline           = 'X'.
*  endif.
  s_alv_layout_cat-no_colhead           = ' '.
  s_alv_layout_cat-lights_condense      = 'X'.
  s_alv_layout_cat-info_fieldname       = 'ALV_COLOR'.
  s_alv_layout_cat-confirmation_prompt  = 'X'.
  s_alv_layout_cat-detail_popup         = 'X'.
  s_alv_layout_cat-detail_initial_lines = 'X'.

endform.                    " alv_layout

form alv_events.
* Declare event catalog for page headers
  clear it_alv_event_cat.
  it_alv_event_cat-name = 'TOP_OF_PAGE'.
  it_alv_event_cat-form = 'TOP_OF_PAGE'.
  append it_alv_event_cat.

* Declare event catalog for report footers
  clear it_alv_event_cat.
  it_alv_event_cat-name = 'END_OF_LIST'.
  it_alv_event_cat-form = 'END_OF_LIST'.
*  append it_alv_event_cat.

endform.                    " alv_events

form alv_print.
* Declare print catalog for statistics page
  s_alv_print_cat-no_print_listinfos = 'X'.

endform.                    " alv_print


form alv_build_fieldcat  using lt_output  l_repid.


*DATA: S_FIELDCATALOG type SLIS_T_FIELDCAT_ALV occurs 0.

  call function 'REUSE_ALV_FIELDCATALOG_MERGE'
       exporting
          i_program_name         = l_repid
          i_internal_tabname     = lt_output
*         I_CLIENT_NEVER_DISPLAY = 'X'
          i_inclname             = l_repid
       changing
          ct_fieldcat            = it_alv_field_cat[]
      exceptions
           inconsistent_interface = 1
           program_error          = 2
           others                 = 3.

  if sy-subrc &amp;lt;&amp;gt; 0.                    "something went wrong...
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    exit.
  endif.

  s_fieldcatalog-checkbox = 'X'.
  s_fieldcatalog-edit = 'X'.


endform.                    " ALV_BUILD_FIELDCAT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 21:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/push-buttons-on-application-toolbar/m-p/1590708#M265868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T21:19:59Z</dc:date>
    </item>
  </channel>
</rss>

