Entering content frame

Background documentation Getting the ALV Configuration Model Locate the document in its SAP Library structure

To be able to use the ALV configuration model, use a method from the class IWCI_SALV_WD_TABLE in, for example, WDDOINIT. You choose one of the following methods:

...

·        GET_MODEL

The system returns a complete ALV configuration model with all the column objects and field objects.

This is the default variant. The method does not have any parameters.

·        GET_MODEL_EXTENDED

The system returns all the field objects (as above) but it only supplies the column objects as and when needed.

If, for example, you want to manage a large number of field objects but you only want to display a few columns, create the field objects first and then generate the column objects you require to display the contents later.

The parameter S_PARAM from the method GET_MODEL_EXTENDED (type IF_SALV_WD_TABLE=>S_TYPE_PARAM_GET_MODEL) consists of the following fields:

¡        DEFAULT_COLUMNS

Here you can determine whether the column objects are to be generated or not.

¡        DEFAULT_FIELDS

This parameter is not currently used.

You now have all the objects needed to configure the ALV output as required.

Note

You can specify a new internal data table for the ALV output at any point in the future. To do this, use the method SET_DATA. However, by using this method you also automatically delete the entire ALV configuration model with all the fields and column objects. To make the configuration model available to the new data table again, use one of the methods GET_MODEL or GET_MODEL_EXTENDED again.

 

Leaving content frame