<?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 object with database persistence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463281#M832261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to lock an employee, but I don't want to lose the lock when the session is finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone know how to do this? Is there any kind of database persistence regarding lock objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual scenario is a process that's locking the employee with the FM BAPI_EMPLOYEE_ENQUEUE, and another process unlocking the employees with the FM BAPI_EMPLOYEE_ENQUEUE, however I need to guarantee the lock regardless whether the user will remain logged between one process and the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 14:47:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T14:47:23Z</dc:date>
    <item>
      <title>Lock object with database persistence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463281#M832261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to lock an employee, but I don't want to lose the lock when the session is finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone know how to do this? Is there any kind of database persistence regarding lock objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual scenario is a process that's locking the employee with the FM BAPI_EMPLOYEE_ENQUEUE, and another process unlocking the employees with the FM BAPI_EMPLOYEE_ENQUEUE, however I need to guarantee the lock regardless whether the user will remain logged between one process and the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 14:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463281#M832261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T14:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lock object with database persistence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463282#M832262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use the function module BAPI_EMPLOYEE_ENQUEUE then the Employee may enter in to SAP until you release the lock. you can use BAPI_USER_LOCK and BAPI_USER_UNLOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 14:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463282#M832262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T14:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lock object with database persistence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463283#M832263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those FMs, either BAPI_USER_LOCK or UNLOCK don't solve my problem, because I don't want to lock users to log into SAP system.&lt;/P&gt;&lt;P&gt;I want to lock master data maintenance in HR (transaction PA30), this is the reason why I was using the FM BAPI_EMPLOYEE_ENQUEUE.&lt;/P&gt;&lt;P&gt;So, my problem is that I don't want to lose the lock even if I log off the system (the standard procedure is clean the lock table - SM12 - when all the transactions are closed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 16:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-with-database-persistence/m-p/3463283#M832263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

