Entering content frame

Background documentation GET_MODEL Locate the document in its SAP Library structure

Use

The method GET_MODEL returns a standard execution of the ALV configuration model. You can, therefore, configure the ALV output to meet your own specific requirements.

The standard execution of the ALV configuration model contains all the field and column objects in accordance with the attributes in the application’s context node.

Note

You can use the GET_MODEL_EXTENDED method to determine whether you require the field objects on their own, or the column objects as well.

Information about ALV Output

If you configure the ALV output using your application, or the user changes the ALV output, this has an effect on the ALV configuration model.

·        The object for the corresponding field is changed by configuring the filter, sorting, and aggregation conditions.

·        The object for the corresponding column is changed as a result of hiding and showing a column, for example.

You can use the method GET_MODEL to call the current status of the ALV output with all the settings for services, functions, and so on. In this way, you can transfer all the properties of a particular ALV output into another component and continue processing there.

Prerequisites

You have generated a context node with all the attributes and transferred it to the ALV component using external context mapping or the method SET_DATA.

Syntax

Signature

methods GET_MODEL

OPTIONAL

  RETURNING

    VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE

Parameter

(Importing)

-

 

Return values

VALUE

Standard execution of ALV configuration model

Exceptions

-

 

 

 

 

Leaving content frame