<?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 Post Auto GR while saving MIGO Transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-auto-gr-while-saving-migo-transaction/m-p/3313747#M793682</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;My requirement is that 'When i post a material document in MIGO for a particular movement type, another material document of movement type '561' has to be posted automatically in the background'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have created an implementation for the BADI 'MB_DOCUMENT_BADI'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have called a FM in update task in the 'MB_DOCUMENT_BEFORE_UPDATE' method of the BADI. The function module has the code to post a Material document using the BAPI 'BAPI_GOODSMVT_CREATE'. Since i have used the BAPI, i have to commit using 'BAPI_TRANSACTION_COMMIT'. I get the error COMMIT_IN_POSTING and the update is terminated and neither of the documents get posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried an customer exit also and am very much aware that a Explicit commit must not be used in a BADI. Is there any other way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jan 2008 06:06:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-30T06:06:45Z</dc:date>
    <item>
      <title>Post Auto GR while saving MIGO Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-auto-gr-while-saving-migo-transaction/m-p/3313747#M793682</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;My requirement is that 'When i post a material document in MIGO for a particular movement type, another material document of movement type '561' has to be posted automatically in the background'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have created an implementation for the BADI 'MB_DOCUMENT_BADI'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have called a FM in update task in the 'MB_DOCUMENT_BEFORE_UPDATE' method of the BADI. The function module has the code to post a Material document using the BAPI 'BAPI_GOODSMVT_CREATE'. Since i have used the BAPI, i have to commit using 'BAPI_TRANSACTION_COMMIT'. I get the error COMMIT_IN_POSTING and the update is terminated and neither of the documents get posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried an customer exit also and am very much aware that a Explicit commit must not be used in a BADI. Is there any other way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 06:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-auto-gr-while-saving-migo-transaction/m-p/3313747#M793682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T06:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Post Auto GR while saving MIGO Transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-auto-gr-while-saving-migo-transaction/m-p/3313748#M793683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find any solution for this. Even i am having a similar requirement for the same BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 11:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-auto-gr-while-saving-migo-transaction/m-p/3313748#M793683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T11:28:34Z</dc:date>
    </item>
  </channel>
</rss>

