Skip to Content
0
Former Member
Jul 04, 2016 at 05:30 PM

How to get the parent of cl_gui_html_viewer object?

73 Views

Hey all,

I want to get the parent of my cl_gui_html_viewer object. When I debug it I can clearly see that its parent type is a reference to cl_gui_simple_container but when I write the following code:


DATA: lo_simple_container TYPE REF TO cl_gui_simple_container.

lo_simple_container = lo_html_header->parent.

and want to active it. It gives me the following error:

The type of ''LO_HTML_HEADER->PARENT'' cannot be converted to the type of ''LO_SIMPLE_CONTAINER''

but why if I am using the right reference type? Can somebody tell me how can I get the parent of my object lo_html_header?
Thank you.

Regards,
RB