Start of Content Area

Function documentation Displaying As a Hierarchy  Locate the document in its SAP Library structure

Use

Some columns in a list often contain data that in some way is hierarchically superordinate to values in other columns.

Example

The Airline column contains the names of airlines. The remaining columns contain detailed data for the flights for each airline, such as flight number, flight date, and price. You can therefore view the Airline column as superordinate to the other columns.

SAP List Viewer (ALV) provides various ways of displaying data hierarchically:

      Grouping

The hierarchy for a grouped list has two levels:

       Values for the grouping column

       Values for all remaining columns

You can specify which of the columns is to be used as the grouping column. You can show and hide lower-level data records for the grouping. You can also switch off grouping and display the data on one level (see Grouping Data).

      Predefined hierarchy

The predefined hierarchy consists of a varying number of hierarchy levels. This means any number of levels can be displayed under each lower-level data record. You cannot change the structure of the hierarchy. You can show and hide lower-level data records in the hierarchy (see Showing and Hiding Hierarchy Levels).

 

End of Content Area