cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Component Controller and Custom Controllet...?

Former Member
0 Kudos

Hi

Can any one tell me Difference between Component Controller and Custom Controllet...?

Best Regards

Ravi Shankar B

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member189631
Active Contributor
0 Kudos

RaviShankar,

Every webdynpro Project contains one Component Controller to share

data among all views. Custom control is similar to Component controller except that a developer can add many custom contoller depends upon his project

Size.For example if a webdynpro project consumes 3 RFC Function modules means we can place each into a seperate custom to avoid complexity.

Regards,

Ramganesan K.

Former Member
0 Kudos
Former Member
0 Kudos

Hi Ravi,

Basically there are 2 types of controllers. One with visual interface which are known as view controllers and 2nd without visual interface which is known as custom controllers.

Component controllers are a special custom controllers which is implicitly get created while creating a component . A component has one and only one component controller where as it can have many custom controllers.

However SAP recomends to use custom controllers only if it simplifies your design.

Hope it cleared your doubts.

Regards

Shobhan

Former Member
0 Kudos

Hi RaviShankar B,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web%20dynpro...

Also refer to the below link

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.

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

regards

Anil Dichpally