<?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: Return to program after calling a screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367506#M808106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, ur code is fine and I dont know y its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an alternate solution ( may be silly, but it works, I guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of  "call screen 100", use "Leave to screen 100" and at the end of logic in the screen 100, write "go to screen xxx" ie., the current screen number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or) Leave to screen 0  will work fine. As the control goes to stack and gets the screen number(ur current screen) and goes to ur last line of code previously executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hema Sundar Munagapati on Jan 22, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2008 13:09:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-22T13:09:02Z</dc:date>
    <item>
      <title>Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367502#M808102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi --this might seem elementary but I can't seem to make it work anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrurn to the statement AFTER the CALL SCREEN 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't seem to work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


CREATE DATA dref TYPE s_elements.
  ASSIGN dref-&amp;gt;* TO &amp;lt;fs&amp;gt;.
  i_routine = 'POPULATE_DYNAMIC_ITAB'.
*  i_names   = 'NAME_COLUMNS'.
  i_gridtitle = 'any'.
  invoker = sy-repid.
  i_zebra = ' '.
  i_edit = ' '.

*free it_fldcat.
*free dy_table.
    call method dog-&amp;gt;build_dynamic_structures
  exporting
    my_line = &amp;lt;fs&amp;gt;
    calling_program = invoker
  importing
    dy_table = dy_table
  changing
    it_fldcat = it_fldcat.
    break-point 1.

perform populate_dynamic_itab
  changing dy_table.

  call screen 100.

* Want return back here after all the Screen processing

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After PBO and PAI  how to I get back to the line I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 12:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367502#M808102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T12:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367503#M808103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use statement 'Leave to screen 0 at end of PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naveena M on Jan 22, 2008 6:37 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naveena M on Jan 22, 2008 6:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 13:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367503#M808103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367504#M808104</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 the next screen parameter to 0 of the current screen.&lt;/P&gt;&lt;P&gt;After processing the PBO and PAI of that screen it will automatically comes to the statement after the CALL SCREEN. (provided u dont have any program terminating statements in PAI of that screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It you want to do that programatically then use LEAVE SCREEN statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 13:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367504#M808104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367505#M808105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;leave to screen 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you always return to the previous screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 13:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367505#M808105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T13:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367506#M808106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, ur code is fine and I dont know y its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an alternate solution ( may be silly, but it works, I guess).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of  "call screen 100", use "Leave to screen 100" and at the end of logic in the screen 100, write "go to screen xxx" ie., the current screen number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(or) Leave to screen 0  will work fine. As the control goes to stack and gets the screen number(ur current screen) and goes to ur last line of code previously executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hema Sundar Munagapati on Jan 22, 2008 2:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 13:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367506#M808106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T13:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Return to program after calling a screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367507#M808107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks --you were the first so you get the points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's been a little while since I've done this stuff -- at the end of displaying an OO ALV grid I wanted to get back into the main logic of the program again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2008 13:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/return-to-program-after-calling-a-screen/m-p/3367507#M808107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-22T13:16:13Z</dc:date>
    </item>
  </channel>
</rss>

