<?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: pf-status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829678#M353709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_top_of_page   = 'TOP-OF-PAGE'  
            i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM 
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            i_save                  = 'X'
       tables
            t_outtab                = it_ekko
       exceptions
            program_error           = 1
            others                  = 2.

*------------------------------------------------------------------*
*       FORM SET_PF_STATUS                                         *
*------------------------------------------------------------------*
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZNEWSTATUS'. 
                  "Copy of 'STANDARD' pf_status from fgroup SALV
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********&lt;STRONG&gt;copy pf status&lt;/STRONG&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)goto se80&lt;/P&gt;&lt;P&gt;2)open function group SALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) In that STANDARD gui-status will be there.&lt;/P&gt;&lt;P&gt;4)right click on that and ther is option of copy&lt;/P&gt;&lt;P&gt;5)just copy it and save it with ur name 'status_name'.&lt;/P&gt;&lt;P&gt;6) now in ur program SET PF-STATUS '(status_name)'.&lt;/P&gt;&lt;P&gt;7)don't forget to active it again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 06:22:15 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2007-01-29T06:22:15Z</dc:date>
    <item>
      <title>pf-status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829677#M353708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;i have a pf-status which is applicable to 2  'REUSE_ALV_LIST_DISPLAY' function module.I want to hide certain user defined buttons for the first list_display and hide certain others for second list_display.&lt;/P&gt;&lt;P&gt;How can this be achieved ? &lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829677#M353708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: pf-status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829678#M353709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = gd_repid
            i_callback_top_of_page   = 'TOP-OF-PAGE'  
            i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM 
            is_layout               = gd_layout
            it_fieldcat             = fieldcatalog[]
            i_save                  = 'X'
       tables
            t_outtab                = it_ekko
       exceptions
            program_error           = 1
            others                  = 2.

*------------------------------------------------------------------*
*       FORM SET_PF_STATUS                                         *
*------------------------------------------------------------------*
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
  SET PF-STATUS 'ZNEWSTATUS'. 
                  "Copy of 'STANDARD' pf_status from fgroup SALV
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********&lt;STRONG&gt;copy pf status&lt;/STRONG&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)goto se80&lt;/P&gt;&lt;P&gt;2)open function group SALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) In that STANDARD gui-status will be there.&lt;/P&gt;&lt;P&gt;4)right click on that and ther is option of copy&lt;/P&gt;&lt;P&gt;5)just copy it and save it with ur name 'status_name'.&lt;/P&gt;&lt;P&gt;6) now in ur program SET PF-STATUS '(status_name)'.&lt;/P&gt;&lt;P&gt;7)don't forget to active it again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829678#M353709</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-01-29T06:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: pf-status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829679#M353710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first go to se80 choose fn grp SALV. take GUI status standard and copy for your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : ievent type slis_t_event,&lt;/P&gt;&lt;P&gt;       wevent type slis_alv_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_LIST_TYPE           = 0&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ET_EVENTS             = ievent&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_TYPE_WRONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table ievent into wevent with key name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wevent-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;in alv list display define&lt;/P&gt;&lt;P&gt;IT_EVENTS                      = ievent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in top of page form..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form TOP_OF_PAGE using extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;data : wextab type slis_extab.&lt;/P&gt;&lt;P&gt;wextab-fcode = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;append wextab to extab.&lt;/P&gt;&lt;P&gt;&amp;lt;whatever you want to exclude just append that in extab&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'ZSTANDARD' excluding  extab.   &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;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/1829679#M353710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:53:02Z</dc:date>
    </item>
  </channel>
</rss>

