<?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: simple badi application program problem pls solve in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575070#M1271579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to use the active badi implemetation in you application program you have to create the reference variable and pass it to &lt;STRONG&gt;cl_exithandler =&amp;gt; get_instance&lt;/STRONG&gt;. This will check that whether an active implemetation is present or not. If it is present then you will call the method &lt;STRONG&gt;summation&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 May 2009 07:11:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-10T07:11:17Z</dc:date>
    <item>
      <title>simple badi application program problem pls solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575069#M1271578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am new to badi, so gurus please help me in this regard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                     in a badi application program &lt;/P&gt;&lt;P&gt;           eg:   i am giving some lines of the application codewhich i find  difficult to understand.&lt;/P&gt;&lt;P&gt;           -&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;          class cl_exithandler definition load.   &lt;/P&gt;&lt;P&gt;         data: exit type ref to zif_ex_badi_07.    "zif_ex_badi_07 is the interface created during                badi definition&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;          start-of-selection.&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;call method cl_exithandler =&amp;gt; get_instance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;changing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;instance = exit.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method  exit -&amp;gt; summation       " summation is the method name in the badi interface.&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;              - - - - - -  -       -&lt;/P&gt;&lt;HR originaltext="---------------------" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------" /&gt;&lt;P&gt;             &lt;STRONG&gt;questions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1)  why are we using the &lt;STRONG&gt;class cl_exithandler&lt;/STRONG&gt; here?does it store all the badi so it is used ?&lt;/P&gt;&lt;P&gt;    what is the exact &lt;STRONG&gt;use of interface&lt;/STRONG&gt; here.?&lt;/P&gt;&lt;P&gt;2) why do we need to create &lt;STRONG&gt;interface reference variables&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;2)why are we using &lt;STRONG&gt;cl_exithandler =&amp;gt; get_instance&lt;/STRONG&gt;   and passing the interface reference variable in changing parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while badi creation (se18)  and implementation we get an adapter class (system generated) and also an interface name. then we specify the method parameters and the code. upto this it is clear. but please solve my questions  regarding the application program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 04:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575069#M1271578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T04:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: simple badi application program problem pls solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575070#M1271579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to use the active badi implemetation in you application program you have to create the reference variable and pass it to &lt;STRONG&gt;cl_exithandler =&amp;gt; get_instance&lt;/STRONG&gt;. This will check that whether an active implemetation is present or not. If it is present then you will call the method &lt;STRONG&gt;summation&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2009 07:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575070#M1271579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-10T07:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: simple badi application program problem pls solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575071#M1271580</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;What are you writting you Application program for, is it to find the BADI for the Transactions?&lt;/P&gt;&lt;P&gt;Here are my answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1) why are we using the class cl_exithandler here?does it store all the badi so it is used ?
what is the exact use of interface here.?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;First thing this is all OO Programming. cl_exithandler Interface does not store any BADIs in it, &lt;/P&gt;&lt;P&gt;In fact as per OO defination class is just a structure and can not store anything. &lt;/P&gt;&lt;P&gt;Method get_instance gets called whenever we perform any transaction to find and trigger the BADI. &lt;/P&gt;&lt;P&gt;so you can say that this method has a code which finds BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;2) why do we need to create *interface reference variables*?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To use the interface methods and variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;3)why are we using cl_exithandler =&amp;gt; get_instance and passing 
the interface reference variable in changing parameter?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To get the BADi Name and call BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will have more questions, but try understand it conceptually before writting &lt;/P&gt;&lt;P&gt;it any application program/s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shital&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2009 08:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575071#M1271580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-10T08:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: simple badi application program problem pls solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575072#M1271581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx buddy for ur timely response, but i still have some doubts. plz help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the sap definition its given that &lt;/P&gt;&lt;P&gt;" by &lt;STRONG&gt;INSTANTIATING  the adapter class in the application program, the corresponding methods can be used.":&lt;/STRONG&gt;  what is meant by instantiating? plz explain with an example.  thanks in advance. pls give me a link for the OO abap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 01:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575072#M1271581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T01:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: simple badi application program problem pls solve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575073#M1271582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please read the following link.&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_erp60_sp/helpdata/EN/ce/b518b6513611d194a50000e8353423/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 11:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-badi-application-program-problem-pls-solve/m-p/5575073#M1271582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T11:53:49Z</dc:date>
    </item>
  </channel>
</rss>

