<?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 M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8891998#M1689066</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the error occurs when calling bapi "/AFS/BAPI_GOODSMVT_CREATE" in method "MB_DOCUMENT_UPDATE" in BAdi "MB_DOCUMENT_BADI".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Diagnosis &lt;/H2&gt;&lt;P&gt;The function module MB_CREATE_GOODS_MOVEMENT is called up for the second time. After it was called up the first time, the function module MB_POST_GOODS_MOVEMENT was called, but a COMMIT WORK was not carried out in the calling program. &lt;/P&gt;&lt;P&gt;As running the two function modules again would result in the database being incorrectly updated, processing is terminated. System Response Procedure Please ensure that a COMMIT WORK is set after you call up the function module MB_POST_GOODS_MOVEMENT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; According to the Diagnosis, it seems like that calling bapi in BAdi "MB_DOCUMENT_BADI" is not possible, because the migo have not finished.&amp;nbsp; no commit work was carried out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But I really need this, it's the business scenario customer required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; any help is expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2012 06:03:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-26T06:03:01Z</dc:date>
    <item>
      <title>M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8891998#M1689066</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the error occurs when calling bapi "/AFS/BAPI_GOODSMVT_CREATE" in method "MB_DOCUMENT_UPDATE" in BAdi "MB_DOCUMENT_BADI".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Diagnosis &lt;/H2&gt;&lt;P&gt;The function module MB_CREATE_GOODS_MOVEMENT is called up for the second time. After it was called up the first time, the function module MB_POST_GOODS_MOVEMENT was called, but a COMMIT WORK was not carried out in the calling program. &lt;/P&gt;&lt;P&gt;As running the two function modules again would result in the database being incorrectly updated, processing is terminated. System Response Procedure Please ensure that a COMMIT WORK is set after you call up the function module MB_POST_GOODS_MOVEMENT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; According to the Diagnosis, it seems like that calling bapi in BAdi "MB_DOCUMENT_BADI" is not possible, because the migo have not finished.&amp;nbsp; no commit work was carried out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But I really need this, it's the business scenario customer required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; any help is expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 06:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8891998#M1689066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-26T06:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8891999#M1689067</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;As the error says, somehow the bapi is called twice without a commit statement between. Can you please be more specific about the situation ? Are you talking for a customer or standard transaction ? Can you describe the whole process ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8891999#M1689067</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-07-26T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892000#M1689068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To&amp;nbsp; Laurent：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The scenario is： it triggers the GR of '501' automatically when doing GR of '101' using migo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; so&amp;nbsp; i call the bapi "/AFS/BAPI_GOODSMVT_CREATE"&amp;nbsp; in BAdi MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892000#M1689068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-26T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892001#M1689069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you have the commit error, you must find another way to post the 501 movement. Try a function call with the addition in background task in order to avoid the double posting without commit .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:25:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892001#M1689069</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-07-26T07:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892002#M1689070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THX, I'll have a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892002#M1689070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-26T07:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: M7299 - Function module MB_CREATE_GOODS_MOVEMENT cannot be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892003#M1689071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, try it and if you still having issues reply back for support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/m7299-function-module-mb-create-goods-movement-cannot-be-executed/m-p/8892003#M1689071</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-07-26T07:59:33Z</dc:date>
    </item>
  </channel>
</rss>

