<?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: Custom BADI Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075594#M974501</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;Yes u can, I don't know if it makes sense but u can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can create a your own BADI defination by trx SE18, after creating it the system automatically creates the interface, so u need to implement it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interface u need to defines all elements (methods, attributes,...) of the BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u can implement the code to call the BADI in the user-exit, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Define the object for the BADI:
DATA: MY_BADI TYPE REF TO Z_IF_EX_ &amp;lt;---- Interface of BADI

* Create the instance for the BADI object:

  CALL METHOD cl_exithandler=&amp;gt;get_instance
      CHANGING instance =  MY_BADI.

* Call the method of BADI u need
  IF NOT MY_BADI IS INITIAL.
    CALL METHOD MY_BADI-&amp;gt;MY_METHOD.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Jun 26, 2008 12:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2008 10:10:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-26T10:10:59Z</dc:date>
    <item>
      <title>Custom BADI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075591#M974498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi xperts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it  possible to create our own custom badi (not implementation of custom one) and attached to the user exit of the standard code.&lt;/P&gt;&lt;P&gt;If so please let me know the steps and reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075591#M974498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BADI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075592#M974499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3348925"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc" target="test_blank"&gt;http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran Sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 09:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075592#M974499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BADI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075593#M974500</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;check this link to create  custom badi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ExitsBADIs/DefineBADI/page1.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ExitsBADIs/DefineBADI/page1.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 09:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075593#M974500</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-26T09:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom BADI Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075594#M974501</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;Yes u can, I don't know if it makes sense but u can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can create a your own BADI defination by trx SE18, after creating it the system automatically creates the interface, so u need to implement it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interface u need to defines all elements (methods, attributes,...) of the BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u can implement the code to call the BADI in the user-exit, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* Define the object for the BADI:
DATA: MY_BADI TYPE REF TO Z_IF_EX_ &amp;lt;---- Interface of BADI

* Create the instance for the BADI object:

  CALL METHOD cl_exithandler=&amp;gt;get_instance
      CHANGING instance =  MY_BADI.

* Call the method of BADI u need
  IF NOT MY_BADI IS INITIAL.
    CALL METHOD MY_BADI-&amp;gt;MY_METHOD.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Jun 26, 2008 12:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 10:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-badi-creation/m-p/4075594#M974501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-26T10:10:59Z</dc:date>
    </item>
  </channel>
</rss>

