<?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: Article lock issue in bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224890#M1717853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reference Purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code "DEMO_TRANSACTION_ENQUEUE"&lt;/P&gt;&lt;P&gt;using Call Transaction . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 05:31:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-11T05:31:11Z</dc:date>
    <item>
      <title>Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224886#M1717849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written one bdc which will internally call another bdc for transaction : mb1a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i post 2 document having same article, then 1st document is successfully posted , but when 2nd document is posting , "Article is lock" this error is coming.&lt;/P&gt;&lt;P&gt;Bdc mode is 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have use Wait statement , but it is not feasible bcoz it takes too much time , when i have lots of document for posting.&lt;/P&gt;&lt;P&gt;So , Is there any other solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 04:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224886#M1717849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T04:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224887#M1717850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;there is a bapi available for mb1a. its BAPI_GOODSMVT_CREATE.&lt;/P&gt;&lt;P&gt;Please try to post document by this. use bapi_transaction_commit&lt;/P&gt;&lt;P&gt;and wait .&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 05:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224887#M1717850</guid>
      <dc:creator>vinoth_aruldass</dc:creator>
      <dc:date>2013-01-11T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224888#M1717851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Vinoth..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , You are right, but i am calling ztcode via bdc. &lt;/P&gt;&lt;P&gt;And In this ztcode , lots of another activity is perform and one of the activity is posting.&lt;/P&gt;&lt;P&gt;In that ztcode , one bdc is written for posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So , I am passing Document to this ztcode and this ztcode is posting document.&lt;/P&gt;&lt;P&gt;When I passed 2nd document , it gives me error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use Wait statement then it working fine. But i don't want to use wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx &lt;/P&gt;&lt;P&gt;Satyen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 05:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224888#M1717851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T05:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224889#M1717852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this lock object ur BDC Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ENQUEUE_EMMBWL"&amp;nbsp;&amp;nbsp; / "DEQUEUE_EMMBWL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blocked key MB_CREATE_GOODS_MOVEMENT / MB_POST_GOODS_MOVE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I think you know how to use ENQUEUE/DEQUEUE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 05:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224889#M1717852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T05:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224890#M1717853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reference Purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code "DEMO_TRANSACTION_ENQUEUE"&lt;/P&gt;&lt;P&gt;using Call Transaction . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 05:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224890#M1717853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-11T05:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224891#M1717854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;to post the document system is taking some time that is why article is block error is coming when you are processing your second time meanwhile. So as per my concern wait is the only concern.&lt;/P&gt;&lt;P&gt;if you confirm about ENQUEUE/DEQUEUE process try that too.&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 05:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224891#M1717854</guid>
      <dc:creator>vinoth_aruldass</dc:creator>
      <dc:date>2013-01-11T05:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Article lock issue in bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224892#M1717855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you get the lock error you should be able to identify the lock required. So instead of a single WAIT statement, use a call of the related ENQUEUE FM with _WAIT option set, and once every required material for the next execution are locked, DEQUEUE those and call your next BDC. The ENQUEUE will wait til the update tasks triggered by the BDC have released their locks.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;loop&lt;UL&gt;&lt;LI&gt;read input data&lt;/LI&gt;&lt;LI&gt;build the bdc and&amp;nbsp; list of material number&lt;/LI&gt;&lt;LI&gt;loop at material list&lt;UL&gt;&lt;LI&gt;lock the material number with wait (but not in an infinite loop)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;endloop&lt;/LI&gt;&lt;LI&gt;You could create an error log if not able to lock (e.g.. a user is sleeping before a MM02 screen) &lt;/LI&gt;&lt;LI&gt;loop at material list&lt;UL&gt;&lt;LI&gt;release the lock on the material number &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;endloop&lt;/LI&gt;&lt;LI&gt;skip next step if lock unsuccessful too long&lt;/LI&gt;&lt;LI&gt;execute the bdc&lt;/LI&gt;&lt;LI&gt;create an error log if call transaction raise an error&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;endloop&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(If you called a BAPI and not executed a BDC (so executed in another LUW) you could have removed the dequeue step)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/article-lock-issue-in-bdc/m-p/9224892#M1717855</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-01-11T07:42:42Z</dc:date>
    </item>
  </channel>
</rss>

