Tuesday, June 10, 2008

Web Dynpro ABAP Component Controller

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 Architecture Manual for Web Dynprocontains a general section on the Controller subject.

In the reference manual Web Dynpro Tools in ABAP Workbench, refer to the chapter on processing of Controllers.

No comments:

Archive