Quantcast
Channel: SCN: Message List - ABAP Objects
Viewing all articles
Browse latest Browse all 159

Re: How to use Widening Cast?

$
0
0

Hi Adam.

 

Method get_assignment_collection returns instance of CL_CRM_MKTGS_ASG_COLLECTION

 

Theclass hierarchyis:

ZCL_CRM_MKTPL_CPG_FUSG_COLL      inherits from  CL_CRM_MKTPL_CPG_FUSG_COLL

CL_CRM_MKTPL_CPG_FUSG_COLL        inherits  from CL_CRM_MKTPL_FUSG_COLL

CL_CRM_MKTPL_FUSG_COLL                 inherits from CL_CRM_MKTPL_ASG_RT_COLLECTION

CL_CRM_MKTPL_ASG_RT_COLLECTION inherits from CL_CRM_MKTPL_ASG_COLLECTION <--result of get_assignment_collection

 

I did a copy of CL_CRM_MKTPL_CPG_FUSG_COLL and i get same error:

  lr_zfuh_coll ?= ir_mktproject->get_assignment_collection( cl_crm_mktpl_constants=>asg_type_fusg ).

 

Regards

 

Ty Adam.


Viewing all articles
Browse latest Browse all 159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>