on 05-13-2013 7:19 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
May I know why you want to access this way? And which methods you would want to access?
Thanks & Best Regards,
Leon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.