<?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: BAdI implenetation-default code / OO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400932#M193820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See abowe.&lt;/P&gt;&lt;P&gt;Yes the standard code for the BAdI has to be executed until a batch is entered. The my own implementation has to be executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 09:33:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-14T09:33:55Z</dc:date>
    <item>
      <title>BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400926#M193814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are upgrading to ERP 2005 with IS-CWM activated from 4.0B so my knowledge to OO is almost non-existing.&lt;/P&gt;&lt;P&gt;We have a BAdI : /CWM/DEFAULT_MIGO this BAdI has some default code. The code proposes a quantity and unit in the parallel unit in transaction MIGO. The name of the Class is /CWM/CL_EX_DEFAULT_MIGO and the interface /CWM/IF_EX_DEFAULT_MIGO with a method called DEFAULT_VALUE.&lt;/P&gt;&lt;P&gt;If I implement this BAdI the default code is no longer executed because the BAdI implementation refers to the interface /CWM/IF_EX_DEFAULT_MIGO and the DEFAULT_VALUE method. The code from my own method is executed instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question : In some cases &amp;#150; until a valid batch is entered the &amp;lt;b&amp;gt;default&amp;lt;/b&amp;gt; code from the method DEFAULT_VALUE should be execute. The quick solution would be to copy-and-paste the code to my own method. But is it possible to call the default method ? (why should I maintain the code if SAP does it for me)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 13:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400926#M193814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T13:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400927#M193815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I try to insert a call to the method by using "Pattern" in the editor I get this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL METHOD me-&amp;gt;/cwm/if_ex_default_migo~default_value
    EXPORTING
      is_goitem           = is_goitem
      is_old_goitem       = is_old_goitem
      i_touched_erfmg     = i_touched_erfmg
      i_touched_cwm_erfmg = i_touched_cwm_erfmg
      i_touched_erfme     = i_touched_erfme
      i_touched_cwm_erfme = i_touched_cwm_erfme
    IMPORTING
      E_/CWM/ERFME        = E_/CWM/ERFME
      E_ERFMG             = E_ERFMG
      E_ERFME             = E_ERFME
      E_/CWM/ERFMG        = E_/CWM/ERFMG
      .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this call calles my own methode that I just implemented (=endless loop) not the default code of the BAdI&lt;/P&gt;&lt;P&gt;How do I call the default code of a BAdI after I implemented Method ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 06:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400927#M193815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T06:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400928#M193816</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;Once you have implemented a BADI, the default code will not get executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to separate your custom code and the default code provided by SAP, you could use the Filter functionality and based on the value of the filter, you could set the implementation to be executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400928#M193816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400929#M193817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tell me the Business requirement ? So we can go thru that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per my understanding of this issue.&lt;/P&gt;&lt;P&gt;If user entering valid batch no need to go thru the BADI code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in that case put a logic like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;select single charg  from  mch1 into w_lips-charg
               where matnr eq w_lips-matnr
                 and charg eq w_lips-charg.
if sy-subrc ne 0.
put ur code over here ?
else.
endif.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400929#M193817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400930#M193818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u tell me the Business requirement ? So we can go thru that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per my understanding of this issue.&lt;/P&gt;&lt;P&gt;If user entering valid batch no need to go thru the BADI code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in that case put a logic like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;select single charg  from  mch1 into w_lips-charg
               where matnr eq w_lips-matnr
                 and charg eq w_lips-charg.
if sy-subrc ne 0.
put ur code over here ?
else.
endif.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400930#M193818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400931#M193819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out how to call the standrdcode:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: instance_def_obj TYPE REF TO /cwm/if_ex_default_migo.
  CREATE OBJECT instance_def_obj TYPE /cwm/cl_def_im_default_migo.

      CALL METHOD instance_def_obj-&amp;gt;default_value
        EXPORTING
          is_goitem           = is_goitem
          is_old_goitem       = is_old_goitem
          i_touched_erfmg     = i_touched_erfmg
          i_touched_cwm_erfmg = i_touched_cwm_erfmg
          i_touched_erfme     = i_touched_erfme
          i_touched_cwm_erfme = i_touched_cwm_erfme
        IMPORTING
          e_/cwm/erfme        = e_/cwm/erfme
          e_erfmg             = e_erfmg
          e_erfme             = e_erfme
          e_/cwm/erfmg        = e_/cwm/erfmg.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will call the standard code for the BAdI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400931#M193819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAdI implenetation-default code / OO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400932#M193820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See abowe.&lt;/P&gt;&lt;P&gt;Yes the standard code for the BAdI has to be executed until a batch is entered. The my own implementation has to be executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 09:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badi-implenetation-default-code-oo/m-p/1400932#M193820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T09:33:55Z</dc:date>
    </item>
  </channel>
</rss>

