<?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 Populate custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-custom-table/m-p/2100241#M437723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I got a task to do .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populated Goods Movement details in a custom Z table each time a goods movement is created through MIGO or PGI by using MB_DOCUMENT_BADI&lt;/P&gt;&lt;P&gt;Could anyone tell the process to do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Apr 2007 03:44:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-01T03:44:15Z</dc:date>
    <item>
      <title>Populate custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-custom-table/m-p/2100241#M437723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I got a task to do .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populated Goods Movement details in a custom Z table each time a goods movement is created through MIGO or PGI by using MB_DOCUMENT_BADI&lt;/P&gt;&lt;P&gt;Could anyone tell the process to do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2007 03:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-custom-table/m-p/2100241#M437723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-01T03:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Populate custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populate-custom-table/m-p/2100242#M437724</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;MB_DOCUMENT_BADI is a BADI. You can see this BAPI using transaction SE18. These two methods in this BADI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;. MB_DOCUMENT_BEFORE_UPDATE - Exit after Writing a Material Document. Not in 'update task'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2&amp;lt;/b&amp;gt;. &amp;lt;b&amp;gt;MB_DOCUMENT_UPDATE&amp;lt;/b&amp;gt;                - When Writing a Material Document. In 'Update task'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the second method "MB_DOCUMENT_UPDATE  " because this is called where all validation are finished and data is being updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use this method first you will have to create a implementation of this BADI.  Follow these steps to  implement BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt;  Go to transaction SE19.&lt;/P&gt;&lt;P&gt;--&amp;gt;  Enter Implementation name "Z_MB_DOCUMENT_UPDATE" ( you can enter any other meaningful name too) and hit create.&lt;/P&gt;&lt;P&gt;--&amp;gt;  When asked for "definition name" , enter "MB_DOCUMENT_UPDATE".&lt;/P&gt;&lt;P&gt;--&amp;gt;  On the screen which opens, enter meaningful description. and hit save.&lt;/P&gt;&lt;P&gt;--&amp;gt;  When asked, enter your custom development class and create a transport request.&lt;/P&gt;&lt;P&gt;--&amp;gt;  Now, select "interface" tab.&lt;/P&gt;&lt;P&gt;--&amp;gt;  Here you can do two things. &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;a).&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; double-click on method "MB_DOCUMENT_UPDATE" and it will directly take you to the place where you write your code to update custom Z table. &amp;lt;b&amp;gt;OR&amp;lt;/b&amp;gt; &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;b).&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; Double-click on the "implementation class" . This you will fine under interface name and it would be line "ZCL_IM__MB_DOCUMENT_UPDATE".&lt;/P&gt;&lt;P&gt;--&amp;gt;  If you double-click on "implementation class", it will take you to the screen ( this is same as SE24 screen where you implement can see classes and interfaces ) where you can see method, what parameters are available etc. From here also you can double-click on method and do to the place where you can implement you code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information on BADI, please refer to this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/ee/a1d548892b11d295d60000e82de14a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/ee/a1d548892b11d295d60000e82de14a/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2007 05:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populate-custom-table/m-p/2100242#M437724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-01T05:00:09Z</dc:date>
    </item>
  </channel>
</rss>

