cancel
Showing results for 
Search instead for 
Did you mean: 

if_wd_controller

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182915
Active Contributor
0 Kudos

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......

Former Member
0 Kudos

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.