<?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 Modules after Commit Work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007172#M1165635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jan 2011 09:49:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-27T09:49:31Z</dc:date>
    <item>
      <title>Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007168#M1165631</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;Just need to clear a small confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am updating the custom table in my program. In that After the Update query i am checking the sy-subrc condition and if it success i am doing COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just want to know do i need to call explicitely the DEQUEUE function module for releasing locks after the commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the sy-subrc fails i am doing ROLLBACK WORK. After that i am not using the DEQUEUE function module as  the SCOPE parameter of the the function module is by default 2 and being so the locks will be removed automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me in case of commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 11:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007168#M1165631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T11:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007169#M1165632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ENQUEUE and DEQUEUE are not physical locks on database , they are logical locks calling commit and then dequeuing is better way to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 11:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007169#M1165632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T11:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007170#M1165633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Locks will be automatically released once the execution of the program/transaction is completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as a better practice, the records should be unlocked once the updates are completed, so the records will be available as soon as possible for future updates if there are any.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 11:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007170#M1165633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T11:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007171#M1165634</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;Database systems do not usually provide commands for explicitly setting or releasing locks. &lt;/P&gt;&lt;P&gt;Therefore, prior to executing the database operation, database locks are set implicit when one of &lt;/P&gt;&lt;P&gt;the Open-SQL-statements SELECT, INSERT, UPDATE, MODIFY, DELETE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The updated rows are finally included in the table in the next database commit. &lt;/P&gt;&lt;P&gt;Up until this point, they can still be removed by a database rollback. &lt;/P&gt;&lt;P&gt;The statement UPDATE sets a database lock until the next database commit or rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement COMMIT WORK completes the current SAP LUW and opens a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In principle, one type of lock is enough to control conflicting data accesses. However, to achieve a greater degree of parallel running among transactions, database systems use several types of locks.&lt;/P&gt;&lt;P&gt;Using Lock Objects you can programatically define Locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detailed understanding for the differences between(Database and SAP Locks) them and the creation of Lock Objects :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/e5/de86d835cd11d3acb00000e83539c3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/e5/de86d835cd11d3acb00000e83539c3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/c7/2d7037ecc92a7ee10000009b38f8cf/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/c7/2d7037ecc92a7ee10000009b38f8cf/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas630/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas630/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radhika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 10:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007171#M1165634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007172#M1165635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 09:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007172#M1165635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Modules after Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007173#M1165636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The automatic release of SAP locks is depending on the &lt;U&gt;SCOPE parameter of the enqueue function modules. See doku for details: &lt;A href="http://help.sap.com/saphelp" target="test_blank"&gt;http://help.sap.com/saphelp&lt;/A&gt;&lt;/U&gt;nw04/helpdata/DE/23/edae617ba64e85bd4997f25c77eb1f/content.htm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 10:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-modules-after-commit-work/m-p/5007173#M1165636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-27T10:13:59Z</dc:date>
    </item>
  </channel>
</rss>

