<?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 Lock/Restrict re-execution of a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050940#M1174009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;how can i lock/restrict a program which is already running from further execution of it by some other user ?&lt;/P&gt;&lt;P&gt;the program might run for several days and access several tables..I know lock-objects can be used to lock tables but can they also be used to lock or restrict an instance of a program itself ? please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2009 11:09:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-09T11:09:08Z</dc:date>
    <item>
      <title>Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050940#M1174009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;how can i lock/restrict a program which is already running from further execution of it by some other user ?&lt;/P&gt;&lt;P&gt;the program might run for several days and access several tables..I know lock-objects can be used to lock tables but can they also be used to lock or restrict an instance of a program itself ? please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050940#M1174009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050941#M1174010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; this could be a suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the START-OF-SELECTIOn, put a logic like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import a value from memory (with IMPORT FROM MEMORY ID instruction).&lt;/P&gt;&lt;P&gt; If this value = 'X' (means that program is running).&lt;/P&gt;&lt;P&gt; exit from the program (LEAVE PROGRAM).&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; export 'X' to memory id (with EXPORT TO MEMORY ID instruction).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050941#M1174010</guid>
      <dc:creator>andrea_galluccio2</dc:creator>
      <dc:date>2009-01-09T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050942#M1174011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the program is under your  login,&lt;/P&gt;&lt;P&gt;Goto--Attributes.&lt;/P&gt;&lt;P&gt;There will a check box Editor Lock..&lt;/P&gt;&lt;P&gt;Check that..&lt;/P&gt;&lt;P&gt;By doing this,other user cannot edit your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are looking for?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050942#M1174011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050943#M1174012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks harini&lt;/P&gt;&lt;P&gt;but what i want to know is how to make a (any) program 'exclusive' meaning that once the program is executed &lt;/P&gt;&lt;P&gt;no other user should be able to instantiate (execute) another instance of it, till the end of it. Its like locking tables to prevent simultaneous access using lock-object. Also i want to know whether a lock-object can itself be used to lock a program in similar manner, so that its instance is exclusive at any given time..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050943#M1174012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050944#M1174013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh..Alright..&lt;/P&gt;&lt;P&gt;I am not sure about that..&lt;/P&gt;&lt;P&gt;Lets wait and see what others will say..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050944#M1174013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050945#M1174014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Andrea&lt;/P&gt;&lt;P&gt;Could you please tell me whether my problem can be handled using abap-dictionary lock objects..thats exactly what i am interested to know right now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 11:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050945#M1174014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-09T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050946#M1174015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Graison&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could give fm &lt;STRONG&gt;ENQUEUE_ES_PROG&lt;/STRONG&gt; a try. Use this fm to create a lock on DB view TRDIR for your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At event INITIALIZATION you can implement the following logic:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if report is already locked =&amp;gt; Yes, then LEAVE PROGRAM.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set lock for report =&amp;gt; Unsuccessful, then LEAVE PROGRAM.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Execute report&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;...&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Unlock the report after execution (should occur automatically)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 12:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050946#M1174015</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-01-09T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lock/Restrict re-execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050947#M1174016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;thanks for helping me..&lt;/P&gt;&lt;P&gt;i finally got the solution which is to create a dummy table and lock it using lock-object, at the very beginning of the program itself.&lt;/P&gt;&lt;P&gt;this makes the program exclusive for me(or any user who does the above)&lt;/P&gt;&lt;P&gt;the lock-object for the dummy table must be finally released before exiting which indirectly unlocks the program itself.&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 10:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-restrict-re-execution-of-a-program/m-p/5050947#M1174016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T10:29:18Z</dc:date>
    </item>
  </channel>
</rss>

