<?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 checking for running programs using a abap program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206057#M764352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Dec 2007 09:25:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-22T09:25:16Z</dc:date>
    <item>
      <title>checking for running programs using a abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206057#M764352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2007 09:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206057#M764352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-22T09:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: checking for running programs using a abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206058#M764353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the locking concept.   You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).&lt;/P&gt;&lt;P&gt;If lock got -&amp;gt; run program&lt;/P&gt;&lt;P&gt;If lock not got -&amp;gt; quit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to put this logic at the start of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2007 09:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206058#M764353</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-22T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: checking for running programs using a abap program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206059#M764354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are several methods for this purpose, but you must code it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my favorite is using the FM ENQUEUE_ARRAY because of reliability, it works also fine in most cases of program aborts due to the equeue-process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other methods i.e. using a user table with entry for program run or using memory id's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2007 11:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-running-programs-using-a-abap-program/m-p/3206059#M764354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-22T11:55:42Z</dc:date>
    </item>
  </channel>
</rss>

