<?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: Stop an Include Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566916#M1432215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramakant, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE programs are used to structure our code and are not called directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We usually use to to keep data declaration and subroutines seperately from main report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case , there is no need to avoid any include. try to check the flow and the subroutine where this condition is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 12:01:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T12:01:28Z</dc:date>
    <item>
      <title>Stop an Include Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566913#M1432212</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 main program in which i have two include programs. On a give condition i need to terminate first include and come back to the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to do this???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566913#M1432212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Stop an Include Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566914#M1432213</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;An INCLUDE is not a logical unit of a program, it's just a way of structuring the code for navigation and reuse.  You can't exit from an INCLUDE, to get out of an INCLUDE and back to the main program depends on what code is in the INCLUDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the INCLUDE contains just one subroutine, say, then you can exit with, RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566914#M1432213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stop an Include Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566915#M1432214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A trick could be embedding the includes by a loop statement, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO 1 TIMES.
  INCLUDE zinc1.
ENDDO.

DO 1 TIMES.
  INCLUDE zinc2.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can exit the include by the EXIT or CHECK statement. Somewhat 'dirty' but nevertheless also use by SAP sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566915#M1432214</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2010-02-04T11:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stop an Include Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566916#M1432215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramakant, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE programs are used to structure our code and are not called directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We usually use to to keep data declaration and subroutines seperately from main report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case , there is no need to avoid any include. try to check the flow and the subroutine where this condition is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 12:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stop-an-include-program/m-p/6566916#M1432215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T12:01:28Z</dc:date>
    </item>
  </channel>
</rss>

