<?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 Leave Program Group/sequence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-program-group-sequence/m-p/11386626#M1923983</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;I'm developing some usabilities in some already existing Zprograms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the help on LEAVE PROGRAM statement but it does not explains how to get out all the programs sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this specific scenario of calling programs in sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;-&lt;STRONG&gt;Main Transaction 'A'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;-call &lt;STRONG&gt;transaction 'B-GRID'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;-call &lt;STRONG&gt;transaction 'C'&lt;/STRONG&gt; --&amp;gt; call &lt;STRONG&gt;transaction 'B-GRID'&lt;/STRONG&gt; --&amp;gt; call &lt;STRONG&gt;transaction 'C'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;-in C, BACK to &lt;STRONG&gt;Main Transaction 'A'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I'm back to A. Once I click BACK/EXIT from A, it backs to C, but once in A, I want to LEAVE ALL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 11:37:17 GMT</pubDate>
    <dc:creator>glauco</dc:creator>
    <dc:date>2015-11-16T11:37:17Z</dc:date>
    <item>
      <title>Leave Program Group/sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-program-group-sequence/m-p/11386626#M1923983</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;I'm developing some usabilities in some already existing Zprograms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the help on LEAVE PROGRAM statement but it does not explains how to get out all the programs sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this specific scenario of calling programs in sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;-&lt;STRONG&gt;Main Transaction 'A'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;-call &lt;STRONG&gt;transaction 'B-GRID'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;-call &lt;STRONG&gt;transaction 'C'&lt;/STRONG&gt; --&amp;gt; call &lt;STRONG&gt;transaction 'B-GRID'&lt;/STRONG&gt; --&amp;gt; call &lt;STRONG&gt;transaction 'C'&lt;/STRONG&gt; --&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;-in C, BACK to &lt;STRONG&gt;Main Transaction 'A'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I'm back to A. Once I click BACK/EXIT from A, it backs to C, but once in A, I want to LEAVE ALL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-program-group-sequence/m-p/11386626#M1923983</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2015-11-16T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Leave Program Group/sequence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/leave-program-group-sequence/m-p/11386627#M1923984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Solved with leave program statement, to return :&lt;/P&gt;&lt;P&gt;from C back to B, &lt;/P&gt;&lt;P&gt;and B back to A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;- Executed process:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1-Main Transaction 'A' --&amp;gt; call transaction 'B-GRID' --&amp;gt; call transaction 'C' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;- Leave process&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2-transaction 'C' --&amp;gt; leave program.&lt;/P&gt;&lt;P&gt;3-transaction 'B-GRID' --&amp;gt; leave program&lt;/P&gt;&lt;P&gt;4-Main Transaction 'A' --&amp;gt; leave program (leaves all the process)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Conclusion I have forgoten: call transaction statement adds another program to the group/stack, in the other hand, leave program statement backs in process naturally in the sap kernel.&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 15:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/leave-program-group-sequence/m-p/11386627#M1923984</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2015-11-16T15:38:21Z</dc:date>
    </item>
  </channel>
</rss>

