<?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: Badis in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680574#M299981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For viewing the standard BADIs in the system, you can go to SE18 transaction. if already a BADI is implemented in some transaction, you can go and view it in SE19 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to enhance a program, a Business Add-In must first be defined. Application developers create an interface for the add-in. Enhancement management takes this interface and generates an adapter class for implementing it, thus opening a path for implementations created by partners or customers. Your 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;&lt;/P&gt;&lt;P&gt;Customers can find the enhancements present in their system in the IMG and in the component hierarchy. Whenever they want to use a Business Add-In, they must create their own implementation of the add-in. Customers must first implement methods and user interface enhancements, and then activate their implementations of the enhancement. The enhancement's active components are then called at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, a Business Add-In contains an interface and other additional components such as function codes for menu enhancements. In some cases, Business Add-Ins also include enhancements for screens. The enhancement, interface, and associated classes generated all lie in the appropriate application development namespace. Business Add-In implementations lie in the respective namespaces of the people who created them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g I am giving you a BADI example which was written for transaction VF31 to control invoice printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the std implementation is 'BADI_INV_PRTDATA' - view it in SE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE19 transaction, create your own BADI in Z_....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will ask for an definition name and you can give the 'BADI_INV_PRTDATA in it. Activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go into the interface tab, there are methods available like: &lt;/P&gt;&lt;P&gt;BADI_INV_PRTDATA where you can write the logic in the methos as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD IF_EX_BADI_INV_PRTDATA~BADI_INV_PRTDATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Requirement 1:&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;**BADI activated in order check if the excise invoice has been created for the billing document&lt;/P&gt;&lt;P&gt;**selected.If the excise invoice is not created for that billing document ,and the subsequent&lt;/P&gt;&lt;P&gt;**billing outputs are not displayed or printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Requirement 2:&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;**For billing type ZFF2,ZRF2,ZDF2 there are instances where excise invoice for the&lt;/P&gt;&lt;P&gt;**billing document is zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TYPE-POOLS: slis.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:  IT_INVOICE  TYPE LBBIL_INVOICE,&lt;/P&gt;&lt;P&gt;         W_EXNUM     TYPE J_1IEXCHDR-EXNUM,&lt;/P&gt;&lt;P&gt;         W_EXNUM1    TYPE J_1IEXCHDR-EXNUM,&lt;/P&gt;&lt;P&gt;         IT_VBRK     TYPE LBBIL_OUTP_DBDATA-VBRK,&lt;/P&gt;&lt;P&gt;         LS_FINCHDEL TYPE FINCHDEL,&lt;/P&gt;&lt;P&gt;         W_EXBED     TYPE J_1IEXCDTL-EXBED,&lt;/P&gt;&lt;P&gt;         W_FKART TYPE VBRK-FKART,&lt;/P&gt;&lt;P&gt;         W_DELIVERY  TYPE VBFA-VBELV,&lt;/P&gt;&lt;P&gt;         W_DEPDEL    TYPE J_1IRG23D-VBELN,&lt;/P&gt;&lt;P&gt;         W_PLANT     TYPE VBRP-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;FS_VBRK&amp;gt; TYPE VBRK ,&amp;lt;FS_VBRK1&amp;gt; TYPE VBRK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IS_BIL_OUTP_DBDATA-VBRK ASSIGNING &amp;lt;FS_VBRK&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE WERKS INTO W_PLANT FROM VBRP WHERE VBELN EQ &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF W_PLANT EQ '1000' OR W_PLANT EQ '2000' OR W_PLANT EQ '3000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR W_EXNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE EXNUM INTO W_EXNUM FROM J_1IEXCHDR&lt;/P&gt;&lt;P&gt;    WHERE RDOC = &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZFF2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZRF2' )&lt;/P&gt;&lt;P&gt;       OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZSTX' ) OR ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZGF2' )&lt;/P&gt;&lt;P&gt;       OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZDX2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZESX' ).&lt;/P&gt;&lt;P&gt;        MESSAGE E000(ZSFL) WITH 'No excise Invoice created for ' &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZFF2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZRF2' )&lt;/P&gt;&lt;P&gt;      OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZSTX' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: W_EXNUM1,W_EXBED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE EXNUM EXBED INTO (W_EXNUM1, W_EXBED)  FROM J_1IEXCDTL&lt;/P&gt;&lt;P&gt;                                WHERE RDOC2 = &amp;lt;FS_VBRK&amp;gt;-VBELN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF W_EXBED = 0 .&lt;/P&gt;&lt;P&gt;            MESSAGE E017(ZUSER_EXIT) WITH W_EXNUM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;FS_VBRK&amp;gt;-FKART EQ 'ZSTX' AND ( W_PLANT EQ '8000' OR W_PLANT EQ '8100' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELV INTO W_DELIVERY FROM VBFA WHERE VBELN EQ &amp;lt;FS_VBRK&amp;gt;-VBELN AND VBTYP_V = 'J' AND VBTYP_N = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF W_DELIVERY NE SPACE.&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELN INTO W_DEPDEL FROM J_1IRG23D WHERE VBELN EQ W_DELIVERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E022(ZUSER_EXIT).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Nov 2006 12:25:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-23T12:25:01Z</dc:date>
    <item>
      <title>Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680570#M299977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;            i have a assignment in BADIs and iam just a beginner to it.&lt;/P&gt;&lt;P&gt;Can any one post me basic BADIs document to me, with examples and relevant documentation, so that i can practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;baleeq ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680570#M299977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680571#M299978</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 these links for info about 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="2097977"&gt;&lt;/A&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="2097977"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/papers/sugi30/SAP.ppt" target="test_blank"&gt;http://support.sas.com/rnd/papers/sugi30/SAP.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.aol.com/_ht_a/skarkada/sap/" target="test_blank"&gt;http://members.aol.com/_ht_a/skarkada/sap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ct-software.com/reportpool_frame.htm" target="test_blank"&gt;http://www.ct-software.com/reportpool_frame.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saphelp.com/SAP_Technical.htm" target="test_blank"&gt;http://www.saphelp.com/SAP_Technical.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kabai.com/abaps/q.htm" target="test_blank"&gt;http://www.kabai.com/abaps/q.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.guidancetech.com/people/holland/sap/abap/" target="test_blank"&gt;http://www.guidancetech.com/people/holland/sap/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/download_abap_programs.htm" target="test_blank"&gt;http://www.planetsap.com/download_abap_programs.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/web/BAdI" target="test_blank"&gt;http://www.esnips.com/web/BAdI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/badi.html" target="test_blank"&gt;http://www.allsaplinks.com/badi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="143565"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680571#M299978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680572#M299979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u'll get from this&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/enhance/enhancehome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/enhance/enhancehome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points expecting in the case of helpful.&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680572#M299979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680573#M299980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check any fo the below links. this will def help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/badi.html" target="test_blank"&gt;http://www.allsaplinks.com/badi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also download this file....&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.savefile.com/files.php?fid=8913854" target="test_blank"&gt;http://www.savefile.com/files.php?fid=8913854&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other tutorials on this site...&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapbrain.com/Tutorials/tuto_download.html" target="test_blank"&gt;http://sapbrain.com/Tutorials/tuto_download.html&lt;/A&gt;&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="816639"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI Link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/papers/sugi30/SAP.ppt" target="test_blank"&gt;http://support.sas.com/rnd/papers/sugi30/SAP.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.aol.com/_ht_a/skarkada/sap/" target="test_blank"&gt;http://members.aol.com/_ht_a/skarkada/sap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ct-software.com/reportpool_frame.htm" target="test_blank"&gt;http://www.ct-software.com/reportpool_frame.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saphelp.com/SAP_Technical.htm" target="test_blank"&gt;http://www.saphelp.com/SAP_Technical.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kabai.com/abaps/q.htm" target="test_blank"&gt;http://www.kabai.com/abaps/q.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.guidancetech.com/people/holland/sap/abap/" target="test_blank"&gt;http://www.guidancetech.com/people/holland/sap/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/download_abap_programs.htm" target="test_blank"&gt;http://www.planetsap.com/download_abap_programs.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework&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;anver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680573#M299980</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-23T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Badis</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680574#M299981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Add-Ins are a new SAP enhancement technique based on ABAP Objects. They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For viewing the standard BADIs in the system, you can go to SE18 transaction. if already a BADI is implemented in some transaction, you can go and view it in SE19 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to enhance a program, a Business Add-In must first be defined. Application developers create an interface for the add-in. Enhancement management takes this interface and generates an adapter class for implementing it, thus opening a path for implementations created by partners or customers. Your 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;&lt;/P&gt;&lt;P&gt;Customers can find the enhancements present in their system in the IMG and in the component hierarchy. Whenever they want to use a Business Add-In, they must create their own implementation of the add-in. Customers must first implement methods and user interface enhancements, and then activate their implementations of the enhancement. The enhancement's active components are then called at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally, a Business Add-In contains an interface and other additional components such as function codes for menu enhancements. In some cases, Business Add-Ins also include enhancements for screens. The enhancement, interface, and associated classes generated all lie in the appropriate application development namespace. Business Add-In implementations lie in the respective namespaces of the people who created them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g I am giving you a BADI example which was written for transaction VF31 to control invoice printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of the std implementation is 'BADI_INV_PRTDATA' - view it in SE19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE19 transaction, create your own BADI in Z_....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will ask for an definition name and you can give the 'BADI_INV_PRTDATA in it. Activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go into the interface tab, there are methods available like: &lt;/P&gt;&lt;P&gt;BADI_INV_PRTDATA where you can write the logic in the methos as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD IF_EX_BADI_INV_PRTDATA~BADI_INV_PRTDATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Requirement 1:&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;**BADI activated in order check if the excise invoice has been created for the billing document&lt;/P&gt;&lt;P&gt;**selected.If the excise invoice is not created for that billing document ,and the subsequent&lt;/P&gt;&lt;P&gt;**billing outputs are not displayed or printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Requirement 2:&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;******************&lt;/P&gt;&lt;P&gt;**For billing type ZFF2,ZRF2,ZDF2 there are instances where excise invoice for the&lt;/P&gt;&lt;P&gt;**billing document is zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TYPE-POOLS: slis.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:  IT_INVOICE  TYPE LBBIL_INVOICE,&lt;/P&gt;&lt;P&gt;         W_EXNUM     TYPE J_1IEXCHDR-EXNUM,&lt;/P&gt;&lt;P&gt;         W_EXNUM1    TYPE J_1IEXCHDR-EXNUM,&lt;/P&gt;&lt;P&gt;         IT_VBRK     TYPE LBBIL_OUTP_DBDATA-VBRK,&lt;/P&gt;&lt;P&gt;         LS_FINCHDEL TYPE FINCHDEL,&lt;/P&gt;&lt;P&gt;         W_EXBED     TYPE J_1IEXCDTL-EXBED,&lt;/P&gt;&lt;P&gt;         W_FKART TYPE VBRK-FKART,&lt;/P&gt;&lt;P&gt;         W_DELIVERY  TYPE VBFA-VBELV,&lt;/P&gt;&lt;P&gt;         W_DEPDEL    TYPE J_1IRG23D-VBELN,&lt;/P&gt;&lt;P&gt;         W_PLANT     TYPE VBRP-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;FS_VBRK&amp;gt; TYPE VBRK ,&amp;lt;FS_VBRK1&amp;gt; TYPE VBRK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IS_BIL_OUTP_DBDATA-VBRK ASSIGNING &amp;lt;FS_VBRK&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE WERKS INTO W_PLANT FROM VBRP WHERE VBELN EQ &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF W_PLANT EQ '1000' OR W_PLANT EQ '2000' OR W_PLANT EQ '3000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR W_EXNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE EXNUM INTO W_EXNUM FROM J_1IEXCHDR&lt;/P&gt;&lt;P&gt;    WHERE RDOC = &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZFF2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZRF2' )&lt;/P&gt;&lt;P&gt;       OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZSTX' ) OR ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZGF2' )&lt;/P&gt;&lt;P&gt;       OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZDX2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZESX' ).&lt;/P&gt;&lt;P&gt;        MESSAGE E000(ZSFL) WITH 'No excise Invoice created for ' &amp;lt;FS_VBRK&amp;gt;-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZFF2' )  OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZRF2' )&lt;/P&gt;&lt;P&gt;      OR  ( &amp;lt;FS_VBRK&amp;gt;-FKART = 'ZSTX' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: W_EXNUM1,W_EXBED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE EXNUM EXBED INTO (W_EXNUM1, W_EXBED)  FROM J_1IEXCDTL&lt;/P&gt;&lt;P&gt;                                WHERE RDOC2 = &amp;lt;FS_VBRK&amp;gt;-VBELN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF W_EXBED = 0 .&lt;/P&gt;&lt;P&gt;            MESSAGE E017(ZUSER_EXIT) WITH W_EXNUM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF &amp;lt;FS_VBRK&amp;gt;-FKART EQ 'ZSTX' AND ( W_PLANT EQ '8000' OR W_PLANT EQ '8100' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELV INTO W_DELIVERY FROM VBFA WHERE VBELN EQ &amp;lt;FS_VBRK&amp;gt;-VBELN AND VBTYP_V = 'J' AND VBTYP_N = 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF W_DELIVERY NE SPACE.&lt;/P&gt;&lt;P&gt;SELECT SINGLE VBELN INTO W_DEPDEL FROM J_1IRG23D WHERE VBELN EQ W_DELIVERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE E022(ZUSER_EXIT).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 12:25:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/badis/m-p/1680574#M299981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T12:25:01Z</dc:date>
    </item>
  </channel>
</rss>

