<?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: Submit program after database commit of MIGO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436644#M1998348</link>
    <description>&lt;P&gt;Wrap your code in a RFC enabled FM, call this FM with the option in background task or unit.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'Z_XXXXX' IN BACKGROUND TASK
    EXPORTING...&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This FM will be executed after the V1 update task and the database commit of their data. You can register your call anywhere before the COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: Read first SAP online documentation on statement COMMIT WORK.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 12:55:49 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2021-06-17T12:55:49Z</dc:date>
    <item>
      <title>Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436638#M1998342</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;I need to submit a standard program (V_V2 tcode) after a material document is created (MIGO/MB1B).&lt;/P&gt;
  &lt;P&gt;I know BADI like MB_DOCUMENT_BADI could be a good place to do that&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1949471-mb-document-badi.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But how can i be sure to submit my program &lt;STRONG&gt;after the database COMMIT&lt;/STRONG&gt; of the MIGO/MB1B?&lt;/P&gt;
  &lt;P&gt;Thanks a lot for your time.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Alexandre&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 08:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436638#M1998342</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-06-17T08:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436639#M1998343</link>
      <description>&lt;P&gt;Hello Alexandre,&lt;/P&gt;&lt;P&gt;Would the User-Exit EXIT_SAPLMBMB_001 (of MB_CF001) be an option for you? It is called within MB_DOCUMENT_UPDATE. Please try to implement it and check via Debugger, if the data you need is written to the Database already at this point.&lt;/P&gt;&lt;P&gt;Please make sure to activate „Update Debugging“ in the settings of the Debugger, otherwise Debugger will not open within MB_DOCUMENT_UPDATE or EXIT_SAPLMBMB_001.&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 09:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436639#M1998343</guid>
      <dc:creator>Marco_Flamm</dc:creator>
      <dc:date>2021-06-17T09:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436640#M1998344</link>
      <description>&lt;P&gt;The user-exit and the BAdI here work pretty much the same.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 09:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436640#M1998344</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2021-06-17T09:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436641#M1998345</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;alexandreourth&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Use MB_DOCUMENT_UPDATE. It's definitely called after COMMIT WORK.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 09:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436641#M1998345</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2021-06-17T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436642#M1998346</link>
      <description>&lt;P&gt;Hello Dominik,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;The description of this method annoyes me "When writing a document" =&amp;gt; I expected something like "after writing" like the first method which has "Exit after writing a material document" but the associated method is MB_DOCUMENT_&lt;STRONG&gt;BEFORE&lt;/STRONG&gt;_UPDATE &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This confuses me, It must be according to a certain context/logic but clearly not mine.&lt;/P&gt;&lt;P&gt;I thought there were so kind of an instruction to submit a program after the current process.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 11:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436642#M1998346</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-06-17T11:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436643#M1998347</link>
      <description>&lt;P&gt;To be sure, do a simple test by implementing BADI with only a 
break-point instruction and process MIGO in debug mode to stop execution
 at COMIT WORK instruction...! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Else, a solution to do some 
action after standard updates are finished is to encapsulate your code 
in a Z function called in update with start delayed mode 2.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436643#M1998347</guid>
      <dc:creator>stanislaslemaire</dc:creator>
      <dc:date>2021-06-17T12:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436644#M1998348</link>
      <description>&lt;P&gt;Wrap your code in a RFC enabled FM, call this FM with the option in background task or unit.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL FUNCTION 'Z_XXXXX' IN BACKGROUND TASK
    EXPORTING...&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This FM will be executed after the V1 update task and the database commit of their data. You can register your call anywhere before the COMMIT WORK statement.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hint: Read first SAP online documentation on statement COMMIT WORK.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436644#M1998348</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2021-06-17T12:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436645#M1998349</link>
      <description>&lt;P&gt;Hi Raymond Thanks a lot.&lt;/P&gt;&lt;P&gt;Yes i think i need to read it again ^^&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436645#M1998349</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-06-17T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Submit program after database commit of MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436646#M1998350</link>
      <description>&lt;P&gt;Thanks Marco for your time.&lt;/P&gt;&lt;P&gt;I'll try that too.&lt;/P&gt;&lt;P&gt;Have a great day&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-program-after-database-commit-of-migo/m-p/12436646#M1998350</guid>
      <dc:creator>alexandreourth</dc:creator>
      <dc:date>2021-06-17T13:23:10Z</dc:date>
    </item>
  </channel>
</rss>

