Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Introduction

The SAP List Viewer is a generic tool that outputs data in a table form (rows and columns), with integrated functions to manipulate output (sort, totals, filter, column order, hide, etc.) and export it (Excel, Crystal report, CSV files, etc.) It is also possible to make ALV editable via ALV control.

ALV name comes from "ABAP List Viewer", as named initially because it was only available in ABAP. It is now a more general concept, which is available in java too (since 7.1).

ALV tool proposes 3 display types (schemes are taken from the SAP Library - An Overview of ALV Tools) and in several technologies:

  • Display types:
    • Simple list:
    • Hierarchical sequential list:
    • Tree
  • Technologies:
    • List
    • Control Framework
      In SAP release 4.5b was introduced the Control Framework. A control was made available for ALVs, known as ALV grid. It can be used in 3 ways:
      • Direct use of control
      • Function module wrapper. It may be used in full screen mode, which means that the buttons are displayed in the application toolbar, and also in popup mode.
      • Object-oriented wrapper, since basis 6.40. Full screen and popup are also available.
    • Web Dynpro
      • Web Dynpro for ABAP
      • Web Dynpro for java (since NetWeaver 7.10)

General

Links by technology

ALV user guides:

Examples how to create various ALVs

Technology

Appearance

API

Simple list

Function module REUSE_ALV_LIST_DISPLAY

Hierarchical sequential list


(credit: SAP List Viewer Basics)

Function module REUSE_ALV_HIERSEQ_LIST_DISPLAY

Tree list

Function module RS_TREE_LIST_DISPLAY

Grid Control

Class CL_GUI_ALV_GRID, Class CL_SALV_TABLE

Hierarchical sequential control

 

Class CL_SALV_HIERSEQ_TABLE

Grid full screen

REUSE_ALV_GRID_DISPLAY

Tree control

 

Class CL_GUI_ALV_TREE, Class CL_SALV_TREE

Web Dynpro for ABAP

Web Dynpro wdt_flightlist_simple

Documentation for developers

Technology

Documentation

Simple list

SAP documentation is provided only within function modules in workbench repository

Hierarchical sequential list

 

Tree list

 

Grid Control

Hierarchical sequential control

USING HIERARCHICALLY -SEQUENTIAL TABLE Factory method (wiki)

Grid full screen

 

Tree control

File Utility ALV Tree

Web Dynpro for ABAP

Sap Library - SAP List Viewer in Web Dynpro for ABAP

Demo programs

Technology

Program

Description

Simple list

 

 

Hierarchical sequential list

 

 

Tree list

SAPMSABAPDEMOS

 

 

Call FM to generate alv tree and deal with user action

 

Grid Control

 

 

Hierarchical sequential control

 

 

Grid full screen

BCALV_TEST_FULLSCREEN* programs below

You may need to generate Flight Demo data to fill ALV

 

BCALV_TEST_FULLSCREEN

Many (all?) aspects:

  • Layout management
  • Editable columns
  • Miscellaneous: General appearance, Hotspot, Currency fields, Colors
  • Shows all types of fields: icon, character, number, date, time, checkbox, negative number, hexadecimal, INT4, NUMC, floating point, lower case, symbol, etc.
  • Sorting, Totals, Subtotals
  • Print options

 

BCALV_TEST_FULLSCREEN_EDIT

Fully editable ALV (be careful, you have to select the "editable" checkbox in the middle of the selection screen, and SAVE button allows to save changed values

 

BCALV_TEST_FULLSCREEN_EVENTS

Demo of all events

 

BCALV_TEST_FULLSCREEN_FILTER

filter on all types of fields, with many variations of values

 

BCALV_TEST_FULLSCREEN_FQUAN

Quantities related to unit of measure fields (you may also see how it affects filter option); also shows the variation of the number of decimals according to the unit of measure

 

BCALV_TEST_FULLSCREEN_HTML

HTML container above and below ALV

 

BCALV_TEST_FULLSCREEN_PRINT

Print without displaying, or from ALV screen print button

 

BCALV_TEST_FULLSCREEN_STATUS

Choose GUI status, and modify its list of buttons and menus

Tree control

 

 

Web Dynpro for ABAP

 

  • No labels