<?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: re: what is difference between sap locking and database locking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968154#M69019</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;Try with this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EMMARAS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;MATNR          = 'material number'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FOREIGN_LOCK   = 2&lt;/P&gt;&lt;P&gt;SYSTEM_FAILURE = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'MM02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_EMMARAS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;  MODE_MARA       = 'S'&lt;/P&gt;&lt;P&gt;  MANDT           = SY-MANDT&lt;/P&gt;&lt;P&gt;  MATNR           =  'material number'&lt;/P&gt;&lt;P&gt;  X_MATNR         = ' '&lt;/P&gt;&lt;P&gt;  _SCOPE          = '3'&lt;/P&gt;&lt;P&gt;  _SYNCHRON       = ' '&lt;/P&gt;&lt;P&gt;  _COLLECT        = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE: 'IT IS unlocked'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2005 05:06:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-24T05:06:12Z</dc:date>
    <item>
      <title>re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968152#M69017</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;    what is difference between sap locking and database locking. Iam locked the table mara by using lock objects.&lt;/P&gt;&lt;P&gt;But iam unable to unlock the mara table. I give u the coding. Please check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zlock .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EZTEST3'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   MODE_MARA            = 'S'&lt;/P&gt;&lt;P&gt;   MANDT                = SY-MANDT&lt;/P&gt;&lt;P&gt;   MATNR                = 'SOU-1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'MM02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_EZTEST3'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          mode_mara = 'E'&lt;/P&gt;&lt;P&gt;          mandt     = sy-mandt&lt;/P&gt;&lt;P&gt;          matnr     = 'SOU-1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  WRITE: 'IT IS unlocked'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 04:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968152#M69017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T04:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968153#M69018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the difference between SAP locks and Database locks, i will try to find the solution to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database Locks: The database system automatically sets database locks when it receives change statements (INSERT, UPDATE, MODIFY, DELETE) from a program. Database locks are physical locks on the database entries affected by these statements. You can only set a lock for an existing database entry, since the lock mechanism uses a lock flag in the entry. These flags are automatically deleted in each database commit. This means that database locks can never be set for longer than a single database LUW; in other words, a single dialog step in an R/3 application program.&lt;/P&gt;&lt;P&gt;Physical locks in the database system are therefore insufficient for the requirements of an R/3 transaction. Locks in the R/3 System must remain set for the duration of a whole SAP LUW, that is, over several dialog steps. They must also be capable of being handled by different work processes and even different application servers. Consequently, each lock must apply on all servers in that R/3 System. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Locks:&lt;/P&gt;&lt;P&gt;To complement the SAP LUW concept, in which bundled database changes are made in a single database LUW, the R/3 System also contains a lock mechanism, fully independent of database locks, that allows you to set a lock that spans several dialog steps. These locks are known as SAP locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP lock concept is based on lock objects. Lock objects allow you to set an SAP lock for an entire application object. An application object consists of one or more entries in a database table, or entries from more than one database table that are linked using foreign key relationships.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you can set an SAP lock in an ABAP program, you must first create a lock object in the ABAP Dictionary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 04:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968153#M69018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T04:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968154#M69019</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;Try with this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ENQUEUE_EMMARAS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;MATNR          = 'material number'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FOREIGN_LOCK   = 2&lt;/P&gt;&lt;P&gt;SYSTEM_FAILURE = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'MM02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DEQUEUE_EMMARAS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;  MODE_MARA       = 'S'&lt;/P&gt;&lt;P&gt;  MANDT           = SY-MANDT&lt;/P&gt;&lt;P&gt;  MATNR           =  'material number'&lt;/P&gt;&lt;P&gt;  X_MATNR         = ' '&lt;/P&gt;&lt;P&gt;  _SCOPE          = '3'&lt;/P&gt;&lt;P&gt;  _SYNCHRON       = ' '&lt;/P&gt;&lt;P&gt;  _COLLECT        = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;WRITE: 'IT IS unlocked'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968154#M69019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968155#M69020</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;Continues to my previous posting,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database lock is a physical and SAP lock is a logical one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968155#M69020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968156#M69021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To unlock table MARA (or any table): use txn SM12, supply your table name, client and user name and you will get the list of lock entries. Here, you can manage to delete them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968156#M69021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968157#M69022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   still iam unable to unlock the lock object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968157#M69022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968158#M69023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ashish,&lt;/P&gt;&lt;P&gt;       i want to unlock the object by using function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968158#M69023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968159#M69024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Atleast release the lock using SM12 first so that you can try locking and unlocking again with whatever modified code you have. I will also try to see for the function module options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968159#M69024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968160#M69025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data sptab type rstable.
  sptab-TABNAME = 'MARA'.
  concatenate sy-mandt 'SOU-1' into sptab-VARKEY.
*lock
  CALL FUNCTION 'ENQUEUE_E_TABLE'
       EXPORTING
            TABNAME        = sptab-TABNAME
            VARKEY         = sptab-VARKEY
       EXCEPTIONS
            FOREIGN_LOCK   = 1
            SYSTEM_FAILURE = 2
            OTHERS         = 3.
...
*unlock
CALL FUNCTION 'DEQUEUE_E_TABLE'           
     EXPORTING                            
          TABNAME = RSTABLE-TABNAME       
          VARKEY  = RSTABLE-VARKEY.       

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968160#M69025</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-24T05:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968161#M69026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To unlock objects use fm DEQUEUE_ALL &lt;/P&gt;&lt;P&gt;for material master DEQUEUE_MATERIAL_MASTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968161#M69026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968162#M69027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As already pointed out by someone, use can use DEQUEUE_ALL or DEQUEUE_MATERIAL_MASTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But beware of using dequeue_all, you can very well imagine what may happen........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can search for more function modules using keyword &lt;STRONG&gt;dequeue&lt;/STRONG&gt; in SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968162#M69027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968163#M69028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ashish,&lt;/P&gt;&lt;P&gt; what is the ARGUMENT IN SM12. IT IS NOT ACCEPTING MATERIAL NUMBER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968163#M69028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968164#M69029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't supply lock argument, just supply table name, client and username (id) and press list, you will get the whole list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 05:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968164#M69029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T05:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968165#M69030</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;chek out this link for Database locking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dictionary/lock_enqueue.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dictionary/lock_enqueue.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 06:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968165#M69030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T06:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968166#M69031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paluri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the link below for Lock Objects help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this link, the topic 'Function modules for lock objects' may be of your interest, especially the parameter '_synchron'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DEQUEUE function module also has the parameter _SYNCHRON. If X is passed, the DEQUEUE function waits until the entry has been removed from the lock table. Otherwise it is deleted asynchronously, that is, if the lock table of the system is read directly after the lock is removed, the entry in the lock table may still exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 06:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968166#M69031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T06:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: re: what is difference between sap locking and database locking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968167#M69032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You really shouldn't be doing it this way. Transaction MM02 will lock anything it needs to just before it saves it and release it immediately after. If you lock it using your code, the material will be locked for as long as you are in the transaction. If you are called away, this could be a long time. In the meantime, no one else will be able to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's always best to leat SAP handle locking its own objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2005 13:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-what-is-difference-between-sap-locking-and-database-locking/m-p/968167#M69032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-24T13:37:28Z</dc:date>
    </item>
  </channel>
</rss>

