<?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: Restrict program access in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289425#M1389594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if its about background processing its very easy to find out. (from tables like tbtco,tbtcp, v_op).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if its foreground execution that also depends upon its an active session or not.. if active session then i have already explained in your other thread: &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8326041"&gt;&lt;/SPAN&gt;  ==&amp;gt;you have not closed that thread yet &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; or the thread&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8324195"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its about running at random cases .. then you need to store some flag in some z table or pass some value to some unused parameter values...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 16:17:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-26T16:17:22Z</dc:date>
    <item>
      <title>Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289419#M1389588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is any way to assign the memory id for any custom program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req. is if user A executes ZABC program &amp;amp; at the same time if user B trying to execute the same program then user B will get an error message that "Currently user A is executing the program."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody will suggest me how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 14:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289419#M1389588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T14:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289420#M1389589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read up on locking mechanism for database records and then be creative to apply something like that on porgrams.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or.... search SDN. I'm pretty sure this question was asked many times before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 14:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289420#M1389589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289421#M1389590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a simple table with fields REPORT and UNAME&lt;/P&gt;&lt;P&gt;when the report starts read this table first.&lt;/P&gt;&lt;P&gt;if there is an entry for your report stop running the report.&lt;/P&gt;&lt;P&gt;if there is no entry write report and user name to that table.&lt;/P&gt;&lt;P&gt;at the end of your report delet the table entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 14:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289421#M1389590</guid>
      <dc:creator>former_member226519</dc:creator>
      <dc:date>2009-10-26T14:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289422#M1389591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; create a simple table with fields REPORT and UNAME&lt;/P&gt;&lt;P&gt;&amp;gt; when the report starts read this table first.&lt;/P&gt;&lt;P&gt;&amp;gt; if there is an entry for your report stop running the report.&lt;/P&gt;&lt;P&gt;&amp;gt; if there is no entry write report and user name to that table.&lt;/P&gt;&lt;P&gt;&amp;gt; at the end of your report delet the table entry.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What does the user do if the program terminates abnormally (dumps) without deleting the entry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 14:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289422#M1389591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289423#M1389592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used lock object ES_PROG for the same purpose in the past.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 14:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289423#M1389592</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-10-26T14:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289424#M1389593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if a report dumps you usually have more trouble than simply delete a table entry manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 16:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289424#M1389593</guid>
      <dc:creator>former_member226519</dc:creator>
      <dc:date>2009-10-26T16:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289425#M1389594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if its about background processing its very easy to find out. (from tables like tbtco,tbtcp, v_op).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if its foreground execution that also depends upon its an active session or not.. if active session then i have already explained in your other thread: &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8326041"&gt;&lt;/SPAN&gt;  ==&amp;gt;you have not closed that thread yet &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; or the thread&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8324195"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its about running at random cases .. then you need to store some flag in some z table or pass some value to some unused parameter values...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 16:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289425#M1389594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289426#M1389595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; if a report dumps you usually have more trouble than simply delete a table entry manually.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not necessarily - anyway, an entry in a custom table is the wrong way to approach this. SAP has a locking concept and I don't know of a better way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 17:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289426#M1389595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289427#M1389596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually that earlier thread still not solving my purpose. My req. is if A user executes the program then at the same time user B won't be able to execute the program.&lt;/P&gt;&lt;P&gt;User B will get message that "Currently program ZABC is used by user XYZ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289427#M1389596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289428#M1389597</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;1. Try with SAP Standard function modules to lock and unlock the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want to maintain custom table, set a flag and update if the execution is successful. Otherwise rollback the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 07:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289428#M1389597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict program access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289429#M1389598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;neha,&lt;/P&gt;&lt;P&gt;that is what exactly i gave in the thread &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="message" id="8326041"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the last write statement will happen if the tcode is running by some other user.. in place of that write statement you can put a error message or info message and exit the program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 16:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-program-access/m-p/6289429#M1389598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T16:21:08Z</dc:date>
    </item>
  </channel>
</rss>

