Tuesday, June 10, 2008

Web Dynpro ABAP Programming Controller Methods

In general, attributes and methods are used to specify the processes of programs in Web Dynpro applications and to edit the data contained in the context. The previous sections, Action Event Handlers and Cross-Controller Method Call, described simple examples of these program processes. In this section, you find general information on programming using methods of the Web Dynpro framework. In addition, frequently used methods are described and illustrated by source code examples.

For further information on specific controller methods, refer to Controller: Methods in the tools manual and Programming Interfaces in the reference section of this documentation.

When you create a new Web Dynpro component, a component controller is automatically created for this component. When you create a view for a Web Dynpro component, a view controller is automatically created for this view. Each window of a component contains a window controller and you can create custom controllers for specific purposes.

At least two attributes are automatically known to each controller, namely the following object references:

● WD_CONTEXT

● WD_THIS

You can also create your own attributes for each controller. These attributes are used to store non-UI-relevant application data (UI-relevant data is stored in the context).

For detailed information on programming with special contexts, see Advanced Concepts in Programming of the Context.

Interface Controller

The additional interface controller listed in the development environment is not an independent object but a specific subset of the component controller.

This interface controller defines the interface of a Web Dynpro component for the use in another component. The methods are implemented in the component controller. When you set the Interface flag for methods/events/context nodes in the component controller, these elements are copied into the interface controller.

No comments:

Archive