Show TOC Entering content frame

This graphic is explained in the accompanying text The Web Dynpro Code Wizard Locate the document in its SAP Library structure

When processing controller methods, you can use the Web Dynpro Code Wizard to help you. The icon for the wizard is located in the toolbar above the Controller Editor.

This graphic is explained in the accompanying text

 

The icon is active if you are editing a controller method and the Workbench is in change mode. When the wizard is called, a list of different functions that are available are displayed in a separate window:

 

Method call in the current controller

Call of methods of an interface of the controller that is currently being edited. The input help automatically displays all available methods of the corresponding interface, that is, all methods of the IF_<Controllername> interface.

Method call in the used controller

Call of methods from interfaces of other controllers:

on the one hand this can be a controller of the same component (component, custom or interface controller). If you want to call a method of an interface of such a controller, a usage for the controller concerned must be entered on the Properties tab page for the current controller.

On the other hand, this can bet he interface controller of an external component. In this case, a usage of the external component (Component Editor) and a usage of the external interface controller for the current controller must be entered. For more information, see Component Usage with Controller Access

Provided that the required usages were entered, you can now select the required controller using the F4 help for the Component Name, Comp-Usage or Controller Name rows. Following this, you then use the F4 help to select a method of this controller.

Instantiating the Used Component

Instantiation of external components in the controller method that is currently being edited. Regardless of whether you only want to call an external component or whether you want to access the interface controller of the external component, the external component must be instantiated at a time you select. You can add the call that is required for this to the coding of your current controller method using the Web Dynpro Code Wizard. The F4 help offers all components for which a usage has been entered. For more information, see Working with Component Usages.

Retrieve context

Insert methods that retrieve the elements or attributes of the context of the controller that is currently being edited. The F4 help can also help you to choose the element.

Create message

You can choose different methods of the IF_WD_MESSAGE_MANAGER interface to create messages.

OTR access

Here you can access a text module from the Object Text Repository.

Personalization

To personalize Web Dynpro applications, you can use methods of interface IF_ WD_PERSONALIZATION.

View Controller

The functions for portal integration and navigation are available for all methods of a view controller:

Portal integration

Web Dynpro applications can be integrated in a portal. Views of an embedded application can interact with the portal using the methods of interface IF_WD_PORTAL_INTEGRATION.

Trigger navigation

Insert the method that calls an Structure linkoutbound plug of a view or interface view. Use the F4 help for the Outbound Plug row to choose all outbound plugs that are available for the controller of the current view/interface view (see View: Inbound and Outbound Plugs).

Component Controller

If you want to trigger an event in a method of the component controller, the wizard has another feature you can use:

Trigger event

Insert the method that triggers an Structure linkevent of a component, custom or interface controller of a component. Use the F4 help for the Event row to choose an event that you have created for the controller that is currently being edited (see Controller: Events).

 

 

Leaving content frame