Show TOC

Controller PropertiesLocate this document in the navigation structure

Use

The Properties tab page contains all administrative information about the controller.

In the subsequent table you have the option of declaring a controller usage for the controller you processed.

Controller Usage

Using Controllers of the Component Currently Being Processed

You can use already existing context structures or methods of other controllers of the component that is currently being processed within the controller that is currently being processed. The prerequisite for this is that you have created a controller usage on the Properties tab page for the controller that is currently being processed. You can use all global controllers of a component, that is, for customer or component controllers, for such a usage.

Note

Within a component it is possible for the controller to embed the functions of the component controller, for example. For this purpose, a controller usage is created on the view's Properties tab page and the component controller is selected. Similarly, the functions of a global controller can be embedded in another, global controller (such as in a custom controller).

As the usage of the component controller is almost always required within a view, this usage is automatically created when a view is created and is available to you immediately (see View Editor ). The controller of a view, however, is not visible across the component and therefore cannot be used by other controllers of the component.

To create a controller usage in a controller, on the Properties tab page select the Create function to the top-left of the table. All available controllers will be displayed in a new window.

Using the Interface Controller of an External Component

The functions of interface controllers can be used not just in the component (because of its global ABAP interface) in which the controller was created.

By declaring a corresponding usage, you can also use the interface controller of an external component within the component that you processed.

To be able to select the interface controller of an external component to use it, first of all you have to declare a component usage .