cancel
Showing results for 
Search instead for 
Did you mean: 

Controllers

Former Member
0 Kudos

Types of controllers and purpose.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
S-H
Active Participant
0 Kudos

Hi Suma,

There are 5 controllers present in WebDynpro ABAP.

1. Component controller There is only one component controller per Web Dynpro component. This is a global controller, visible to all other controllers. The component controller drives the functionality of the entire component. This controller has no visual interface.

2. Custom controllers Custom controllers are optional. They have to be defined at design time and can be used to encapsulate sub-functions of the component controller. Custom controllers are instantiated automatically by the Web Dynpro framework and the instantiation order is undefined; therefore, the coding in a custom controller should make no assumptions about the existence of any other custom controller.

3. Configuration controller This is a special custom controller. It is only necessary if the corresponding component implements special configuration and personalization functionality. Only one configuration controller may exist in any component. Any other controller can access the configuration controller, but the configuration controller cannot access any other controller.

4. View controllers Each view consists of the layout part and exactly one view controller. This controller cares for view-specific flow logic, like checking user input and handling user actions.

5. Window controllers Each window has exactly one window controller. This controller can be used to care for the data passed via the inbound plugs when being reused as a child controller. Methods of this controller can be called from the inbound plug methods of the window.

Best regards,

Suresh