Skip to Content
Author's profile photo Sankar Gelivi

ALV Table and Its functionalities

Author : Sankar Gelivi

Created on : 27.06.2014

Summary: This document explains configuration of ALV table, events and funtionalities like changing column header, setting UI elements like button, link to action etc to the ALV table column.

Component: SALV_WD_TABLE is the generic component provided by SAP to create ALV table.

Events of ALV table: Each event will be discussed in detail

Events in ALV Table.PNG

1. Create component YSG_ALV_TABLE

Screen1 - component creattion.PNG

2. Define used component ( SALV_WD_TABLE ) under using component ( YSG_ALV_TABLE ) and save the component

screen2 - define used components under current components.PNG

3. After activating the component, we will be able to see Interfacecontroller_usage of ALV table under component usages.

screen3 - component usages.PNG

4. Create a node ‘MATERIAL’ with cardinality 0-N

screen4 - create a node in the component controller.PNG

5. Double on the interface controller usage of ALV table, we will be re-directed to the context of ALV table interface controller


screen5 - Double click on the interface controller Usage.PNGscreen6- Navigation to ALV Component interface controller.PNG

  DATA node: Defines the structure of ALV table and passes data to the ALV table

  FUNCTION_ELEMENTS node: Creates UI elements in the ALV table toolbar

  TOP_OF_LIST node: Creates header to the ALV table

  END_OF_LIST node: Creates footer to the ALV table

6. To assign structure to the DATA node, create controller usage

screen7- click on the controller usage btn.PNG

7. Select component controller of YSG_ALV_TABLE component

screen8 - select component controller of the current component.PNG

8. Define the External Context Mapping with DATA node of ALV table and MATERIAL node of YSG_ALV_TABLE

screen9- component controller availability and define exterrnal context mapping.PNG

9. once the mapping is defined, we will see double arrow mark to the DATA node.

screen10-External Mapping is defined.PNG

screen11- message for mapping.PNG

10. Design the view with the View Container UI element. View container UI element is used to display a view with in a view. It acts like a SUBSCREEN area in          module pool program

screen12-design the veiw with view container UI element.PNG

11. Go to the window and assign view to be displayed in the view container

screen13 - assign view to the VC.PNG

12. Right click on the view container UI element, select EMBED view and click on F4 of view to be Embedded and select TABLE under VIEW / Interface view          and click on continue

screen14 - assigning table view to the vc.PNG

13. TABLE view of ALV table is assigned to the view container

screen15 - assinged.PNG

14. Implement the logic in theWDDOINIT( )


15. Save, activate and execute the application.

screen17 - Output.PNG

Note: ALV table events and its functionalities will be shared in the ALV Table and Its functionalities PART – 2

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Sankar,

      Nice document and waiting for Part-2.



      Author's profile photo kapil mahire
      kapil mahire

      very helpful docs.

      Author's profile photo Mohammad Saif
      Mohammad Saif

      Hi Sankar,

      This document is really very helpful. Thank you Sankar. When will you write its next part. Eagerly waiting for that.

      Thanks in advance.