<?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: Problem with locks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381483#M186199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that u've tried SET UPDATE TASK LOCAL. local update deactivates immediately after commit work.&lt;/P&gt;&lt;P&gt; if ur bapi call is in a loop, set update task local should be called before the bapi call every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2006 19:11:59 GMT</pubDate>
    <dc:creator>sridhar_k1</dc:creator>
    <dc:date>2006-07-17T19:11:59Z</dc:date>
    <item>
      <title>Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381478#M186194</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 have problem with locks. I am using in loop BAPI:&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            post_wrong_entries = lv_post&lt;/P&gt;&lt;P&gt;            testrun            = lv_testrun&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            return             = ls_bapiret1&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            timetickets        = lt_bapi_pp_timeticket&lt;/P&gt;&lt;P&gt;            goodsmovements     = lt_bapi2017_gm_item_create&lt;/P&gt;&lt;P&gt;            link_conf_goodsmov = lt_bapi_link_conf_goodsmov&lt;/P&gt;&lt;P&gt;            detail_return      = lt_bapi_coru_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as a result of material movements with are triggered with that BAPI i often have mistake: Plant data for Material xxxx are blocked yb user yyyy (confirmation is ok but errors are shown for material movements in COGI transaction). It happens for posted material and for its ingrediens too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TO avoid i have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- enqueue and dequeue for :&lt;/P&gt;&lt;P&gt;FUNCTION 'DEQUEUE_EMMARCE'.&lt;/P&gt;&lt;P&gt;FUNCTION 'DEQUEUE_EMRKPF'.&lt;/P&gt;&lt;P&gt;FUNCTION 'DEQUEUE_ESORDER'.&lt;/P&gt;&lt;P&gt;- commit work and wait.&lt;/P&gt;&lt;P&gt;-'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;-'Dequeue_all' after bapi commit.&lt;/P&gt;&lt;P&gt;- set update task local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What more can i do ?? I am comletly exhausted of fimdimg a way to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(wait for x second of course work fine but it isnt a solution i want to use, i'd prefer lock managing based solution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; Jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381478#M186194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T16:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381479#M186195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a wait before the function module i think it wil lsolve the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381479#M186195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381480#M186196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use FM RZL_SLEEP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381480#M186196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-17T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381481#M186197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run program in debug mode, after BAPI call, go to SM12 to see locked objects, then add those 'DEQUEUE'.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 16:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381481#M186197</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-07-17T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381482#M186198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP provided decoupling of goods movements from confirmations to avoid scenarios like this. Refer to the following SAP library documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2004/helpdata/en/b1/c04d42439a11d189410000e829fbbd/frameset.htm"&amp;gt;Decoupling Processes Carried out During Confirmation&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the functionality is implemented, the BAPI posts the confirmations and stores the goods movemts to be processed by a background job later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 18:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381482#M186198</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-07-17T18:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with locks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381483#M186199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that u've tried SET UPDATE TASK LOCAL. local update deactivates immediately after commit work.&lt;/P&gt;&lt;P&gt; if ur bapi call is in a loop, set update task local should be called before the bapi call every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2006 19:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-locks/m-p/1381483#M186199</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-07-17T19:11:59Z</dc:date>
    </item>
  </channel>
</rss>

