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: 

Dynamically calling Object

Former Member
0 Kudos

Dear Gurus,

I have created one interface zif_test and method is calc.

I have created two class in SE24- zcl_stf and zcl_wrk with interface zif_test. calculation varies in both classes .

stf and wrk are two category.

Problem here:

How do i call the object based on category ?

Regards

Vijay

Point will be rewarded

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check for category in the methods.Put a If clause at the starting of method and execute accordingly.

Regards

Sourabh verma

1 REPLY 1

Former Member
0 Kudos

Hi,

Check for category in the methods.Put a If clause at the starting of method and execute accordingly.

Regards

Sourabh verma