Show TOC Entering content frame

Background documentation Columns Locate the document in its SAP Library structure

Depending on how you got the ALV configuration model, there is either just one, identically named column object for each attribute of your context node, or there is no column object at all (see Getting the ALV Configuration Model). In the latter case, you must generate the column objects required for the desired display of the ALV output separately.

You can make the following settings for column objects:

·        Get column object

·        Get technical name for a column

·        Create and delete a column object

·        Set up a column header (see Column Headers)

·        Change the position of a column (see Position of Columns)

Further Information

·        For information on designing the appearance of a column, see the sections below Appearance of ALV Output.

·        For information on filtering, sorting, and aggregating columns, see Predefining Standard ALV Functions.

Getting a Column Object

In order to make the required settings for a column, you first have to get the instance of the column. You can decide whether you address a specific column object by its name or get all column objects at once in order to handle them one after another. In both cases you use the methods of the interface class IF_SALV_WD_COLUMN_SETTINGS for this (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for Getting Column Objects

Function

Method

Get individual column object

GET_COLUMN

Get all column objects

GET_COLUMNS

Getting the Technical Name for a Column

Use the class CL_SALV_WD_COLUMN to get the name of the current column instance.

Method for Getting the Technical Name of a Column

Function

Method

Get technical name

GET_ID

Creating and Deleting Column Objects

If, when getting the ALV configuration model, you defined that the system should not generate column objects, you need to generate the column objects required for displaying the ALV data yourself in your application.

The user's column set contains all columns for which a column object exists. If you do not want a column to appear in the user’s column set, you have to delete the corresponding column object.

Note

When creating a column object, you enter its technical name. This name must match the name of an attribute in the context node of your application.

To generate or delete a column object, use the methods of the interface class IF_SALV_WD_COLUMN_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for Generating and Deleting Column Objects

Function

Method

Create column object

CREATE_COLUMN

Delete column object

DELETE_COLUMN

 

 

Leaving content frame