cancel
Showing results for 
Search instead for 
Did you mean: 

CX_SY_MOVE_CAST_ERROR error

Former Member
0 Kudos

Hi experts

I have a probwem with the standard CRM_IC component. am new to IC

When i click on the "inbox" link on the navigation bar, i get the below error

View AuiItems.htm Cannot Be Displayed

An exception has occurredException Class CX_SY_MOVE_CAST_ERROR

Text: Source type \CLASS=CL_CRM_IC_AUIITEMS_CN02 is not compatible, for the purposes of assignment, with target type \CLASS=ZCL_CRM_IC_AUIITEMS_CN02

Program: CL_BSP_PAGE_BASE==============CP

Include: CL_BSP_PAGE_BASE==============CM014

Source Text Row:

The search view is loaded propery ,but for items view i get the above error. How should i go about solving this issue.

Regards

Abishek

Accepted Solutions (1)

Accepted Solutions (1)

amarnath_kathi
Active Contributor
0 Kudos

Abishek,

It looks like an error after enhancement of CL_CRM_IC_AUIITEMS_CN02. Check out if there is a ZCL_CRM_IC_AUIITEMS_CN02 and if so its super class. If it does exist, the super class shoul be CL_CRM_IC_AUIITEMS_CN02

Former Member
0 Kudos

Hi Amar

I did check this out and the super class is correctly maintained as CL_CRM_IC_AUIITEMS_CN02 for ZCL_CRM_IC_AUIITEMS_CN02 .

Any other pointers?Where does this text message normally get populated??

Text: Source type \CLASS=CL_CRM_IC_AUIITEMS_CN02 is not compatible, for the purposes of assignment, with target type \CLASS=ZCL_CRM_IC_AUIITEMS_CN02

Thanks

Abishek

amarnath_kathi
Active Contributor
0 Kudos

The message emanates out of some inconsistency in enhancement. Check if the attribute in *CTXT class is of type ZCL_CRM_IC_AUIITEMS_CN02

prasenjit_sharma
Active Contributor
0 Kudos

Hi,

Take a look at the method CREATE_CONTEXT_NODES of class ZL_CRM_IC_AUIITEMS_CTXT.

Do you see a code like this:

* create context node
  model = owner->create_model(
      class_name     = 'CL_CRM_IC_AUIITEMS_CN02'
      model_id       = 'AuiItemTree' ).

or like this:

* create context node
  model = owner->create_model(
      class_name     = 'ZL_CRM_IC_AUIITEMS_CN02'
      model_id       = 'AuiItemTree' ).

Also, check the table BSPWDV_EHSET_ASG if it has your client and enhancement name maintained.

Regards

Prasenjit

Former Member
0 Kudos

Amar,

The attributes are the same in quality and dev env and this issue happens only in dev.

Prasenjit,

Yes in the class ZL_CRM_IC_AUIITEMS_CTXT, method CREATE_CONTEXT_NODES i have the foll impl.

*create context node

model = owner->create_model(

class_name = 'ZL_CRM_IC_AUIITEMS_CN02'

model_id = 'AuiItemTree' ).

Please note this is CRM 5.0(IC). the class ZCL_CRM_IC_AUIITEMS_CN02 is for one for the page attributes in the "view layout" part of the component Z_WW_CRM_IC(Z comoponent)

But for inbox we use the standard component CRM_IC whose page attribute class is CL_CRM_IC_AUIITEMS_CN02 .i am not sure why ZCL_CRM_IC_AUIITEMS_CN02 thrown an error here as we use the standard component CRM_IC.

Thanks

Abishek

amarnath_kathi
Active Contributor
0 Kudos

Abishek,

When you say 'z component', is it a copy or enhanced component? When we copy components, we generally encounter these errors of incompatibility.

Former Member
0 Kudos

Hi Amar

Am not sure whether it is copied or enhanced as it took it over jst now.it was already present. is there a way to know thisin crm 5.0

Thanks

Abishek

amarnath_kathi
Active Contributor
0 Kudos

Well, In CRM 7, this is how we check - In SM34, View cluster BSPWDVC_CMP_EXT, first select the enhancement set. Then in Enhancement definitions for that set, you will find the components enhanced. The BSP applications for the enhanced views are seen besides it. check for our component there.

Former Member
0 Kudos

I know this amar but unfortunately this is not there in CRM 5.0 :(.. am unaware of how the process in in crm5.0

Thanks

Abishek

Former Member
0 Kudos

Hi All,

I have another doub. Is there a way(any transaction) which would show me the code(the place) where this exception gets thrown. ST22 did not have any entries

Maybe some other transaction can help. Using that atleast i will be able to find the piece of code where this exception is being thrown..

Thanks

Abishek

amarnath_kathi
Active Contributor
0 Kudos

Check if you have a table BSPWDV_COMP_EXT?

Former Member
0 Kudos

Hi Amar

Even this is not there.. me thinking whether there is an enhanement set concept at all in crm 5.0?

Between i was able to solve the problem through the old fashioned way of through debuggin .. saw that the page context was referring to the standard class and not to the Z class for this view which has thrown up this problem. Nee to set this right and i guess the problem will be solved.

Thanks guys for all your inputs..

Thanks

Abishek

Answers (0)