<?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: BOPF node Locking and Unlocking???? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712504#M1947618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anjarikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the combination of the business object's "Lock Behavior" and the "Transaction Mode" settings determines how BOPF treats locks after SAVE. (I assume that your workflow is triggered &lt;STRONG&gt;after&lt;/STRONG&gt; SAVE, right?) In most cases, exclusive locks are not kept by BOPF (except for Lock Behaviors "Dialog Lock" and "Dialog and Update Lock"). They are either released or down-graded to optimistic locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note also that the BO's settings can be overwritten when the transaction manager is instantiated.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also depends on the Transaction Mode whether BOPF (tries to) SET UPDATE TASK LOCAL. Only when the update task has been set to LOCAL, the locks will be released immediately after SAVE. Otherwise the update task may be executed asynchronously, keeping the locks alive a little longer. You might want to SET UPDATE TASK LOCAL right at the beginning of your transaction (at least before any update task gets registered), in order to be on the safe side here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jun 2016 13:18:12 GMT</pubDate>
    <dc:creator>ivo_vollrath</dc:creator>
    <dc:date>2016-06-08T13:18:12Z</dc:date>
    <item>
      <title>BOPF node Locking and Unlocking????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712502#M1947616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; in my Incident Management project i have one business scenario where on enabling send to shift supervisor and pressing save button , one workflow will trigger that will send that incident to supervisor where in that one of the workflow step has to change the status of that incident to "in-process"&lt;BR /&gt;but in that workflow step its not getting update because that incident is locked in UI&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is there any way to unlock that incident by coding so i can unlock that incident in that step and update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712502#M1947616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-31T12:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: BOPF node Locking and Unlocking????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712503#M1947617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anjarikam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one option, you could apply, that you turn the UI to read-only mode after saving and do unlock. After that you can explicitly start your workflow.&lt;/P&gt;&lt;P&gt;Worflows can be started internally such way also &lt;A __default_attr="3698410" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Workflow Initiation" href="https://community.sap.com/" modifiedtitle="true" title="Workflow Initiation"&gt;&lt;/A&gt;, but this require touching the BO.&lt;/P&gt;&lt;P&gt;Actually, no one can ensure you that the workflow engine starts processing immediately, so this problem can happen not only in the case above, but the probability is much less. So if you turn to display mode after save, you'll most probably succseed. Anmyway, there is no reason to keep the incident document ready for input, after it has been assigned to someone else.&lt;/P&gt;&lt;P&gt;Regrards&lt;/P&gt;&lt;P&gt;Attila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 09:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712503#M1947617</guid>
      <dc:creator>Attila</dc:creator>
      <dc:date>2016-06-08T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: BOPF node Locking and Unlocking????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712504#M1947618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anjarikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the combination of the business object's "Lock Behavior" and the "Transaction Mode" settings determines how BOPF treats locks after SAVE. (I assume that your workflow is triggered &lt;STRONG&gt;after&lt;/STRONG&gt; SAVE, right?) In most cases, exclusive locks are not kept by BOPF (except for Lock Behaviors "Dialog Lock" and "Dialog and Update Lock"). They are either released or down-graded to optimistic locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note also that the BO's settings can be overwritten when the transaction manager is instantiated.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also depends on the Transaction Mode whether BOPF (tries to) SET UPDATE TASK LOCAL. Only when the update task has been set to LOCAL, the locks will be released immediately after SAVE. Otherwise the update task may be executed asynchronously, keeping the locks alive a little longer. You might want to SET UPDATE TASK LOCAL right at the beginning of your transaction (at least before any update task gets registered), in order to be on the safe side here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:18:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-node-locking-and-unlocking/m-p/11712504#M1947618</guid>
      <dc:creator>ivo_vollrath</dc:creator>
      <dc:date>2016-06-08T13:18:12Z</dc:date>
    </item>
  </channel>
</rss>

