<?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: LEAVE TO LIST PROCESSING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464814#M1554339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srini &amp;amp; Nitwick,&lt;/P&gt;&lt;P&gt;I checked the ok_codes. Unfortunately on coming back from 0003 to 0002. and again pressing back on 0002. The PBO of 0002 itself is getting triggered again.. Its not going to PAI of 0002.... Y it is so...? is it due to list processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Linda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Linda Thomas on Dec 16, 2010 8:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 07:42:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-16T07:42:39Z</dc:date>
    <item>
      <title>LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464810#M1554335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to display a basic list on clicking a button on a screen and then from list on clicking a button i have to go to another screen. Something similar to VERSION COMPARISON feature available in normal abap workbench....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My problem is when i click 'BACK'  or 'CANCEL' or 'EXIT' on my list screen i am not going back instead i am going to next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input Screen-1  has SHOW_VERSION BUTTON . on clicking it&lt;DEL&gt;-&amp;gt;  display a list output that shows all versions and this list output screen shuld have a button(COMPARE) on its toolbar&lt;/DEL&gt;-&amp;gt; when i click on this-- i have to open another screen  that shows comparison result.... &lt;/P&gt;&lt;P&gt;So i used three screen (0001,0002 and 0003)... And in PBO of 0002, i gave below code&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'STATUS_0002'.  ---&amp;gt; i created COMPARE button with function_code = COMPARE&lt;/P&gt;&lt;P&gt;    PERFORM disp_version_list.&lt;/P&gt;&lt;P&gt;    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN '0003'.&lt;/P&gt;&lt;P&gt;    LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the event AT_USER_COMMAND&lt;/P&gt;&lt;P&gt;WHEN 'COMPARE'.&lt;/P&gt;&lt;P&gt; LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when i click COMPARE i go to screen-0003. But when i click BACK i use CALL SCREEN '0002'. and in screen'0002' if i click back its again going back to 0003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;Regards, Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 06:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464810#M1554335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T06:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464811#M1554336</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;    Check your OK_CODE in all the screens . check if the ok code is cleared while leaving to other screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 06:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464811#M1554336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T06:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464812#M1554337</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;Have you actually coded the logic while pressing the BACK button?&lt;/P&gt;&lt;P&gt;Please check your sy-ucomm values in all the screens during navigation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 06:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464812#M1554337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T06:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464813#M1554338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try with the following code and change according to your code.Before that you have set the PF-STATUS for the screens and declare the Function Code and Function type accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; case sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'BACK'.&lt;/P&gt;&lt;P&gt;      clear: p_field1,p_field2.  " screen fields in the 0100 screen number&lt;/P&gt;&lt;P&gt;      leave to screen '0100'.  " previous screen number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      when 'EXIT'.&lt;/P&gt;&lt;P&gt;      leave program.                " Function type must be declared with ' E' in PF-STATUS&lt;/P&gt;&lt;P&gt;  endcase.                             " CASE sy-ucomm.&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;Suvajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 07:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464813#M1554338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T07:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464814#M1554339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srini &amp;amp; Nitwick,&lt;/P&gt;&lt;P&gt;I checked the ok_codes. Unfortunately on coming back from 0003 to 0002. and again pressing back on 0002. The PBO of 0002 itself is getting triggered again.. Its not going to PAI of 0002.... Y it is so...? is it due to list processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Linda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Linda Thomas on Dec 16, 2010 8:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 07:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464814#M1554339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T07:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464815#M1554340</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 debug and check your code. May be, you are calling the screen 0003 somewhere when you press BACK on screen 0002.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 08:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464815#M1554340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T08:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: LEAVE TO LIST PROCESSING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464816#M1554341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Write the following code before the leave to &lt;STRONG&gt;leave to list processing&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
clear ok_code.
ok_code = sy-ucomm.
clear sy-ucomm.
case ok_code.
when 'COMPARE'
     leave to list processing and return to screen '0003'.
     write 'Press back to go previous screen'.
endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 10:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-to-list-processing/m-p/7464816#M1554341</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2010-12-16T10:06:54Z</dc:date>
    </item>
  </channel>
</rss>

