<?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: query regarding interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388826#M1404424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the basic feature of badis . All the implemntations of the badi are called when we call the method the interface using the BADI class(that gets created at the time of defining the BADI)..The order in which these implementations are called,  is a lso random .Also in this case the method should be static, other wise you cant call the same using the BADI Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra Prasanna Mohapatra on Dec 3, 2009 6:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 05:33:19 GMT</pubDate>
    <dc:creator>former_member195383</dc:creator>
    <dc:date>2009-12-03T05:33:19Z</dc:date>
    <item>
      <title>query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388823#M1404421</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;&lt;/P&gt;&lt;P&gt;I have one interface with method XYZ... i am implementing that method with the help of classes ZCL and ZCL1 ...suppose when i am implemetig interface with class ZCL then its output is 123 and with class ZCL1 output is 456 ...when i call the instance of that interface in report with the help of class method get_instance of class cl_exithandler and run the report i am getting output as 123456.... i want to know how both the instances of both classes are called when we call one interface?&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, 03 Dec 2009 04:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388823#M1404421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T04:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388824#M1404422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you call the method, both the implementations will get called . &lt;/P&gt;&lt;P&gt;To call a single implementation's method you have to use the filter criterias in&lt;/P&gt;&lt;P&gt;the badi, or you have write logic in the respective methods to suite your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 05:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388824#M1404422</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-12-03T05:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388825#M1404423</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;I agree with your single implementations method but when you call interface how 2 instances get called at a time for both the classes ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 05:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388825#M1404423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388826#M1404424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the basic feature of badis . All the implemntations of the badi are called when we call the method the interface using the BADI class(that gets created at the time of defining the BADI)..The order in which these implementations are called,  is a lso random .Also in this case the method should be static, other wise you cant call the same using the BADI Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rudra Prasanna Mohapatra on Dec 3, 2009 6:52 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 05:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388826#M1404424</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-12-03T05:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388827#M1404425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are calling the method using the class of badi and not using any implementations instance.&lt;/P&gt;&lt;P&gt;just like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ZCL_EX_BADI_SPFLI=&amp;gt;ZIF_EX_BADI_SPFLI~DESC&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_fld             = i_fld&lt;/P&gt;&lt;P&gt;        changING&lt;/P&gt;&lt;P&gt;          o_fld           = o_fld&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the method desc of all the implementations is called. If you want to call the method of only one implementation&lt;/P&gt;&lt;P&gt;then create an object type ref to the class of that implementation . That will call the method desc only once .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 05:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388827#M1404425</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-12-03T05:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388828#M1404426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right, i am calling the method of particular class as you described but i am calling interface method as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data exit_sub type ref to ZIF_EX_S_BADI_ADV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_exithandler=&amp;gt;get_instance&lt;/P&gt;&lt;P&gt;            changing instance = exit_sub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD exit_sub-&amp;gt;getpernr&lt;/P&gt;&lt;P&gt;       EXPORTING zpernr = itab-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the method of this interface is implemeted by two classes ...so when i call interface like this i get combined output of both the implementations ...so you mean to say that when i call any interface like this all its implementations get called for BAdI ??...if your answer is yes then its ok ...i have one more question regarding the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are not using BAdI and just implementing interface in our report then in that case also all the implementations of the interfaces will get called ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 06:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388828#M1404426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: query regarding interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388829#M1404427</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;When you are not creating BADI and just creating interface and then creating object in your program refering to the&lt;/P&gt;&lt;P&gt;interface , then also all the implemntationa are called. Beacuse the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_exithandler=&amp;gt;get_instance&lt;/P&gt;&lt;P&gt;changing instance = exit_sub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does a similar thing as creating the BADI class.. Check in debugging .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SUB contains the BADI class name(even though you have explicitly not created the Badi)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats why this case is similar to the one that I have described above and hence  all the implemntationa are called.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 06:17:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-interface/m-p/6388829#M1404427</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-12-03T06:17:53Z</dc:date>
    </item>
  </channel>
</rss>

