cancel
Showing results for 
Search instead for 
Did you mean: 

Component Controller,Custom Controller,interface controller

Former Member
0 Kudos

Hi All,

in WebDynpro there are Component Controller,Custom Controller,interface controller what;s the difference between them when do you use each one and why? (an Example).

Regards,

Murali

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Component Controller and Custom Controller are more or less the same. Both are related to a particular component in the webdynpro application you create.

Component Controller:-

For each component of yours there will be a component controller, were in you can define context variables and methods, events etc.. This usefull while using models.

Simple example where we can see this is, when you create global context variable in this controller and map this variable to the view controller context variable of different view, which enables you to pass the value of the variable from one view to another.

Custome Controller:-

They also have the same the function but as the name suggest there function can be customised. That is we can have more than one custom controller for a component. This is usefull when we need to create seperate execute methods for inputs from model import( Both webservice and rfc call).So you can seperate each other. Example is there in the more sample codes and application section.

Interface Controller:

There is only one interface controller for a component. It is mainly used when we need to communicate between two components.There is sample application for communication between two components in the sample codes and application section.

I think this is enough to get an idea on the difference between each of controllers.

Former Member
0 Kudos

Hi

Refer this link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm

following examples gives you hands on experience for your questions

Component Controller

1 | 2 | 4 | 5

Component Controller Context

1 | 2 | 4 | 5

Component Interface Controller

14 | 34

Component Interface View

13 | 14

Component Usage

13 | 14 | 34

Additional reffer this link also

http://help.sap.com/saphelp_nw04/helpdata/en/ee/dd1e3e6217b40be10000000a114084/content.htm

cheers

Sameer

PS: Award points if the answer was helpful