<?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: Issue with submit and return statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-submit-and-return-statement/m-p/2912528#M685388</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;In the BACK button, add following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;if above doesnt work, then hardcode as follows:&lt;/P&gt;&lt;P&gt;sy-lsind = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 09:00:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-16T09:00:22Z</dc:date>
    <item>
      <title>Issue with submit and return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-submit-and-return-statement/m-p/2912527#M685387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 programs (Zpgm1 and Zpgm2) and i am calling this program from another a customer screen based on a push button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if pgm1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; submit ZPGM1 via selection-screen&lt;/P&gt;&lt;P&gt;                with p_e  = 'X' and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF PGM2 = 'X'.&lt;/P&gt;&lt;P&gt; submit ZPGM2 via selection-screen&lt;/P&gt;&lt;P&gt;                with p_t  = 'ABC' and return.&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;In ZPGM1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_ET radiobutton group gp1,&lt;/P&gt;&lt;P&gt;             p_TT radiobutton group gp1,&lt;/P&gt;&lt;P&gt;             p_E type c no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  if p_E = 'X'.&lt;/P&gt;&lt;P&gt;   loop at screen.&lt;/P&gt;&lt;P&gt;    if  screen-name = 'P_ET' .&lt;/P&gt;&lt;P&gt;        screen-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;    if  screen-name = 'P_TT' .&lt;/P&gt;&lt;P&gt;        screen-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&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;&lt;/P&gt;&lt;P&gt;In ZPGM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_WERKS LIKE MARC-WERKS,&lt;/P&gt;&lt;P&gt;             p_T type c no-display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  if p_T = 'X'.&lt;/P&gt;&lt;P&gt;   loop at screen.&lt;/P&gt;&lt;P&gt;    if  screen-name = 'P_WERKS' .&lt;/P&gt;&lt;P&gt;        screen-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;    if  screen-name = 'P_WERKS' .&lt;/P&gt;&lt;P&gt;        screen-INPUT = '1'.&lt;/P&gt;&lt;P&gt;        modify screen.&lt;/P&gt;&lt;P&gt;      endif.&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;In zpgm1 when i hit the back button on the selection screen, it triggers the at selection-screen output. and if i press the back button thats when it takes me to orginal pgm from where iam calling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in zpgm2 when i press the back button the at selection-screen output. doesnot triggers and takes me to orginal program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only diff bet 2 pgms is one is tradition ALV programs and other is OO alv PROGRAMS&lt;/P&gt;&lt;P&gt;IS THAT A REASON FOR ITS BEHAVIOUR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET ME KNOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 18:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-submit-and-return-statement/m-p/2912527#M685387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T18:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with submit and return statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-submit-and-return-statement/m-p/2912528#M685388</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;In the BACK button, add following logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;if above doesnt work, then hardcode as follows:&lt;/P&gt;&lt;P&gt;sy-lsind = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 09:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-submit-and-return-statement/m-p/2912528#M685388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T09:00:22Z</dc:date>
    </item>
  </channel>
</rss>

