<?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 pf status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233794#M771548</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;&lt;/P&gt;&lt;P&gt;    can anybody explain abt pf status and usercommand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 05:58:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T05:58:52Z</dc:date>
    <item>
      <title>pf status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233794#M771548</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;&lt;/P&gt;&lt;P&gt;    can anybody explain abt pf status and usercommand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 05:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233794#M771548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T05:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: pf status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233795#M771549</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;Pushbuttons on the Selection Screen &lt;/P&gt;&lt;P&gt;To create a pushbutton on the selection screen (similar to pushbuttons on screens), you use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION SCREEN PUSHBUTTON &lt;A href="https://answers.sap.com/"&gt;&lt;/A&gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://answers.sap.com/"&gt;&lt;/A&gt;. When the user clicks one of the pushbuttons, the AT SELECTION-SCREEN event is triggered, and the FLAG field is set. The FLAG field can be further processed during subsequent program flow after the user has chosen Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the Standard GUI Status &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GUI status of a selection screen is generated by the system. The SET PF-STATUS statement in the PBO event of the selection screen has no effect on the standard GUI status. If you want to use your own GUI status for a selection screen or deactivate functions in the standard GUI status in exceptional cases, you can use one of the following function modules in the PBO event of the selection screen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_SET_SELSCREEN_STATUS&lt;/P&gt;&lt;P&gt;Sets another GUI status defined in the same ABAP program, or deactivates functions of the standard GUI status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RS_EXTERNAL_SELSCREEN_STATUS&lt;/P&gt;&lt;P&gt;Sets a GUI status defined in an external function group. You must use the SET PF-STATUS statement to set the status in a special function module in this function group. You must pass the name of the function module that sets the status as a parameter to the function module RS_EXTERNAL_SELSCREEN_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information, refer to the function module documentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab TYPE TABLE OF sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS test(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  APPEND: 'PRIN' TO itab,&lt;/P&gt;&lt;P&gt;          'SPOS' TO itab.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            p_status  = sy-pfkey&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            p_exclude = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the Print and Save as variant functions are deactivated. To find out the function codes of the standard GUI status, choose System ® Status and double-click the GUI status field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 06:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233795#M771549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: pf status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233796#M771550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PF-STATUS is used to set the GUI Status of a screen, ie you can control the options on your menu bar, application toolbar, the function keys assigned to various options etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing the status for a screen can be done in 2 ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create the GUI status using the object list of the program or by using the transaction SE41. Then, assign it to the screen using SET PF-STATUS statement. &lt;/P&gt;&lt;P&gt;2) Create the GUI status by means of forward navigation, ie, use the SET PF-STATUS 'XXX' statement where 'XXX' is the name of the GUI status and double click on it to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status names can have a maximum of 20 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After assigning a GUI status to a screen, this is inherited to all subsequent screens. In order to have a different status for each of the subsequent screens, you have to set a separate status for each screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction SE41,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Give the program name and the status name and click on the Create button.&lt;/P&gt;&lt;P&gt;2) Go to 'Function keys' and expand.&lt;/P&gt;&lt;P&gt;3) On top of the save icon type SAVE, on top of the back icon type BACK, on top the the exit icon type EXIT etc ie on top of all the icons that you want to use, type the respective names that you want to give.&lt;/P&gt;&lt;P&gt;Whatever you have typed now becomes the function codes of these icons and can be used in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you have a screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 'Element list' tab of the screen, give "ok_code" as the name where "OK" is the type of screen element. Activate screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow logic for the screen looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the modules STATUS_0100 and USER_COMMAND_0100 in the main program by simply double clicking on them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for these modules can be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'Example'. "Example is the name of the GUI status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;"call a subroutine to save the data or give statements to save data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&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;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go thru this Link for More Info,&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3533955"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 06:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233796#M771550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T06:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: pf status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233797#M771551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PF-Status&lt;/STRONG&gt; is used in interactive report for enhancing the functionality. If we go to SE41, we can get menus, items and different function keys, which we are using for secondary list in interactive report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &lt;/P&gt;&lt;P&gt;&lt;EM&gt;Effect&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A simple code with pf-status and user-command&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This program works with a self-defined GUI status MYLIST. The function that is linked there with the function code MY_SELECTION causes the event AT USER-COMMAND during list display and also creates details lists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_at_user_command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MYLIST'. &lt;/P&gt;&lt;P&gt;  WRITE 'List line'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &lt;/P&gt;&lt;P&gt;  IF sy-lsind = 20. &lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'MYLIST' EXCLUDING 'MY_SELECTION'. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;  CASE sy-ucomm. &lt;/P&gt;&lt;P&gt;    WHEN 'MY_SELECTION'. &lt;/P&gt;&lt;P&gt;      WRITE: / 'You worked on list', sy-listi, &lt;/P&gt;&lt;P&gt;             / 'You are on list', sy-lsind. &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;&lt;EM&gt;Reward if helpful.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 06:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233797#M771551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T06:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: pf status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233798#M771552</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;Please refer to the document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba34635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/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;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 06:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/3233798#M771552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T06:13:54Z</dc:date>
    </item>
  </channel>
</rss>

