on 03-08-2014 11:40 AM
Hi All,
I have created a method in Component controller and want to access it in Assistance class.
Can we do this? if yes pls explain.
Thanks,
Vimal
Hi Vimal,
-------------------------------------------------------
I don't think, we get the scenario of calling component controller's method inside assistance class.
If you could elaborate, your requirement in detail, I can suggest some work around/other way of achieving your requirement.
-------------------------------------------------------
I have created a method in Component controller and want to access it in Assistance class.
Can we do this? if yes pls explain.
Only dynamic method call is possible if we have the reference of WD_COMP_CONTROLLER i.e.
before calling a method in component controller, we should pass the wd_comp_controller reference to assistance class and make a dynamic call to the method as below
Let us say we have reference of wd_comp_controller as GO_COMP_CONTROLLER, & we have method to "set_data"
then, method call will be....
data lv_method type string.
lv_method = 'SET_DATA'.
CALL METHOD go_comp_controller->(lv_method).
Please refer my answer in the below discussion
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vimal,
In general, we cannot call the methods of the component controller or components in the assistance class.
Hope the following document will help you
http://scn.sap.com/docs/DOC-50851
Thanks & Regards,
Sankar Gelivi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.