<?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: how to avoid locking transactions? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517882#M1261344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
go to sm01 transaction and unlock the transaction.

or 
*         Getting the Lock Status of User
          CALL FUNCTION 'SUSR_USER_LOCKSTATE_GET'
            EXPORTING
              USER_NAME = W_USR02_BNAME
            IMPORTING
              LOCKSTATE = W_LOCKSTATE.
          IF SY-SUBRC &amp;lt;&amp;gt; 0.
          ENDIF.

*         Unlock the user
          IF W_LOCKSTATE-LOCAL_LOCK = 'L'.
            CALL FUNCTION 'BAPI_USER_UNLOCK'
              EXPORTING
                USERNAME = W_USERNAME   "Pass user name to unlock
              TABLES
                RETURN   = T_RETURN.
       ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 15:38:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-28T15:38:04Z</dc:date>
    <item>
      <title>how to avoid locking transactions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517881#M1261343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i avoid locking transactions? upon logging out, transaction is automatically locked under my name... hence preventing others to access the transaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I avoid locking transaction in my username? thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 15:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517881#M1261343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T15:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid locking transactions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517882#M1261344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
go to sm01 transaction and unlock the transaction.

or 
*         Getting the Lock Status of User
          CALL FUNCTION 'SUSR_USER_LOCKSTATE_GET'
            EXPORTING
              USER_NAME = W_USR02_BNAME
            IMPORTING
              LOCKSTATE = W_LOCKSTATE.
          IF SY-SUBRC &amp;lt;&amp;gt; 0.
          ENDIF.

*         Unlock the user
          IF W_LOCKSTATE-LOCAL_LOCK = 'L'.
            CALL FUNCTION 'BAPI_USER_UNLOCK'
              EXPORTING
                USERNAME = W_USERNAME   "Pass user name to unlock
              TABLES
                RETURN   = T_RETURN.
       ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 15:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517882#M1261344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T15:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid locking transactions?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517883#M1261345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total Posts:  412  &lt;/P&gt;&lt;P&gt;Total Questions:  244 (92 unresolved)  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clean up your old posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 15:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-avoid-locking-transactions/m-p/5517883#M1261345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T15:49:21Z</dc:date>
    </item>
  </channel>
</rss>

