cancel
Showing results for 
Search instead for 
Did you mean: 

Genil

Former Member
0 Kudos

Hi guys,

I want to acceess the genil class methods directly with out using BOL classes.

Is it possible ? if possible, tell me the approach.

Regards,

Suresh.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Suresh,

  For accessing the GenIL class methods directly, you can use method IF_GENIL_APPL_INTLAY~EXECUTE_OBJECT_METHOD of your genIL class. This method is used to call the methods of handler class directly. In this method you need to specify your method name which you want to call.

  EXECUTE_OBJECT_METHOD can be called using EXECUTE( ) method from your entity by passing the method name. Hence this method is used to perform operations that can't be done by standard GenIL.

0 Kudos

Hi Suresh,

May I know why you want to access this way? And which methods you would want to access?

Thanks & Best Regards,

Leon

praveen_kumar194
Active Contributor
0 Kudos

You can use genil class method by creating its instance. something look like this

lr_comp type ref to 'your genil component class name'

create object lr_comp
exporting
   IV_COMPONENT_NAME = 'genil comp name'
   IV_MODE = 'R'.

once you get the instance, you can use the methods. however, certain methods need some other services as well and using this methods alone is not a standard way.

you may face other problems as well by this approach.