<?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: CAST_ERROR raised in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-error-raised/m-p/2703547#M626178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BADI Copying is not recommonded (eventhough we can copy them). When a BADI has been implemented there would be a class associated with that and when the instance are being fetched there will be casting that would be done. To make sure just try to debug an implemented BADI at the call of it: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_exithandler=&amp;gt;get_instance. This causes the casting problem. But i really cannot determine now how to overcome this error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 12:46:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T12:46:58Z</dc:date>
    <item>
      <title>CAST_ERROR raised</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-error-raised/m-p/2703546#M626177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to add new columns to a standard HR appraisalls report I have copied necessary functions, packages and BADIs to local objects. When I call my copy I receive the error 'CAST_ERROR' during a class call of CL_EXITHANDLER================CP. Is it possible that I left something not copied or is there something wrong when calling the local copy of BADIs. The original program is RHHAP_APP_DOCUMENT_SEARCH_PA called by transaction PHAP_SEARCH_PA; these are copied to local namespace. Also the functions in this program are copied to local objects. It seems that the program still calls the original BADI!!  The called class is CL_EXITHANDLER and method is GET_INSTANCE. What should I check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-error-raised/m-p/2703546#M626177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: CAST_ERROR raised</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cast-error-raised/m-p/2703547#M626178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BADI Copying is not recommonded (eventhough we can copy them). When a BADI has been implemented there would be a class associated with that and when the instance are being fetched there will be casting that would be done. To make sure just try to debug an implemented BADI at the call of it: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_exithandler=&amp;gt;get_instance. This causes the casting problem. But i really cannot determine now how to overcome this error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cast-error-raised/m-p/2703547#M626178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:46:58Z</dc:date>
    </item>
  </channel>
</rss>

