<?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: USER EXIT BY TCODE MIGO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849101#M359918</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;Assuming this is your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store the MKPF &amp;amp; MSEG details in a Z table...when the material document is created..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Create a function module Z_ADD_ZTABLE..Which should be remote enabled..&lt;/P&gt;&lt;P&gt;Give the parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select on MKPF and MSEG with the material document number that has been just posted...The values are available in XMKPF-MBLNR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;SELECT SINGLE * FROM MKPF WHERE MBLNR = XMKPF-MBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****The return code will be zero..Means the record is available in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN the BADI MB_DOCUMENT_BADI or in the USER EXIT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL the function module in BACKGROUND TASK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;CALL FUNCTION 'Z_ADD_ZTABLE' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;         Exporting&lt;/P&gt;&lt;P&gt;               -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jan 2007 19:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-26T19:48:05Z</dc:date>
    <item>
      <title>USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849096#M359913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need do it, a enhancement by the transaction MIGO, just when the document is saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody knows, an enhacement in particular ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank by their aid.&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;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 05:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849096#M359913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T05:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849097#M359914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this one&lt;/P&gt;&lt;P&gt;MB_MIGO_BADI...... and the method is POST_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 05:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849097#M359914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T05:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849098#M359915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thank you by their aid, but,.. I need a method to recover the number material document and make other things with this number.,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THat is, execute inmediately AFTER that document is saved in SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, somebody knows what is this method ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&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;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 17:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849098#M359915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T17:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849099#M359916</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;Try using the BADI MB_DOCUMENT_BADI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method  MB_DOCUMENT_BADI-&amp;gt;MB_DOCUMENT_UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR the user exit.EXIT_SAPLMBMB_001..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are called in the FM MB_POST_DOCUMENT..You will have the material document number available ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The FM MB_POST_DOCUMENT is called in UPDATE TASK..So to check..use the update debugging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 18:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849099#M359916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849100#M359917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren: Thanks by the information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this Badi MB_DOCUMENT_BADI, I view the material number, But, in addition, I need that this material number is posted in SAP, and it is reflected in the stock. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that, I view the document number but, in the transaction code MB03 this document doesn't exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a Badi, that, once posted the document number, make a task, that is inmediately the document is saved in the data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you by their aid&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;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849100#M359917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T19:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849101#M359918</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;Assuming this is your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store the MKPF &amp;amp; MSEG details in a Z table...when the material document is created..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;Create a function module Z_ADD_ZTABLE..Which should be remote enabled..&lt;/P&gt;&lt;P&gt;Give the parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select on MKPF and MSEG with the material document number that has been just posted...The values are available in XMKPF-MBLNR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;SELECT SINGLE * FROM MKPF WHERE MBLNR = XMKPF-MBLNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****The return code will be zero..Means the record is available in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN the BADI MB_DOCUMENT_BADI or in the USER EXIT...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL the function module in BACKGROUND TASK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;CALL FUNCTION 'Z_ADD_ZTABLE' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;         Exporting&lt;/P&gt;&lt;P&gt;               -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 19:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849101#M359918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T19:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849102#M359919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren: Thanks again,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make the FM     ZDOC_MAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM, is called in the method MB_DOCUMENT_UPDATE of the badi MB_DOCUMENT_BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The form, that I call the FM is the following:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT XMSEG INTO MSEG_AUX.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZDOC_MAT'  IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;        PMBLNR = MSEG_AUX-MBLNR.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the FM, I make a statement SELECT, by seek if the document number have seen created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc eq 0, insert the document number in a Z table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE *&lt;/P&gt;&lt;P&gt;    FROM MKPF&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF MKPF&lt;/P&gt;&lt;P&gt;    WHERE MBLNR = PMBLNR.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;      zborrar-mblnr = pmblnr.&lt;/P&gt;&lt;P&gt;      insert zborrar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in the Z table dont appear the document number,... isn´t inserted,..  &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease, help me in know what occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot of !!&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;dario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 23:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849102#M359919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T23:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849103#M359920</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;Did you make that FM as remote enabled..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE37..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the FM ZDOC_MAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press change button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attributes tab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the radio button "Remote-enabled module"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 23:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849103#M359920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T23:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849104#M359921</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;Please make sure to reward points for helpful answers..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2007 23:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849104#M359921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-26T23:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849105#M359922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOU ARE THE BEST !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thaak you Naren !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 00:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849105#M359922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-27T00:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: USER EXIT BY TCODE MIGO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849106#M359923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help..:-))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jan 2007 00:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-by-tcode-migo/m-p/1849106#M359923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-27T00:18:01Z</dc:date>
    </item>
  </channel>
</rss>

