<?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 SET_PF_STATUS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977962#M400454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can any body tell me &lt;/P&gt;&lt;P&gt;what is SET_PF_STATUS, and how to use this reports.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Feb 2007 20:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-26T20:24:45Z</dc:date>
    <item>
      <title>SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977962#M400454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can any body tell me &lt;/P&gt;&lt;P&gt;what is SET_PF_STATUS, and how to use this reports.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 20:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977962#M400454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T20:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977963#M400455</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 is used for defining your own menu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example for using SET PF-STATUS in reports..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;            check,&lt;/P&gt;&lt;P&gt;            value(20),&lt;/P&gt;&lt;P&gt;          END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET PF-STATUS 'TEST1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-value = 'ETSAT'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-value = 'ETSATADSF'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-value = 'ETSAT'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  WRITE: / itab-check AS CHECKBOX,&lt;/P&gt;&lt;P&gt;                itab-value.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT USER-COMMAND.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: wa LIKE itab.&lt;/P&gt;&lt;P&gt;  DATA: itab_download LIKE itab OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = 'DOWNLOAD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DESCRIBE TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO sy-tfill TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ LINE sy-index FIELD VALUE itab-check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CHECK itab-check = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      itab_download-value = itab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND itab_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   download&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call function 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              filename = 'C:\TEST.XLS '&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              data_tab = itab_download.&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;&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>Mon, 26 Feb 2007 20:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977963#M400455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T20:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977964#M400456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS is used for defining menu in the program and screens...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that first you need to create the GUI Status for the program in which you are going to use the GUI Status....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI Status contains the Menubar , Standard Toolbar &amp;amp; Application Toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create it by this way...&lt;/P&gt;&lt;P&gt;SE80&lt;/P&gt;&lt;P&gt;Create Program&lt;/P&gt;&lt;P&gt;Right Click on Program &lt;/P&gt;&lt;P&gt;Create --&amp;gt; GUS Status...&lt;/P&gt;&lt;P&gt;Give Name of that GUI Status.. ( Further it will be useful in the program )&lt;/P&gt;&lt;P&gt;Now it opens the window where you can design your own menu &amp;amp; toolbar...&lt;/P&gt;&lt;P&gt;Design it...&lt;/P&gt;&lt;P&gt;Now save and activate it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now come back to your program (ABAP Editor )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the first statement like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MENU1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here MENU1 is the name of the GUI status which you created from SE80..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can handle the user command here using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;  when 'SE11'.&lt;/P&gt;&lt;P&gt;     call transaction 'SE11'.&lt;/P&gt;&lt;P&gt;  when 'NEXT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Some logic...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reward the Points if it is helpful to you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ilesh Nandaniya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 20:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977964#M400456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977965#M400457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET PF-STATUS pfstat.&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sets a GUI (Graphical User Interface) status pfstat which can be up to 20 characters long. There are many of these statuses in the GUI of a program. Each one describes which functions are available and how you can select these via menus and menu bars or by pressing function keys or pushbuttons. For further information about this, refer to the Menu Painter documentation.&lt;/P&gt;&lt;P&gt;Each status has a name which may be up to 8 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting a status makes the functions contained therein selectable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method allows you to vary the available functions according to the current screen, list level and/or previous program flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current status is stored in the system field SY-PFKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A status remains valid for the duration of a transaction or until you set a new status.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Event in program:&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MAIN'.&lt;/P&gt;&lt;P&gt;WRITE SY-PFKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'F001'.&lt;/P&gt;&lt;P&gt;SET PF-STATUS '0001'.&lt;/P&gt;&lt;P&gt;WRITE SY-PFKEY.&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;Produces a list (contents MAIN) with a GUI framework which allows you to select functions assigned to the the status MAIN. If you choose the function code F001 (e.g. from the menu or by pressing a pushbutton), you trigger the event AT USER-COMMAND . This generates a secondary list (contents 0001) with a GUI framework which allows you to select functions assigned to the status 0001. On returning from the secondary list to the basic list the status MAIN is reactivated.&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 00:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977965#M400457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T00:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977966#M400458</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;To allow the user to communicate with the system when a list is displayed, the lists must be able to direct user actions to the ABAP program. As described in User Actions on Screens, function codes are used to do this. Function codes are maintained in the GUI status of the list screen. You define a GUI status using the Menu Painter tool in the ABAP Workbench. The system assigns function codes to list-specific user actions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most important of these functions is for selecting list lines by double-clicking. As described in Using a GUI Status, the double-click function is always linked to the F2 key. If a function code is assigned to the F2 key in the GUI status, it will be triggered when you double-click. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this link for details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 02:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977966#M400458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T02:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977967#M400459</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;PF status is used for defining your own menus.For example you can add your own push button DELETE' in the menu bar as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen,uncomment module status100 and double click on it.&lt;/P&gt;&lt;P&gt;It will ask you if you want to write the code for the module in the main program or a separate include.&lt;/P&gt;&lt;P&gt;Now,in PF status,&lt;/P&gt;&lt;P&gt;MODULE status_0200 OUTPUT.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'GUI2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncomment the SET PF_STATUS line and give a name say GUI2 and double click on the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find three tabs in the GUI status:&lt;/P&gt;&lt;P&gt;In the application toolbar,write the function code for the push button you want,say DELETE.Press enter and give the function text,icon name and info text and save and activate the GUI status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,in the PAI of the screen,uncomment the module user command and write the code:&lt;/P&gt;&lt;P&gt;Case ok_code.&lt;/P&gt;&lt;P&gt;When 'DELETE'.&lt;/P&gt;&lt;P&gt;...logic&lt;/P&gt;&lt;P&gt;Endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ok_code is defined in the top include as &lt;/P&gt;&lt;P&gt;DATA:ok_code type sy-ucomm.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;http://help.sap.com/saphelp_46c/helpdata/en/d1/801d5d454211d189710000e8322d00/frameset.htm&amp;lt;/b&amp;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>Tue, 27 Feb 2007 03:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977967#M400459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T03:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: SET_PF_STATUS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977968#M400460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can add this in the APPLICATION TOOL BAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this u have to create as follow:&lt;/P&gt;&lt;P&gt;In order modify PF_STATUS of ALV grid report you need to perform the following steps:&lt;/P&gt;&lt;P&gt;	1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include: &lt;/P&gt;&lt;P&gt;				i_callback_pf_status_set = 'SET_PF_STATUS' statement.&lt;/P&gt;&lt;P&gt;	2. Create 'SET_PF_STATUS' FORM&lt;/P&gt;&lt;P&gt;	3. Create pf_status (i.e. 'ZNEWSTATUS'). &lt;/P&gt;&lt;P&gt;	     - It is recommend that you copy standard status'STANDARD' from function group SALV&lt;/P&gt;&lt;P&gt;	       and modify it accordingly. ALV standard function codes always start with '&amp;amp;'.&lt;/P&gt;&lt;P&gt;&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;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_pfstatus.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In normal reports also u can use the same after END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the zstatus and create ur own status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 05:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-pf-status/m-p/1977968#M400460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T05:02:52Z</dc:date>
    </item>
  </channel>
</rss>

