<?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: Call same tcode without falling into endless loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602300#M1940415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to provide some sample code because I am new to this. Thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2016 11:24:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-02-22T11:24:13Z</dc:date>
    <item>
      <title>Call same tcode without falling into endless loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602298#M1940413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Changing Report A it is nesecceary to use &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SUBMIT Report B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;s_batch &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;rt_charg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING &lt;/SPAN&gt;LIST &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in our case Report B is a Replica of Report A and &lt;SPAN lang="en"&gt;we would not want to keep two identical programs to prevent the accumulation amount of information that we do not need making it difficult to categorize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Is it possible to Submit the Same Report A but avoiding the endless loop. eg the first time it will submit Report A. When inside Report A there should be a condition that will prevent Sumbmision again Report A and continue the rest of the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Searching the web I have come across with inner &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;session. I was thinking something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If inner session = 1 then:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN class="L0S52"&gt;SUBMIT Report A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;s_batch &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;rt_charg&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING &lt;/SPAN&gt;LIST &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MEMORY&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;RETURN&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN class="L0S55"&gt;else.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN class="L0S55"&gt;exit.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 10:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602298#M1940413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-22T10:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Call same tcode without falling into endless loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602299#M1940414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set a memory ID in the first report,&amp;nbsp; read it in the second and if it's set then don't call it,&amp;nbsp; or even better use the same enqueue function that SE38 uses to lock a program for change.&amp;nbsp; Then in the second report try to lock the same record and if it fails don't do the submit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the memory ID you need to remember to clear it when you have finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 10:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602299#M1940414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-22T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Call same tcode without falling into endless loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602300#M1940415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to provide some sample code because I am new to this. Thanks in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 11:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602300#M1940415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-22T11:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call same tcode without falling into endless loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602301#M1940416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look either at following statements documentation&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SET / GET PARAMETER ID&lt;/LI&gt;&lt;LI&gt;EXPORT TO / IMPORT FROM MEMORY&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(And don't forget to clear memory after execution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2016 12:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-same-tcode-without-falling-into-endless-loops/m-p/11602301#M1940416</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-02-22T12:20:28Z</dc:date>
    </item>
  </channel>
</rss>

