<?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/2951060#M695904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Z program which will give us an ALV report. I set a custom PF status to the report.&lt;/P&gt;&lt;P&gt;I handle the custom PF for exit by using LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that.&lt;/P&gt;&lt;P&gt;Once i execute the report its giving ALV. if i press BACK its giveing selectoin screen.But if i press BACK in the selection screen its again going to ALV report which should not. it should go ABAP editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2007 10:45:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-23T10:45:22Z</dc:date>
    <item>
      <title>PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951060#M695904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Z program which will give us an ALV report. I set a custom PF status to the report.&lt;/P&gt;&lt;P&gt;I handle the custom PF for exit by using LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that.&lt;/P&gt;&lt;P&gt;Once i execute the report its giving ALV. if i press BACK its giveing selectoin screen.But if i press BACK in the selection screen its again going to ALV report which should not. it should go ABAP editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know asap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 10:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951060#M695904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T10:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951061#M695905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to include this in PAI on each screen. THIS SHOLD BE THE FIRST STATEMENT ON EVERY SCREEN,IN PAI PART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module EXIT_BACK ON EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the code for the same.&lt;/P&gt;&lt;P&gt;Module EXIT_BACK  INPUT.&lt;/P&gt;&lt;P&gt;CASE OK-CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&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;ALSO IN YOUR PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOUBLE CLICK YOUR BACK BUTTON AND EXIT BUTTON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT 'E' FOR THEM ON EACH SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAVE AND ACTIVATE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW RUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMIT SINGLA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Amit Singla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951061#M695905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951062#M695906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In user-command, check the screen no before coding for BACK. like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;case sy-ucomm.
    when 'BACK'.
    IF sy-dynnr EQ '0100'.
        leave to screen 0.
    elseif sy-dynnr EQ '1000'.
       leave program.
   endif. 

endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951062#M695906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951063#M695907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can check the value for sy-ucomm if it is equal to the function code of back button then use leave list processing,I think it  will take back to your selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 11:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/2951063#M695907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T11:11:55Z</dc:date>
    </item>
  </channel>
</rss>

