<?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: Continue to lock after COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150134#M1193471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) First u create a Lock object in SE11, for the required field/fields that u want to lock.&lt;/P&gt;&lt;P&gt;2) It generates to FMs -- one is for locking and the other is for unlocking.&lt;/P&gt;&lt;P&gt;3)use these FMs in ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link for the procedure how to create lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 08:32:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T08:32:14Z</dc:date>
    <item>
      <title>Continue to lock after COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150133#M1193470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help on locking module. I have a program that does many update and commit (some using BAPI_TRANSACTION_COMMIT). How I continue to lock the record after the commit? From what I understand commit will release all locks. I wish to continue locking even after commit. What are the possible ways to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The locking logic:&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ENQUEUE_ECKSSKXE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        MODE_KSSKX           = 'E'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MANDT                = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        KLART                = '300'&lt;/P&gt;&lt;P&gt;        CLASS                = GT_ZMM_DEPOT-CLASS&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MAFID                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OBJEK                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_KLART              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_CLASS              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_MAFID              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_OBJEK              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        _SCOPE               = '1'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      _WAIT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      _COLLECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        FOREIGN_LOCK         = 1&lt;/P&gt;&lt;P&gt;        SYSTEM_FAILURE       = 2&lt;/P&gt;&lt;P&gt;        OTHERS               = 3&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 07:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150133#M1193470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T07:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Continue to lock after COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150134#M1193471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) First u create a Lock object in SE11, for the required field/fields that u want to lock.&lt;/P&gt;&lt;P&gt;2) It generates to FMs -- one is for locking and the other is for unlocking.&lt;/P&gt;&lt;P&gt;3)use these FMs in ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link for the procedure how to create lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 08:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150134#M1193471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T08:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Continue to lock after COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150135#M1193472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply. But I am looking at more of how to continue locking the record after commit work instead of creating a lock. I am planning to use a stardard existing lock object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 08:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150135#M1193472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T08:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Continue to lock after COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150136#M1193473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Janet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know your question was posted some time ago,but I have the same requirement at the moment. Did you find a solution back then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 10:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continue-to-lock-after-commit/m-p/5150136#M1193473</guid>
      <dc:creator>philippdoelker</dc:creator>
      <dc:date>2016-04-27T10:23:10Z</dc:date>
    </item>
  </channel>
</rss>

