<?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 creatign a custom badi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896043#M680814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai freinds i want to create a custom badi, i am doing through se18 and giving zdemo and create but it gives error that create option is possible for enhancment spots only can any one help me how to create the custom badi&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 13:52:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-08T13:52:29Z</dc:date>
    <item>
      <title>creatign a custom badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896043#M680814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai freinds i want to create a custom badi, i am doing through se18 and giving zdemo and create but it gives error that create option is possible for enhancment spots only can any one help me how to create the custom badi&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 13:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896043#M680814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: creatign a custom badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896044#M680815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Business Add-Ins&lt;/P&gt;&lt;P&gt;Overview&lt;/P&gt;&lt;P&gt;BAdi Definition&lt;/P&gt;&lt;P&gt;BAdi Implementation&lt;/P&gt;&lt;P&gt;Calling BAdi&lt;/P&gt;&lt;P&gt;Filter Dependent Badi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New SAP enhancement technique &lt;/P&gt;&lt;P&gt;To accommodate user requirements not available / too specific to be included in the SAP standard Program&lt;/P&gt;&lt;P&gt;Based on ABAP Objects &amp;#150; It has Interfaces &amp;amp; Methods&lt;/P&gt;&lt;P&gt;Guaranteed upward compatibility of all Business Add-In interfaces &lt;/P&gt;&lt;P&gt;Release upgrades do not affect enhancement calls from within the standard software nor do they affect the validity of call interfaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though different enhancement technique, BAdi has following distinct features&lt;/P&gt;&lt;P&gt;-Uses Object oriented approach&lt;/P&gt;&lt;P&gt;-Two parts - Definition and its Implementation - definition can either be SAP provided or user may also create it&lt;/P&gt;&lt;P&gt;-no longer assumes a two-system infrastructure (SAP and customers)&lt;/P&gt;&lt;P&gt;-allows multiple levels of software development (by SAP, partners, and customers, and as country versions, industry solutions, and the like)&lt;/P&gt;&lt;P&gt;-Can have multiple representations &amp;#150; specific one will be executed based on some criteria (filter)&lt;/P&gt;&lt;P&gt;-No SSCR registration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Application Programmer defines an interface for the Business Add-Ins&lt;/P&gt;&lt;P&gt;Enhancement management takes this interface &amp;amp; generates an adapter class for implementing it, thus opening path for implementation&lt;/P&gt;&lt;P&gt;As per need, BAdi is suitably implemented&lt;/P&gt;&lt;P&gt;Developer then creates an instance of the adapter class in the application program and calls the corresponding method at the appropriate time&lt;/P&gt;&lt;P&gt;Application program simply calls the adapter class methods; it does not know which implementations are actually being called&lt;/P&gt;&lt;P&gt;Adapter class methods generated by add-in management decide which implementation is to be called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for BAdi in IMG and in component hierarchy&lt;/P&gt;&lt;P&gt;Create own implementation of the add-in (complete coding for Methods) and activate &lt;/P&gt;&lt;P&gt;Enhancement's active components are called at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAdi Definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To include Business Add-Ins in the program&lt;/P&gt;&lt;P&gt;- Define an interface for the enhancement in the SAP menu under Tools-&amp;gt; ABAP Workbench -&amp;gt; Utilities -&amp;gt; Business Add-Ins (transaction SE18) &lt;/P&gt;&lt;P&gt;-Call the interface at the appropriate point in application program&lt;/P&gt;&lt;P&gt;-Customers can then select the add-in and implement it according to their needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let&amp;#146;s plan a simple task:&lt;/P&gt;&lt;P&gt;We want to convert strings in your application program is a specific way through Business Add-Ins technique&lt;/P&gt;&lt;P&gt;As the application developer, first task is to define an enhancement consisting of an interface &amp;amp; a method with a changing parameter to transfer value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Tools -&amp;gt;ABAP Workbench -&amp;gt; Utilities -&amp;gt; Business Add-Ins (transaction SE18) from the SAP menu&lt;/P&gt;&lt;P&gt;Create a new Business Add-In containing a maximum of 20 characters and move to Interface Tab&lt;/P&gt;&lt;P&gt;Name of the interface is proposed by the system but may be changed &lt;/P&gt;&lt;P&gt;Save and double-click on the interface name to add a method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System branches to the Class Builder&lt;/P&gt;&lt;P&gt;Assign a method to the interface (default is Instance Method)&lt;/P&gt;&lt;P&gt;Add a parameter&lt;/P&gt;&lt;P&gt;Save and Activate&lt;/P&gt;&lt;P&gt;Definition screen(SE18) will now contain the method assigned to the interface&lt;/P&gt;&lt;P&gt;Documentation may be created to describe the intended functionality of this Add-Ins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAdi Implementation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Workbench -&amp;gt;Utilities -&amp;gt; Business Add-Ins (transaction SE19) &lt;/P&gt;&lt;P&gt;Find the suitable Business Add-Ins present in system (Use IMG or Component hierarchy)&lt;/P&gt;&lt;P&gt;Use Add-Ins Documentation to understand functionality &amp;amp; to decide&lt;/P&gt;&lt;P&gt;Implement the Add-Ins &lt;/P&gt;&lt;P&gt;-a class is created with the same interface &lt;/P&gt;&lt;P&gt;-Finalize coding for the method&lt;/P&gt;&lt;P&gt;Implementations are discrete transport objects and lie within the namespace of the person or organization implementing them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work on Simple Badi project &amp;#150; Continued&amp;#133;&lt;/P&gt;&lt;P&gt;Already structure of the interface defined &lt;/P&gt;&lt;P&gt;In order to create an implementation for the text conversion example, the add-in (in this case, the interface's method) needs to be filled with logic that converts the string. This logic will be run through every time the add-in is called from the application program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose ABAP Workbench -&amp;gt;Utilities -&amp;gt; Business Add-Ins (transaction SE19) &lt;/P&gt;&lt;P&gt;Create a new implementation and select the appropriate definition in the dialog box&lt;/P&gt;&lt;P&gt;Add a short text and move to Interface tab&lt;/P&gt;&lt;P&gt;Save&lt;/P&gt;&lt;P&gt;Double-click the method name when the system will take you to the code window for the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert the desired source code for the implementation between the method if_ex_businessaddin~method. and endmethod. statements automatically provided to you by the system. &lt;/P&gt;&lt;P&gt;Save and return to the Change Implementation screen&lt;/P&gt;&lt;P&gt;On Activation, this implementation may be executed from the application program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code to call Add-In from ABAP Program&lt;/P&gt;&lt;P&gt;To call static method of a global class directly, class &amp;#133; definition load statement is needed&lt;/P&gt;&lt;P&gt;Instance of the Adapter class is created and its method is executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If enhancement needs to be different based on some parameter (e.g. country-specific or company-code specific), separate implementation of the same Add-In can be created and activated&lt;/P&gt;&lt;P&gt;At run time, the specific implementation will be execute&lt;/P&gt;&lt;P&gt;Possible through Filter-Dependent Badi&lt;/P&gt;&lt;P&gt;How it works&lt;/P&gt;&lt;P&gt;-Switch on Filter-dependency while defining the interface&lt;/P&gt;&lt;P&gt;-Select a suitable filter element&lt;/P&gt;&lt;P&gt;-All methods created in the interface will have filter 'FLT_VAL' as one import parameter&lt;/P&gt;&lt;P&gt;-Application program provides the filter value to the enhancement method&lt;/P&gt;&lt;P&gt;-The method then selects the active implementation for that value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What qualifies as a Filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Data element&lt;/P&gt;&lt;P&gt;Underlying domain may contain a maximum of 30 characters and must be of Character type&lt;/P&gt;&lt;P&gt;The data element must &lt;/P&gt;&lt;P&gt;-Either have a search help with a search help parameter of the same type as the data element and this parameter must serve as both the import and export parameter or&lt;/P&gt;&lt;P&gt;-the element's domain must have fixed domain values or a value table containing a column with the same type as the data element&lt;/P&gt;&lt;P&gt;Custom data element with the criteria may also be used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing a Filter-Dependent Business Add-In&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement the Add-In for each relevant filter value&lt;/P&gt;&lt;P&gt;However, multiple filter values may use the same implementation&lt;/P&gt;&lt;P&gt;Enter a characteristic filter value for the implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling a Filter-Dependent Business Add-In &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same as before&lt;/P&gt;&lt;P&gt;Pass the filter value as export parameter to the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAdi &amp;#150; some useful information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be more than one implementations of the same BADI definition, and in that case only the active implementations will be executed&lt;/P&gt;&lt;P&gt;You can activate or de-activate any of the implementations after creation&lt;/P&gt;&lt;P&gt;Enhancement, interface, and associated classes generated all lie in the appropriate application development namespace&lt;/P&gt;&lt;P&gt;Business Add-In implementations lie in the respective namespaces of the people who created them&lt;/P&gt;&lt;P&gt;Changes made to the interface and changes made to the Business-Add-In definition are always incompatible&lt;/P&gt;&lt;P&gt;-If implementations already exist for a Business-Add-In definition, they are invalidated if you make changes to the interface. This means that their syntax is no longer correct. No statements can be given on the runtime behavior. Avoid making changes to the interface or the Business-Add-In definition after the transport has taken place. &lt;/P&gt;&lt;P&gt;-If changes to the interface are inevitable, navigate to the Class Builder for all implementing classes and clean up the method includes of these classes (Utilities &amp;gt; Clean up &amp;gt; Method includes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward point If it is useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Poli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 13:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896044#M680815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: creatign a custom badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896045#M680816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afzal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link to create your own BADI.&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 14:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896045#M680816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T14:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: creatign a custom badi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896046#M680817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 04:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creatign-a-custom-badi/m-p/2896046#M680817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T04:07:13Z</dc:date>
    </item>
  </channel>
</rss>

