Show TOC

Defining ALV Component UsageLocate this document in the navigation structure

Use

To use an ALV output in your application, use the component SALV_WD_TABLE . You can include this ALV component in your Web Dynpro component. You define a Component Usage for this.

The ALV Component Usage provides you with the Interface Controller SALV_WD_TABLE of the ALV component. You can use this to:

  • map the data of your context with the context node DATA of the ALV component.

  • use the methods and events of the Interface Controller.

    For more information, read the Interface Controller documentation on SALV_WD_TABLE in your system.

  • Accessing the ALV configuration model.

Note

If you want to display multiple different ALV outputs, distinguish between these outputs by using unique names for the respective usage variants of the component.

Procedure

  1. Select your Web Dynpro component and switch to the Used Components tab page.

  2. Create a new component usage - for example with the name MY_ALV_COMP_USAGE - select SALV_WD_TABLE as the component and save.

  3. Now switch to the COMPONENTCONTROLLER of your Web Dynpro component and the Properties tab page and create a new Component Usage Creating Controller Usage.

  4. A further entry for the INTERFACECONTROLLER is provided for the Component Usage ( MY_ALV_COMP_USAGE ). Select this and confirm. The Component Usage is now created automatically.

    You can also create the INTERFACECONTROLLER usage directly in the View Controller of the view where you want to display the ALV.

Result

Your Component Usage now looks like this:

Defining the Result of the ALV Component Usage Procedure