
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.
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.
Select your Web Dynpro component and switch to the Used Components tab page.
Create a new component usage - for example with the name MY_ALV_COMP_USAGE - select SALV_WD_TABLE as the component and save.
Now switch to the
COMPONENTCONTROLLER of your Web Dynpro component and the
Properties tab page and create a new Component Usage
.
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.
Your Component Usage now looks like this: