<?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 Object Lock duration beyond program termination. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892744#M1326666</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;As I understand the ENQUE_&amp;lt;object&amp;gt; will lock the object only for till the transaction/program terminates. Is there a way to get a lock beyond this? &lt;/P&gt;&lt;P&gt;My requirement is in Workflow, where I need to lock an object till an approval happens. This approval process might take days to happen, and the object should be locked till then. I experimented with the _SCOPE parameter and it did not help. Any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2009 09:58:00 GMT</pubDate>
    <dc:creator>kammaje_cis</dc:creator>
    <dc:date>2009-07-22T09:58:00Z</dc:date>
    <item>
      <title>Object Lock duration beyond program termination.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892744#M1326666</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;As I understand the ENQUE_&amp;lt;object&amp;gt; will lock the object only for till the transaction/program terminates. Is there a way to get a lock beyond this? &lt;/P&gt;&lt;P&gt;My requirement is in Workflow, where I need to lock an object till an approval happens. This approval process might take days to happen, and the object should be locked till then. I experimented with the _SCOPE parameter and it did not help. Any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 09:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892744#M1326666</guid>
      <dc:creator>kammaje_cis</dc:creator>
      <dc:date>2009-07-22T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Object Lock duration beyond program termination.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892745#M1326667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well it sound better to me to use some sort of status. If objects has a certain status, then object can not be edited. Only after approval, you will change the status and editing is allowed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 10:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892745#M1326667</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-07-22T10:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Object Lock duration beyond program termination.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892746#M1326668</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 this possible solution.&lt;/P&gt;&lt;P&gt;   1) create a table which stores the detail workflow approval = YES or NO.&lt;/P&gt;&lt;P&gt;   2) create a background job report which locks the object.&lt;/P&gt;&lt;P&gt;       In this report ,put the following logic.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    do . &lt;/P&gt;&lt;P&gt;      select single approval&lt;/P&gt;&lt;P&gt;         from new ztable created&lt;/P&gt;&lt;P&gt;         into l_status&lt;/P&gt;&lt;P&gt;       where.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       if l_status = YES  (means approval done).&lt;/P&gt;&lt;P&gt;         EXIT.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;     enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    3)  This means the program will not stop untill the approval is done!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHEERS!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2009 10:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-lock-duration-beyond-program-termination/m-p/5892746#M1326668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-22T10:26:37Z</dc:date>
    </item>
  </channel>
</rss>

