<?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 Error while forming cl_exithandler=&amp;gt;get_instance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-forming-cl-exithandler-gt-get-instance/m-p/3563658#M857555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    I have created an enhancement spot ZMANAS_BADI_EN_SPOT and a badi diefinition ZMANAS_BADI_DEFN_1 (with multiple use flag enabled) under it. I am using the Z_IF_MANAS_BADI_DEFN_1 interface for this badi definition.&lt;/P&gt;&lt;P&gt;I have implemented the fall back class and 2 implementation also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to run the below code I am getting   &lt;STRONG&gt;data_incons_in_exit_managem&lt;/STRONG&gt; exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA exit TYPE REF TO z_if_manas_badi_defn_1.      "Interface reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_exithandler=&amp;gt;get_instance      "Factory method call&lt;/P&gt;&lt;P&gt;        EXPORTING                                                "Method&lt;/P&gt;&lt;P&gt;             exit_name   = 'ZMANAS_BADI_DEFN_1'&lt;/P&gt;&lt;P&gt;          null_instance_accepted = 'X'&lt;/P&gt;&lt;P&gt;        CHANGING instance = exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After debugging I got to know that there are no entried in the table &lt;STRONG&gt;sxs_attr&lt;/STRONG&gt; for this badi. So it is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried get badi command and it is working fine. So why is it not working with cl_exithandler=&amp;gt;get_instance method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one is better way ? cl_exithandler=&amp;gt;get_instance or get badi command ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information on this is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2008 21:53:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-15T21:53:31Z</dc:date>
    <item>
      <title>Error while forming cl_exithandler=&gt;get_instance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-forming-cl-exithandler-gt-get-instance/m-p/3563658#M857555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    I have created an enhancement spot ZMANAS_BADI_EN_SPOT and a badi diefinition ZMANAS_BADI_DEFN_1 (with multiple use flag enabled) under it. I am using the Z_IF_MANAS_BADI_DEFN_1 interface for this badi definition.&lt;/P&gt;&lt;P&gt;I have implemented the fall back class and 2 implementation also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I try to run the below code I am getting   &lt;STRONG&gt;data_incons_in_exit_managem&lt;/STRONG&gt; exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA exit TYPE REF TO z_if_manas_badi_defn_1.      "Interface reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_exithandler=&amp;gt;get_instance      "Factory method call&lt;/P&gt;&lt;P&gt;        EXPORTING                                                "Method&lt;/P&gt;&lt;P&gt;             exit_name   = 'ZMANAS_BADI_DEFN_1'&lt;/P&gt;&lt;P&gt;          null_instance_accepted = 'X'&lt;/P&gt;&lt;P&gt;        CHANGING instance = exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After debugging I got to know that there are no entried in the table &lt;STRONG&gt;sxs_attr&lt;/STRONG&gt; for this badi. So it is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried get badi command and it is working fine. So why is it not working with cl_exithandler=&amp;gt;get_instance method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which one is better way ? cl_exithandler=&amp;gt;get_instance or get badi command ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any information on this is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 21:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-forming-cl-exithandler-gt-get-instance/m-p/3563658#M857555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-15T21:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while forming cl_exithandler=&gt;get_instance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-forming-cl-exithandler-gt-get-instance/m-p/3563659#M857556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since BAdIs have become more and more important SAP has integrated the instantiation of BAdIs into the ABAP kernel with the statement &lt;STRONG&gt;GET BADI&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sooner or later all old-fashioned calls for getting BAdI instance (CL_EXITHANDLER) will disappear. Therefore, I recommend to use the more modern GET BADI statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 22:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-forming-cl-exithandler-gt-get-instance/m-p/3563659#M857556</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-03-15T22:00:32Z</dc:date>
    </item>
  </channel>
</rss>

