Entering content frame

This graphic is explained in the accompanying text Component Controller Locate the document in its SAP Library structure

Each Web Dynpro component contains exactly one component controller. This controller is automatically created during the component creation and contains a context, events, and methods. Unlike a view controller, the component controller is visible for all views in a component. This means, the controllers of different component views can access context elements or methods of the component controller. For this purpose, the component controller usage is automatically created for every view controller.

This graphic is explained in the accompanying text

This makes the component controller a central location for data exchange between different views of one component. The Web Dynpro framework provides the mechanism of context mapping which is a declarative tool to easily perform this data exchange.

In addition, the component controller allows cross-view method calls. For example, it might be useful to add the call of a function module to a method of the component controller if the function module is to be used by methods of different views. You can then access the methods of the component controller in the controllers of the various views. This enables you to structure Web Dynpro components in a better way and to reuse frequently used program steps.

 

More Information

     The Structure linkArchitecture Manual for Web Dynpro contains a general section on the Structure linkController subject.

The reference manual Web Dynpro Tools in the ABAP Workbench features a section on the processing of Controllers.

 

 

Leaving content frame