Start of Content Area

This graphic is explained in the accompanying text 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 the workbench is in change mode and you are either:

      Editing a controller method, or

      Designing a view layout

Editing Controller Methods

If you are editing a controller method, a separate dialog box is opened when you call the wizard. A list of functions is displayed:

Wizard Functions

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 be the 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. More information: 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.

Access to text symbols

This is where you can access text modules that are stored in the Assistance Class.

Personalization

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

Create popup

(dialog box)

The wizard provides you with the windows you can use as dialog boxes.

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 outbound 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 event of a component, custom or interface controller of a component. Use the F4 help in the Event row to choose an event that you have created for the controller that is currently being edited (see Controller: Events).

Edit View Layout

If you are editing a view layout, a separate dialog box is opened when you call the wizard. In this dialog box there is a file containing standard templates to design Web Dynpro views. When you select one of these templates, a UI element is generated that is adjusted directly to the bound context node. The templates presently available are Form for forms, Table for tables, and Dynpro for screens. With the Dynpro template you can, with some restrictions, Use Dynpros of Existing ABAP Programs as Layout Templates.

 

 

End of Content Area