Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

'lv_zcl_xml' is not convertable to type 'ls_obj_ref-prt'

Former Member
0 Kudos
67

Hi all,

DATA: ls_obj_ref TYPE ty_obj_ref ,

lv_zcl_xml TYPE REF TO zcl_xml_local.

ls_obj_ref-prt = lv_zcl_xml.

where zcl_xml_local is class.

I am new to oops concept ... can anyone tell me what is wrong in this case ?

it is showing error saying that 'lv_zcl_xml' is not convertable to type 'ls_obj_ref-prt'.

thanks in advance.....

1 REPLY 1

Former Member
0 Kudos
50

data?:lv_zcl_xml TYPE REF TO zcl_xml_local.

ls_obj_ref-prt ?= lv_zcl_xml. provided ls_obj_ref-prt also is of type zcl_xml_local.