Application Development and Automation 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: 
Read only

How to create instance for class.

former_member463678
Participant
0 Likes
1,232

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
Read only

Former Member
0 Likes
529

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
Read only

Former Member
0 Likes
529

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

Read only

Former Member
0 Likes
530

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.