Show TOC

Background documentationFields Locate this document in the navigation structure

 

If you use the ALV configuration model, all the field objects are generated automatically from the specifications you made for the attributes in the context node. As a result, every attribute in the context node has a representative with the same name in the ALV configuration model. By connecting the internal data table to the context node you fulfill all the prerequisites to start your application with ALV. You can sort the data with statements from your application, filter it, or perform applications. All these functions (ALV services) are essentially field object methods. You cannot, however, display the data yet. To do this, you need columns.

You primarily use field objects in two situations:

You can also make the following settings for field objects:

  • Get field object

  • Get field name

    Note Note

    You cannot create new fields or delete existing fields.

    End of the note.
Getting Field Objects

To make the required settings for a field, you must first get the instance of the field. You can decide whether you address a specific field object by its name or get all field objects simultaneously so you can handle them one after another. In both cases, you use the methods of interface class IF_SALV_WD_FIELD_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for getting field objects

Function

Method

Get single field object

GET_FIELD

Get all field objects

GET_FIELDS

Getting Field Names

To get the name of the current field instance, you use class CL_SALV_WD_FIELD.

Method for getting field names

Function

Method

Get field name

GET_FIELDNAME