<?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 Bapi BAPI_GOODSMVT_CREATE lock issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-goodsmvt-create-lock-issues/m-p/4552455#M1074864</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 a problem with BAPI_GOODSMVT_CREATE, FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have using this to post goods movement type 309 &amp;amp; 321 and I am calling this in LOOP as there are more number of goods movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each iteration i have to post the goods movement and after that i have to create the delivery using bdc MBRL Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the BAPI is locking the Material document number even after posting the goods movement for a while. Because of this the delivery creation is failing.&lt;/P&gt;&lt;P&gt;After BAPI i'm using BAPI commit work FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used FM deque_all, but its not working. wait up to 2 secs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the combination of deque_all &amp;amp; wait up to 2 secs is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyother way to release locks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 13:58:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T13:58:12Z</dc:date>
    <item>
      <title>Bapi BAPI_GOODSMVT_CREATE lock issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-goodsmvt-create-lock-issues/m-p/4552455#M1074864</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 a problem with BAPI_GOODSMVT_CREATE, FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have using this to post goods movement type 309 &amp;amp; 321 and I am calling this in LOOP as there are more number of goods movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In each iteration i have to post the goods movement and after that i have to create the delivery using bdc MBRL Tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the BAPI is locking the Material document number even after posting the goods movement for a while. Because of this the delivery creation is failing.&lt;/P&gt;&lt;P&gt;After BAPI i'm using BAPI commit work FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used FM deque_all, but its not working. wait up to 2 secs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even the combination of deque_all &amp;amp; wait up to 2 secs is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyother way to release locks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 13:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-goodsmvt-create-lock-issues/m-p/4552455#M1074864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T13:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi BAPI_GOODSMVT_CREATE lock issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-goodsmvt-create-lock-issues/m-p/4552456#M1074865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this way ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET UPDATE TASK LOCAL&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq  0.&lt;/P&gt;&lt;P&gt;  call function BAPI_GOODS_MVMT_CREATE&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if return is initial with no errors then &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET UPDATE TASK LOCAL&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq  0.&lt;/P&gt;&lt;P&gt;call function 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            WAIT   = 'X'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            RETURN = return.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 14:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bapi-goodsmvt-create-lock-issues/m-p/4552456#M1074865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T14:02:59Z</dc:date>
    </item>
  </channel>
</rss>

