<?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: Lock program for user in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913150#M1483158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean? If the system crashes and it was running the program, it should be like other standard programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I dont understand your question, Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 May 2010 16:00:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-13T16:00:18Z</dc:date>
    <item>
      <title>Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913145#M1483153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus!&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to lock a program just for one user, but no for other users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve been looking but found nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jocelyne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 15:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913145#M1483153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913146#M1483154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jocelyne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It feels like you need to apply the authorisation concept.  In the initialisation of the program make an authorisation check against a unique authorisation object (one that is not used elsewhere), if the check fails the program exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you want everyone to run this apart from one user it may be easier to reverse the usual logic.  Perform the authorisation check, if the check fails, carry on, if it is successful then exit.  THen you only need to give the role which has the object checked to one user (the one who shouldn't access the program) rather than to everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 15:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913146#M1483154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913147#M1483155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nick, but I think I was not cleared. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All users can access the program, but what I want, is that if I am using the program, I shouldn´t run other window with the same program. Like I could only run it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if other user wants to run it, there should not be a problem. But he could only run it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 15:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913147#M1483155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913148#M1483156</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;Ah, I understand now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I would use a custom table and a lock object.  When the user first runs the program, add their user name to the custom table and lock this row of the table using a lock object.  If the lock fails, it's because the user is already running the program.  The reason for using the lock object is however the user closes the transaction the lock is released, if you just rely on the user name in the table it will not get cleared in all cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are probably other viable approaches, and no doubt shortcomings with this suggestion, but it feels like you'll need to develop something.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 15:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913148#M1483156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913149#M1483157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if the program abends or the system crashes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 15:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913149#M1483157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913150#M1483158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean? If the system crashes and it was running the program, it should be like other standard programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I dont understand your question, Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 16:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913150#M1483158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913151#M1483159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just meant that if the program is dependent on an entry being added at the start and removed at the end, problems would happend if the program abended and the entry not be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure if that was what Nick meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 16:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913151#M1483159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913152#M1483160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the program abends or the system crashes the lock will roll back.  Next  time the user runs the program the entry with their name is still in the table, but that is not an issue.  &lt;/P&gt;&lt;P&gt;The program will try to add the entry, it's already there (no error handling needed), then it it will lock that entry, the lock is successful.  &lt;/P&gt;&lt;P&gt;If they try to call the program for a second time, the program will try to add the entry, it's already there, then it will try to lock that entry and fail (already locked).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm probably missing something, but my feeling is it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 16:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913152#M1483160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913153#M1483161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - that should work. I didn't read your original post closely enough &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 16:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913153#M1483161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T16:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lock program for user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913154#M1483162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys, I am gonna try your ideas and let you know! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 21:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-program-for-user/m-p/6913154#M1483162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T21:19:33Z</dc:date>
    </item>
  </channel>
</rss>

