cancel
Showing results for 
Search instead for 
Did you mean: 

component controller Vs interface controller

Former Member
0 Kudos

Hi Experts

Please state me the difference and similarities between the component controller and interface controller

Regards

Noel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

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

Also check the following thread to check when method should be implemented in CC or IC:

Regards.

Rajat

Answers (4)

Answers (4)

former_member185086
Active Contributor
0 Kudos

Hi

Similarities between these two is that both are controller but each having different purpose in the application

Component Controller

1.Starting point of any application,(you can't create any app without defining any Component)

2.Master Controller of the complete Component structure (View ,Model ,interface ,window)

3.If function defined in Component Controller or Custom Controller it is available to any controller within your component (Interface, View, Custom) but not available outside.

Interface Controller

1. To make Contents outside of the world one separate controller called Interface Controller come into picture

whose only task is to exposing of the content to outside.

take further help from following threads

1.[Component Controller,Custom Controller,interface controller|;

2. [Basic Question regarding component Controller and component interface|;

3.[controllers and components|;

Former Member
0 Kudos
Former Member
0 Kudos

Refer exisitng wiki - FAQ - General - Concepts by searching SDN.

The controller is responsible for data flow between the view and the model and handling events.

Web Dynpro controllers come in two distinct varieties: those with a visual interface, and those without.

Controllers that have a visual interface are referred to as "view controllers".

Controllers that have no visual interface are referred to as "custom (component) controllers".

An interface controller makes its data available to a higher level component (inter-component).

Former Member
0 Kudos

Hi Noel,

I hope the below links must be useful to you.

1) Component Controller:

http://help.sap.com/saphelp_nw70/helpdata/EN/dd/b943f7f11e47e3838675aac9b13d16/frameset.htm

2) Interface Controller:

http://help.sap.com/saphelp_nw70/helpdata/EN/20/a5f7416e61212be10000000a155106/frameset.htm

Regards,

Krishna Balaji T