<?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: RAISE EXCEPTON - cast error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460804#M1553909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ashishtayade ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if its a field then you need use type ref &lt;STRONG&gt;CL_ABAP_ELEMDESCR&lt;/STRONG&gt; , or if its structure then u have to use &lt;STRONG&gt;CL_ABAP_TYPEDESCR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info .check the documentation of each classes..&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2011 03:39:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-07T03:39:44Z</dc:date>
    <item>
      <title>RAISE EXCEPTON - cast error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460800#M1553905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while im posting the MIRO transaction, facing this run time error.&lt;/P&gt;&lt;P&gt;                                                                                A RAISE statement in the program "CL_EXITHANDLER================CP " raised the         &lt;/P&gt;&lt;P&gt; exception                                                                              &lt;/P&gt;&lt;P&gt;condition "CAST_ERROR".                                                                 &lt;/P&gt;&lt;P&gt;Since the exception was not intercepted by a superior program                           &lt;/P&gt;&lt;P&gt;in the hierarchy, processing was terminated.                                            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me the solution to move furthur..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460800#M1553905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: RAISE EXCEPTON - cast error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460801#M1553906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Poster. can you do a extended syntax check of your implementation . It will give you a fair idea why this rerror is occurring ? The possible cause of error is that type of refernces of sub class and super class are not compatible . Please make sure before the assignment that refrences are compatible to each other and it is possible to assign the refrences in the hierchy provided  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460801#M1553906</guid>
      <dc:creator>AnjaneyaBhardwaj</dc:creator>
      <dc:date>2010-12-08T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: RAISE EXCEPTON - cast error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460802#M1553907</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 am too facing similar kind of error, its from standard product Doculink for SAP. &lt;/P&gt;&lt;P&gt;Its working fine in DEV but after transport to Unit Test Client its giving error.&lt;/P&gt;&lt;P&gt;error at  - &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   rtti_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( pi_object ).&lt;/P&gt;&lt;P&gt;please advice me if anyone has encountered this earlier...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Runtime Errors&lt;/STRONG&gt;         MOVE_CAST_ERROR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Except.&lt;/STRONG&gt;                CX_SY_MOVE_CAST_ERROR&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date and Time&lt;/STRONG&gt;          07.10.2011 09:05:47&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Short text&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     Dynamic type conflict when assigning references&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;What happened?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     Error in the ABAP Application Program-&lt;/P&gt;&lt;P&gt;     The current ABAP program "/IXOS/DC_RP1600000002" had to be terminated because&lt;/P&gt;&lt;P&gt;      it has&lt;/P&gt;&lt;P&gt;     come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Error analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;     The exception, which is assigned to class 'CX_SY_MOVE_CAST_ERROR', was not&lt;/P&gt;&lt;P&gt;      caught in&lt;/P&gt;&lt;P&gt;     procedure "SELCONDS" "(FORM)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;     Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;     exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;     The reason for the exception is:&lt;/P&gt;&lt;P&gt;     It was tried to assign a reference to a rereference variable using the&lt;/P&gt;&lt;P&gt;     'CAST' operation ('?=' or 'MOVE ?TO').&lt;/P&gt;&lt;P&gt;     However, the current content of the source variable does not fit into&lt;/P&gt;&lt;P&gt;     the target variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     source type: "\CLASS=CL_ABAP_ELEMDESCR"&lt;/P&gt;&lt;P&gt;     target type: "\CLASS=CL_ABAP_STRUCTDESCR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Missing RAISING Clause in Interface&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     Program                                 /IXOS/DC_RP1600000002&lt;/P&gt;&lt;P&gt;     Include                                 /IXOS/DC_RP1600000002&lt;/P&gt;&lt;P&gt;     Row                                     2,249&lt;/P&gt;&lt;P&gt;     Module type                             (FORM)&lt;/P&gt;&lt;P&gt;     Module Name                             SELCONDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trigger Location of Exception&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    Program                                 /IXOS/DC_RP1600000002&lt;/P&gt;&lt;P&gt;    Include                                 /IXOS/DC_RP1600000002&lt;/P&gt;&lt;P&gt;    Row                                     2,261&lt;/P&gt;&lt;P&gt;    Module type                             (FORM)&lt;/P&gt;&lt;P&gt;    Module Name                             SELCONDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source Code Extract&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2231     WHEN 'O'.&lt;/P&gt;&lt;P&gt; 2232 O_ZLAWFBOLSTZLAWFTLIST = p_key .&lt;/P&gt;&lt;P&gt; 2233 ASSIGN O_ZLAWFBOLSTZLAWFTLIST TO &amp;lt;key_structure&amp;gt;.&lt;/P&gt;&lt;P&gt; 2234     WHEN 'C'.&lt;/P&gt;&lt;P&gt; 2235 C_ZLAWFTLIST = p_key .&lt;/P&gt;&lt;P&gt; 2236 ASSIGN C_ZLAWFTLIST TO &amp;lt;key_structure&amp;gt;.&lt;/P&gt;&lt;P&gt; 2237   ENDCASE.&lt;/P&gt;&lt;P&gt; 2238&lt;/P&gt;&lt;P&gt; 2239 ENDCASE .&lt;/P&gt;&lt;P&gt; 2240&lt;/P&gt;&lt;P&gt; 2241 IF &amp;lt;key_structure&amp;gt; IS ASSIGNED.&lt;/P&gt;&lt;P&gt; 2242   perform selconds USING    &amp;lt;key_structure&amp;gt;&lt;/P&gt;&lt;P&gt; 2243                    CHANGING pct_selconds.&lt;/P&gt;&lt;P&gt; 2244 ENDIF.&lt;/P&gt;&lt;P&gt; 2245&lt;/P&gt;&lt;P&gt; 2246 ENDFORM.&lt;/P&gt;&lt;P&gt; 2247&lt;/P&gt;&lt;P&gt; 2248 * Subroutine to build selconds&lt;/P&gt;&lt;P&gt; 2249 FORM selconds&lt;/P&gt;&lt;P&gt; 2250      USING    pi_object    TYPE any&lt;/P&gt;&lt;P&gt; 2251      CHANGING pct_selconds TYPE tt_selconds.&lt;/P&gt;&lt;P&gt; 2252&lt;/P&gt;&lt;P&gt; 2253 * local data&lt;/P&gt;&lt;P&gt; 2254 DATA:&lt;/P&gt;&lt;P&gt; 2255   rtti_ref      TYPE REF TO cl_abap_structdescr,&lt;/P&gt;&lt;P&gt; 2256   ls_selconds   TYPE t_selconds.&lt;/P&gt;&lt;P&gt; 2257   FIELD-SYMBOLS: &amp;lt;component&amp;gt; type any,&lt;/P&gt;&lt;P&gt; 2258                  &amp;lt;field&amp;gt;     type any,&lt;/P&gt;&lt;P&gt; 2259                  &amp;lt;value&amp;gt;     type any.&lt;/P&gt;&lt;P&gt; 2260&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   rtti_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( pi_object ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; 2262   LOOP AT rtti_ref-&amp;gt;components ASSIGNING &amp;lt;component&amp;gt;.&lt;/P&gt;&lt;P&gt; 2263   IF sy-tabix &amp;lt;&amp;gt; 1.&lt;/P&gt;&lt;P&gt; 2264     ls_selconds = 'AND'.&lt;/P&gt;&lt;P&gt; 2265     APPEND ls_selconds TO pct_selconds.&lt;/P&gt;&lt;P&gt; 2266   ENDIF.&lt;/P&gt;&lt;P&gt; 2267   ASSIGN COMPONENT 4 OF STRUCTURE &amp;lt;component&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt; 2268   ASSIGN COMPONENT &amp;lt;field&amp;gt; OF STRUCTURE pi_object TO &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;2269   ls_selconds = &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;2270   append ls_selconds to pct_selconds.&lt;/P&gt;&lt;P&gt;2271   ls_selconds = '=' .&lt;/P&gt;&lt;P&gt;2272   APPEND ls_selconds TO pct_selconds.&lt;/P&gt;&lt;P&gt;2273 * replace single quotes with two quotes&lt;/P&gt;&lt;P&gt;2274   IF &amp;lt;value&amp;gt; CA ''''.&lt;/P&gt;&lt;P&gt;2275     REPLACE ALL OCCURRENCES OF ''''&lt;/P&gt;&lt;P&gt;2276             IN &amp;lt;value&amp;gt; WITH ''''''.&lt;/P&gt;&lt;P&gt;2277   ENDIF.&lt;/P&gt;&lt;P&gt;2278   CONCATENATE '''' &amp;lt;value&amp;gt; '''' INTO ls_selc&lt;/P&gt;&lt;P&gt;2279   APPEND ls_selconds TO pct_selconds.&lt;/P&gt;&lt;P&gt;2280   ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 23:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460802#M1553907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: RAISE EXCEPTON - cast error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460803#M1553908</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;While posting any key fields are you missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 01:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460803#M1553908</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-10-07T01:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: RAISE EXCEPTON - cast error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460804#M1553909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ashishtayade ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if its a field then you need use type ref &lt;STRONG&gt;CL_ABAP_ELEMDESCR&lt;/STRONG&gt; , or if its structure then u have to use &lt;STRONG&gt;CL_ABAP_TYPEDESCR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more info .check the documentation of each classes..&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 03:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/raise-excepton-cast-error/m-p/7460804#M1553909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-07T03:39:44Z</dc:date>
    </item>
  </channel>
</rss>

