<?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 Ending a transaction programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968584#M69130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to determine if a particular transaction is running and then terminate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functionality I'm looking for is similar to transaction SM04 where you can terminate a transaction by user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2005 15:14:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-14T15:14:43Z</dc:date>
    <item>
      <title>Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968584#M69130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to determine if a particular transaction is running and then terminate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The functionality I'm looking for is similar to transaction SM04 where you can terminate a transaction by user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968584#M69130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968585#M69131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for function starting with TH* (like TH_DELETE_MODE) but I am not sure if I would trust that every transaction exits gracefully - especially concerning update processes. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968585#M69131</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-09-14T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968586#M69132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if you can end the transaction remotely, but maybe you could end the session all together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968586#M69132</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-14T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968587#M69133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed. We'll certainly check for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact problem that we have is that we don't want a particular transaction to be active/available when a certain batch job is running. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making the transaction unavailable for start-up seems pretty straight forward. It's finding the active occurances and terminating them that seems to be more difficult. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now, I don't know if terminating the transaction will be graceful or not. But, I'd like to try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968587#M69133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968588#M69134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this thread. I have posted a program there. But please be carefule about the pitfalls in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="23574"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, how about locking the transaction before the batch job and unlocking it after, instead of trying to terminate it? Also, you need to consider other ways that would hinder your job. If the transaction is VA01, even if you stop it from executing, how will you monitor all those other ways that will create a sales order like via EDI or via RFCs or through custom programs etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968588#M69134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968589#M69135</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;You cannot catch a tcode but with Function TH_WPINFO you can catch if a program related to tcode is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can cancel the program . See the code in subroutine &lt;/P&gt;&lt;P&gt;PROG_EXIT  in program RSMON000_ALV . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can use tcode SM50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 15:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968589#M69135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T15:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968590#M69136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I've discovered how to prevent new startups of the transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is end any active sessions before the batch job starts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968590#M69136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968591#M69137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of ending, may be you should just wait until the transaction is completed and then start the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say you have a program that monitors if the transaction is running. If it is running, then it just goes into a loop until the transaction has ended. Since you are stopping any new ones becoming active, you only will wait until the active ones are done. Once done, the execution of this program ends. Your batch job, should have this program as a predecessor step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968591#M69137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T16:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968592#M69138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the SM04 transaction seems to use the 'TH_DELETE_USER' function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe you could try to directly call the routine &amp;lt;b&amp;gt;DELETE_USER&amp;lt;/b&amp;gt; in the RSM04000_ALV ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 16:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968592#M69138</guid>
      <dc:creator>guillaume-hrc</dc:creator>
      <dc:date>2005-09-14T16:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968593#M69139</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;Active programs can be cancelled from SM50 Program/Mode -&amp;gt; Program -&amp;gt; Cancel. you can leverage the code here . &lt;/P&gt;&lt;P&gt;If answers were helpful reward and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 05:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968593#M69139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T05:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968594#M69140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use EXIT_SAPLSABE_010 to avoid that a user can start a report (of type 1). In this exit you could check if your batch program is running. &lt;/P&gt;&lt;P&gt;I am sure there is something similar for modul pools as well. &lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 12:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968594#M69140</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-09-15T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ending a transaction programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968595#M69141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If these answers helped you, please reward and close the post.&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;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 22:39:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ending-a-transaction-programmatically/m-p/968595#M69141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T22:39:10Z</dc:date>
    </item>
  </channel>
</rss>

