on 05-21-2013 7:08 PM
Hi,
can any one tell me the relationship between the interface if_wd_component and if_wd_controller . whether if_wd_component is base interface of if_wd_controller.
basically i want to know why we use interface if_wd_controller
thanks
Hello Abaper,
Both IF_WD_COMPONENT AND IF_WD_CONTROLLER are interface.
IF_WD_COMPONENT (for all component controllers)
IF_WD_CONTROLLER (for all interface controllers or custom controllers)
CL_WDR_COMPONENT and CL_WDR_CONTROLLER are the classes which implements both the interface(for detail R&D Goto Se24 PUT THE CLASS AND go to interface tab).
in the same way u check for the interface in se24.
So finally IF_WD_COMPONENT inherit IF_WD_CONTROLLER (as shown in image). then come to second part of your question i.e why we use interface if_wd_controller the answer when we want to hold the return type of other controller that may be (view controller,component controller) .
for detail go to:-
http://help.sap.com/saphelp_nw04s/helpdata/en/61/497941761b070de10000000a1550b0/content.htm
example:-
we need to hold reference of other controller to get the get_message_manager( )
DATA:lr_api_controller TYPE REF TO if_wd_controller,
lr_message_manager TYPE REF TO if_wd_message_manager.
lr_api_controller ?= wd_this->wd_get_api( ).
lr_message_manager = lr_api_controller->get_message_manager().
link:-
http://an-sap-consultant.blogspot.in/2012/03/web-dynpro-abap-errorsuccess-message.html
http://webdynproabap.wordpress.com/tag/contextual-panel/
Hope this help you a lot.
if any query regarding this feel free to ask......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashish,
IF_WD_VIEW_CONTROLLER (for all view controllers)
IF_WD_COMPONENT (for all component controllers)
IF_WD_CONTROLLER (for all interface controllers or custom controllers)
IF_WD_CONTROLLER Interface allows to access information about a WebDynpro controller. CL_WDR_CONTROLLER Class implements this interface.
Please check this,.
http://help.sap.com/saphelp_nw04s/helpdata/en/61/497941761b070de10000000a1550b0/content.htm
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.