<?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 MIGO after commit Exit needed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371447#M1401855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to populate outbound Idoc in my development for the same I am using Method: MB_DOCUMENT_BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;But in the same I need to populate field called 'adrc-regiogroup', I am using below logic to populate &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get material document number then use it to retrieve ser03&lt;SUB&gt;obknr, then use it for objk&lt;/SUB&gt;obknr which inturn will give objk&lt;SUB&gt;equnr, then use it to find equz&lt;/SUB&gt;equnr then equz&lt;SUB&gt;iloan, from it iloa&lt;/SUB&gt;iloan then from it iloa&lt;SUB&gt;adrnr then adrc&lt;/SUB&gt;addrnumber and from then retrieve 'adrc-regiogroup'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT ser03~mblnr
         adrstreet~strt_code
         adrc~regiogroup
    INTO TABLE lt_rgroup
    FROM adrstreet AS adrstreet
    JOIN adrc AS adrc ON adrc~streetcode = adrstreet~strt_code
     AND adrc~country = adrstreet~country
    JOIN iloa AS iloa ON iloa~adrnr = adrc~addrnumber
    JOIN equz AS equz ON equz~iloan = iloa~iloan
    JOIN objk AS objk ON objk~equnr = equz~equnr
    JOIN ser03 AS ser03 ON objk~obknr = ser03~obknr
     FOR ALL ENTRIES IN xt_xmseg
   WHERE ser03~mblnr = xt_xmseg-mblnr
     AND ser03~mjahr = xt_xmseg-mjahr
     AND ser03~zeile = xt_xmseg-zeile.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but problem with this is that BADI gets triggered before COMMIT of sap database, so basically SER03 table is not updated with respective material document entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I need either exit which gets triggered after sap commit, so that I will be able to execute above code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need other logic to retrieve data from table adrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 12:07:33 GMT</pubDate>
    <dc:creator>former_member221838</dc:creator>
    <dc:date>2009-11-30T12:07:33Z</dc:date>
    <item>
      <title>MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371447#M1401855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to populate outbound Idoc in my development for the same I am using Method: MB_DOCUMENT_BEFORE_UPDATE.&lt;/P&gt;&lt;P&gt;But in the same I need to populate field called 'adrc-regiogroup', I am using below logic to populate &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get material document number then use it to retrieve ser03&lt;SUB&gt;obknr, then use it for objk&lt;/SUB&gt;obknr which inturn will give objk&lt;SUB&gt;equnr, then use it to find equz&lt;/SUB&gt;equnr then equz&lt;SUB&gt;iloan, from it iloa&lt;/SUB&gt;iloan then from it iloa&lt;SUB&gt;adrnr then adrc&lt;/SUB&gt;addrnumber and from then retrieve 'adrc-regiogroup'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT ser03~mblnr
         adrstreet~strt_code
         adrc~regiogroup
    INTO TABLE lt_rgroup
    FROM adrstreet AS adrstreet
    JOIN adrc AS adrc ON adrc~streetcode = adrstreet~strt_code
     AND adrc~country = adrstreet~country
    JOIN iloa AS iloa ON iloa~adrnr = adrc~addrnumber
    JOIN equz AS equz ON equz~iloan = iloa~iloan
    JOIN objk AS objk ON objk~equnr = equz~equnr
    JOIN ser03 AS ser03 ON objk~obknr = ser03~obknr
     FOR ALL ENTRIES IN xt_xmseg
   WHERE ser03~mblnr = xt_xmseg-mblnr
     AND ser03~mjahr = xt_xmseg-mjahr
     AND ser03~zeile = xt_xmseg-zeile.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but problem with this is that BADI gets triggered before COMMIT of sap database, so basically SER03 table is not updated with respective material document entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I need either exit which gets triggered after sap commit, so that I will be able to execute above code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need other logic to retrieve data from table adrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 12:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371447#M1401855</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2009-11-30T12:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371448#M1401856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try out &lt;/P&gt;&lt;P&gt;Business object BUS2017 &lt;/P&gt;&lt;P&gt;event GoodsMovement.created           Created&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 12:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371448#M1401856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T12:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371449#M1401857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1491922"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371449#M1401857</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-11-30T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371450#M1401858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use MB_DOCUMENT_UPDATE method of the same BADI. Its triggered in update task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371450#M1401858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T13:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371451#M1401859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to put breakpoint in MB_DOCUMENT_UPDATE, but its not getting triggered.&lt;/P&gt;&lt;P&gt;are you sure? or am i doing anything wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371451#M1401859</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2009-11-30T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371452#M1401860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this method is triggered in update task.&lt;/P&gt;&lt;P&gt;Put a break-point inside the method. Excute the Tcode in debug mode. while debugging goto Settings menu in the same session and click Update debugging. At the bottom you can see the message update debugging switched on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points :&lt;/P&gt;&lt;P&gt;You cannot write any code in method which is called in update task which contains implicit or explicit commit ex call transaction , call screen , commit work etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workarounds : &lt;/P&gt;&lt;P&gt;you can wrap you code in a FM and call that FM in update task or starting new task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 13:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371452#M1401860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T13:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371453#M1401861</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;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;Yes, my code is wrapped in FM only. This BADI gets triggered before SAP Commit. I want to retrieve data from SER03 corresponding to material document number intiated in MIGO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So current flow is  --&amp;gt; MIGO --&amp;gt; INPUT DATA --&amp;gt; SAVE --&amp;gt; BADI triggered (my FM wrapped in it) --&amp;gt; SAP COMMIT (SER03 updated) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want flow --&amp;gt; MIGO --&amp;gt; INPUT DATA --&amp;gt; SAVE --&amp;gt; SAP COMMIT (SER03 updated) --&amp;gt; BADI or ANYTHING triggered (my FM wrapped in it) &lt;/P&gt;&lt;P&gt;I want something which is after SAP commit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked BUS2017 and it is not working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or any other solution/suggestion would be really useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nikhil Jathar on Nov 30, 2009 9:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 15:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371453#M1401861</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2009-11-30T15:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371454#M1401862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try calling the FM in update task or starting  new task in the method I suggested earlier. It works .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 15:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371454#M1401862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-30T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371455#M1401863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I am trying again. I will update this thread.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 15:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371455#M1401863</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2009-11-30T15:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: MIGO after commit Exit needed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371456#M1401864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh, it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually when I tried to execute it in debugging mode it wasn't working, but later I tested it on some custom tables to check whether it populates any after commit value/s, it worked. Great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 16:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/migo-after-commit-exit-needed/m-p/6371456#M1401864</guid>
      <dc:creator>former_member221838</dc:creator>
      <dc:date>2009-11-30T16:06:49Z</dc:date>
    </item>
  </channel>
</rss>

