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: 

How to create instance for class.

former_member463678
Participant
0 Kudos
776

data is_service-service type ref to CL_GOS_TOOLBOX_VIEW.

create object is_service-service.

SET HANDLER is_service-service->on_service_canceled FOR me.

I got error ' you can not create instance of Abstract class CL_GOS_TOOLBOX_VIEW '.

How to create instance for above class.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
73

If CL_GOS_TOOLBOX_VIEW is a abstract class you cannot create instances for this class...to implement these class method on_service_canceled ..first create one child class..within child class you can implement..

Reward if useful.

Dara.

2 REPLIES 2

Former Member
0 Kudos
73

you should either inherit this class in some other class made by you and then use it like

class my_class definition inheriting CL_GOS_TOOLBOX_VIEW.

<data or methods>

endclass.

then use this class.

plz reward if useful

vivek

Former Member
0 Kudos
74

If CL_GOS_TOOLBOX_VIEW is a abstract class you cannot create instances for this class...to implement these class method on_service_canceled ..first create one child class..within child class you can implement..

Reward if useful.

Dara.