<?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: Custamize badi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006873#M1345254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any  BADI, should get triggered by the class, CL_EXITHANDLER and method get_instance. Here exit name should be your BADi name. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL METHOD cl_exithandler=&amp;gt;get_class_name_by_interface
    EXPORTING
      instance                      = instance
    IMPORTING
      class_name                    = class_name
    CHANGING
      exit_name                     =  Should be your BADI Name
    EXCEPTIONS
      no_reference                  = 1
      no_interface_reference        = 2
      no_exit_interface             = 3
      data_incons_in_exit_managem   = 4
      class_not_implement_interface = 5
      OTHERS                        = 6.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2009 09:31:18 GMT</pubDate>
    <dc:creator>former_member376453</dc:creator>
    <dc:date>2009-08-07T09:31:18Z</dc:date>
    <item>
      <title>Custamize badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006872#M1345253</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;I have one doubt - Suppose I ahve created one customize BADI inse 18 and implement in SE19.But how can I use it in standard transaction or any other transaction.&lt;/P&gt;&lt;P&gt;Could you please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 09:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006872#M1345253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T09:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custamize badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006873#M1345254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any  BADI, should get triggered by the class, CL_EXITHANDLER and method get_instance. Here exit name should be your BADi name. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL METHOD cl_exithandler=&amp;gt;get_class_name_by_interface
    EXPORTING
      instance                      = instance
    IMPORTING
      class_name                    = class_name
    CHANGING
      exit_name                     =  Should be your BADI Name
    EXCEPTIONS
      no_reference                  = 1
      no_interface_reference        = 2
      no_exit_interface             = 3
      data_incons_in_exit_managem   = 4
      class_not_implement_interface = 5
      OTHERS                        = 6.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 09:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006873#M1345254</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-08-07T09:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custamize badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006874#M1345255</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;If you've created a custom BADI, the system has generated the interface, in the program where u need to use the BADI, u need to define a variable like the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: MY_BADI TYPE REF TO &amp;lt;Z interface&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u need to place in a strategic point of the program the calls of the methods of your BADI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD MY_BADY-&amp;gt;MY_METHOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now before calling a method of the BADI u need to make sure the BADI is implemented and the instance is created, u need to use the method GET_INSTANCE of class CL_EXITHANDLER to do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD CL_EXITHANDLER=&amp;gt;GET_INSTANCE
      EXPORTING
        EXIT_NAME              = &amp;lt;BADI name&amp;gt;
        NULL_INSTANCE_ACCEPTED = NULL_INSTANCE_ACCEPTED
      IMPORTING
        ACT_IMP_EXISTING       = ACT_IMP_EXISTING
      CHANGING
        INSTANCE               = MY_BADI
      EXCEPTIONS
        OTHERS                 = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 09:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custamize-badi/m-p/6006874#M1345255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T09:33:45Z</dc:date>
    </item>
  </channel>
</rss>

