Skip to Content
author's profile photo Former Member
Former Member

Error while trying to enhance component IUICOBJD

Hi All,

I have created enhancement for component u201CIUICOBJDu201D through the wizard, which created subsequent implementation classes u201CZL_IUICOBJD_CONNECTIONOBJ_IMPLu201D and u201CZL_IUICOBJD_CONNECTIONOBJ_CTXu201D and then I enhanced context node u201CCONNECTIONOBJECTu201D and the wizard created implementation class u201CZL_IUICOBJD_CONNECTIONOBJ_CN00u201D and this is all done through the wizard using the standard procedure for enhancing the views and context nodes. but while I am trying to test it using CRM_UI in the browser, the view is producing an error dump,error description is as follows:

"CX_SY_MOVE_CAST_ERROR - Source type \CLASS=CL_IUICOBJD_CONNECTIONOBJ_CTXT is not compatible, for the purposes of assignment, with target type \CLASS=ZL_IUICOBJD_CONNECTIONOBJ_CTXT"

While I have not changed the implementation classes created by wizard in anyway, even before adding any custom code or redefining any method, it is throwing this error while all of these class have been created by following the standard way of enhancing components & context nodes.

I'll appriciate if anyone can provide a solution or suggestion for this.

Regards,

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 19, 2011 at 10:45 PM

    Please check your enhancement set where you have enhanced your component.

    Also check the enhancement set is assigned to the client which you are testing or not.

    For checking enhancement set and client assignment, go to below table.

    BSPWD_EHSET_ASGN

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2011 at 06:57 AM

    Hi Athar,

    Try skipping the following two lines in the debugger and check whether you still get the dump.

    me->context_node_name = 'CONNECTIONOBJECT'.

    super->wd_create_context( ).

    In cases where I have enhanced my view, the code added by the wizard in the wd_create_context is the following:

    method WD_CREATE_CONTEXT.

    • create the context

    context = cl_bsp_wd_context=>get_instance(

    iv_controller = me

    iv_type = 'Z******_CTXT' ).

    typed_context ?= context.

    • Added by wizard

    ztyped_context ?= context.

    endmethod.

    Perhaps the super call overwrites the instance present in "context".

    Regards,

    Sarat

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 17, 2011 at 01:38 PM

    Hi Athar,

    I'm having the same issue as yours. Have you been able to find a solution?

    The weird part is that if i do the same steps on another component, it works fine.

    Regards,

    Indradeo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.