<?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: Execution control between two programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463911#M1554254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yoshitada,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the way I would do it is, I'd create a dcitionary table in se11&lt;/P&gt;&lt;P&gt;with fields for program name, a lock flag and username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, depending on the type of programs A and B are. Check/Update&lt;/P&gt;&lt;P&gt;the lock status of the table in one of the earlier events of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then unlock at some later point in the program.&lt;/P&gt;&lt;P&gt;Its crude and there might be a better way, but its all that comes to mind right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Nov 2010 05:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-19T05:18:20Z</dc:date>
    <item>
      <title>Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463910#M1554253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAP gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 ABAP programs A and B.&lt;/P&gt;&lt;P&gt;I don't want users to execute program A if some other&lt;/P&gt;&lt;P&gt;users use program B.&lt;/P&gt;&lt;P&gt;Then I want to show the error message just like&lt;/P&gt;&lt;P&gt;" Can not execute while other user uses program B" to users who try&lt;/P&gt;&lt;P&gt;to use program A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what kind of statements should I use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y.Kaneko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 03:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463910#M1554253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T03:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463911#M1554254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yoshitada,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the way I would do it is, I'd create a dcitionary table in se11&lt;/P&gt;&lt;P&gt;with fields for program name, a lock flag and username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, depending on the type of programs A and B are. Check/Update&lt;/P&gt;&lt;P&gt;the lock status of the table in one of the earlier events of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then unlock at some later point in the program.&lt;/P&gt;&lt;P&gt;Its crude and there might be a better way, but its all that comes to mind right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 05:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463911#M1554254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T05:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463912#M1554255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaneko&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do that with the help of LOCKING OBJECTS concept. Refer to the following SAP documentation, you will get some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;link removed by moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also refer to the following thread which has the solution. &lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;link removed by moderator&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;Moderator Message: You have already lost your user-id twice for violating the rules of the forum. And you are heading the same direction a third time.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kishan P on Nov 19, 2010 5:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 05:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463912#M1554255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T05:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463913#M1554256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check Function Module &lt;STRONG&gt;TH_WPINFO&lt;/STRONG&gt; for the report B if it is being executed. This function module holds the workprocesses that you see in SM50&lt;/P&gt;&lt;P&gt;You can get the username that is running the report and display the error message in report B saying that XX user is already running program B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 05:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463913#M1554256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T05:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463914#M1554257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 09:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463914#M1554257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T09:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execution control between two programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463915#M1554258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOlved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 09:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execution-control-between-two-programs/m-p/7463915#M1554258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-13T09:17:56Z</dc:date>
    </item>
  </channel>
</rss>

