<?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: Re: BADI EXECUTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526228#M848350</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;  For example The Badi def is: MB_MIGO_BADI. For this&lt;/P&gt;&lt;P&gt;U create the implementation and activate the implemenation using se19 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually SAP not interact the  implemenation classes directly  . Sap interact with the implementation classes using the Business add-in class(For ex in this cas:CL_EX_MB_MIGO_BADI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_badi_inst type ref to IF_EX_MB_MIGO_BADI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_EXITHANDLER=&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      EXIT_NAME                     = 'MB_MIGO_BADI'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      INSTANCE                      = l_badi_inst&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NO_REFERENCE                  = 1&lt;/P&gt;&lt;P&gt;      NO_INTERFACE_REFERENCE        = 2&lt;/P&gt;&lt;P&gt;      NO_EXIT_INTERFACE             = 3&lt;/P&gt;&lt;P&gt;      CLASS_NOT_IMPLEMENT_INTERFACE = 4&lt;/P&gt;&lt;P&gt;      SINGLE_EXIT_MULTIPLY_ACTIVE   = 5&lt;/P&gt;&lt;P&gt;      CAST_ERROR                    = 6&lt;/P&gt;&lt;P&gt;      EXIT_NOT_EXISTING             = 7&lt;/P&gt;&lt;P&gt;      DATA_INCONS_IN_EXIT_MANAGEM   = 8&lt;/P&gt;&lt;P&gt;      others                        = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc = 0. The cl_exithandler take the input as interface reference variable and return back to the object of business add-in class.&lt;/P&gt;&lt;P&gt;To use this object and interact with the implemenation classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    call method l_badi_inst-&amp;gt;(u r reuired method in implemenattion class).&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is helpful rewards points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 09:52:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T09:52:51Z</dc:date>
    <item>
      <title>Re: BADI EXECUTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526225#M848347</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;     I have developed a custom badi in Se18 &amp;amp; implemented in se19. I want to use custom badi in SE38. Can anyone explain how to call custom badi in se38 . urgent usefull will be Rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526225#M848347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: BADI EXECUTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526226#M848348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on which SAP release you are working alread you either can use &lt;/P&gt;&lt;P&gt;- class &lt;STRONG&gt;CL_EXITHANDLER&lt;/STRONG&gt; (static method GET_INSTANCE)    or&lt;/P&gt;&lt;P&gt;- statement &lt;STRONG&gt;GET BADI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retrieve an instance of your custom BAdI. Whereas the first way should always work I am not sure about the second way with custom BAdIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 07:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526226#M848348</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-03-03T07:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: BADI EXECUTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526227#M848349</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; Uwe's reply is the standard method to call BADI from SE38.&lt;/P&gt;&lt;P&gt;Other than that, there is another workaround as follows.&lt;/P&gt;&lt;P&gt;1. When you create a BADI in SE18 it actually creates a class and it's method.&lt;/P&gt;&lt;P&gt;2. When you implement it in SE19 a interface is created. You can access the methods using this interface.&lt;/P&gt;&lt;P&gt;3. Hence, create a object of the class and then you can call the methods using this object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if 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;Chaith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 09:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526227#M848349</guid>
      <dc:creator>chaithanya_mk</dc:creator>
      <dc:date>2008-03-03T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: BADI EXECUTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526228#M848350</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;  For example The Badi def is: MB_MIGO_BADI. For this&lt;/P&gt;&lt;P&gt;U create the implementation and activate the implemenation using se19 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually SAP not interact the  implemenation classes directly  . Sap interact with the implementation classes using the Business add-in class(For ex in this cas:CL_EX_MB_MIGO_BADI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_badi_inst type ref to IF_EX_MB_MIGO_BADI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_EXITHANDLER=&amp;gt;GET_INSTANCE&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      EXIT_NAME                     = 'MB_MIGO_BADI'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      INSTANCE                      = l_badi_inst&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      NO_REFERENCE                  = 1&lt;/P&gt;&lt;P&gt;      NO_INTERFACE_REFERENCE        = 2&lt;/P&gt;&lt;P&gt;      NO_EXIT_INTERFACE             = 3&lt;/P&gt;&lt;P&gt;      CLASS_NOT_IMPLEMENT_INTERFACE = 4&lt;/P&gt;&lt;P&gt;      SINGLE_EXIT_MULTIPLY_ACTIVE   = 5&lt;/P&gt;&lt;P&gt;      CAST_ERROR                    = 6&lt;/P&gt;&lt;P&gt;      EXIT_NOT_EXISTING             = 7&lt;/P&gt;&lt;P&gt;      DATA_INCONS_IN_EXIT_MANAGEM   = 8&lt;/P&gt;&lt;P&gt;      others                        = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc = 0. The cl_exithandler take the input as interface reference variable and return back to the object of business add-in class.&lt;/P&gt;&lt;P&gt;To use this object and interact with the implemenation classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    call method l_badi_inst-&amp;gt;(u r reuired method in implemenattion class).&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is helpful rewards points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 09:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-badi-execution/m-p/3526228#M848350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T09:52:51Z</dc:date>
    </item>
  </channel>
</rss>

