on 06-04-2007 9:39 AM
Hello,
my COMPONENTCONTROLLER has an interface method which needs to be called outside the web dynpro component. To be more specific: this method needs to be called in an ABAP OO class, not in a using component.
Therefore I want to transfer a referenz on the interface controller (IWCI_<component>) to the ABAP OO class. But I don't know how to create a referenz on the interface controller (in the component of the interface controller!).
Best regards, Hergen
Hi Hergen,
Below code snippet may help you to acess the interface method of the webdynpro component in an ABAP class.
lo_interface_controller TYPE REF TO abap_interface_controller.
( to get ABAP interface name go to webdynpro component interface -> go to interface controller -> properties-> ABAP Class name, is the interface which need to be used in the programming )
lo_interface_controller ?= wd_this.
( reference to Component controller of your webdynpro component in which above interface method is being used )
lo_interface_controller->interface_method( ).
now you can use this interface controller's reference to acess the method of that interface.
I hope this will help you.
Thanks,
Prashanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hergen.
In which stage do you want to pass the reference? You could just pass wd_this as reference, if you are in the component controller.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hergen,
Do you want call a WD components method outside WD component (within the lifetime of the component) in a class.
One of the possibilities is to use the Assistance class for the WebDynpro Component. Have a attribute in assistance class. In the assistance class, we can have attributes referencing to IF_WD_CONTEXT_NODE, message manager. We can access the context and we can process the context from the assistance class.
Best regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should you just define this method in your interface controller?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.