Start of Content Area

Background documentation Providing Standard ALV Functions  Locate the document in its SAP Library structure

You can choose from various procedures to provide users with a standard ALV function:

      Show Standard ALV Function

The type for the UI element and the label used are taken from the default setting. Depending on the standard ALV function, the UI element is displayed in the Settings dialog box or in the toolbar.

You specify which standard ALV functions are to be available to the user by providing the UI elements for the relevant standard function.

      Providing Alternative Functions in the Toolbar

If you want the UI element in the toolbar to have a different type or label than the standard setting, allow use of the standard ALV function but hide the corresponding UI element. Then generate a user-defined function and assign the required standard ALV function to it.

Showing Standard ALV Functions

If you use the ALV configuration model, the objects for all standard ALV functions are created automatically. You only need to specify which standard ALV functions are to be available for the user by permitting use of the relevant functions.

Note

By default, all standard ALV functions are shown; exceptions to this are those functions required for calculations (including intermediate results) and for the editable ALV.

You can find the required methods in interface class IF_SALV_WD_STD_FUNCTIONS (implementing class CL_SALV_WD_CONFIG_TABLE). All these methods contain parameter VALUE of type ABAP_BOOL.

Methods for Showing Standard ALV Functions

Function

UI Element

Comment/Prerequisite

Method

Show and hide columns

 

 

 

Column Selection tab page

 

SET_COLUMN_SELECTION_

ALLOWED

Sorting

 

 

 

Sorting tab page

 

SET_SORT_COMPLEX_

ALLOWED

Sorting by single clicking column header

Arrow icon in column header

SET_SORT_HEADERCLICK_

ALLOWED

Filter

 

 

 

Filter tab page

 

SET_FILTER_COMPLEX_

ALLOWED

Filter pushbutton in toolbar

 

SET_FILTER_FILTERLINE_

ALLOWED

Calculations

 

 

 

Calculations tab page

 

SET_AGGREGATION_

ALLOWED

All elements for intermediate results

 

SET_GROUP_AGGREGATION_

ALLOWED

Count table entries

 

SET_COUNT_RECORDS_

ALLOWED

Display

 

 

 

Display tab page

 

SET_DISPLAY_SETTINGS_

ALLOWED

 

Hierarchy checkbox and Define pushbutton

 

SET_HIERARCHY_

ALLOWED

Views

 

 

 

Views dropdown list box

 

SET_VIEW_LIST_

ALLOWED

Editable ALV

 

 

 

Insert Row pushbutton

Can only be shown if write-protection has been deactivated

SET_EDIT_INSERT_ROW_

ALLOWED

Append Row pushbutton

SET_EDIT_APPEND_ROW_

ALLOWED

Delete Row pushbutton

SET_EDIT_DELETE_ROW_

ALLOWED

Check pushbutton

SET_EDIT_CHECK_AVAILABLE

Undo pushbutton

SET_EDIT_UNDO_ALLOWED

Export

 

 

 

Entry Export to Excel in dropdown listbox Export

 

SET_EXPORT_ALLOWED

Entry BEx Analyzer in dropdown listbox Export

Can only be shown if you configure the system accordingly (see below)

SET_BEX_ANALYZER_

ALLOWED

Print Version pushbutton and tab page

 

SET_PDF_ALLOWED

Display As

 

 

 

Display As dropdown list box

Dropdown list box is only visible if at least one of the standard functions Graphic or Excel Inplace is switched on.

SET_DISPLAY_AS_

ALLOWED

Graphic entry in Display As dropdown list box

SET_GRAPHIC_ALLOWED

Excel Inplace entry in Display As dropdown list box

SET_EXCEL_INPLACE_

ALLOWED

Send

 

 

 

Send pushbutton

 

SET_BI_BROADCASTING_

ALLOWED

Note

The names of the relevant get methods begin with IS_<METHOD NAME> and not with SET_<METHOD NAME>.

Providing Alternative Functions in the Toolbar

If you want the UI element in the toolbar to have a different type or label than the standard setting, allow use of the standard ALV function but hide the corresponding UI element. Then generate a user-defined function and assign the required standard ALV function to it.

You can replace the following UI elements for standard ALV functions in this way:

      Send dropdown list box and individual entries in the dropdown list box

      Display As dropdown list box and individual entries in the dropdown list box

      Insert Row, Append Row, and Delete Row pushbuttons

      Check pushbutton

      Undo pushbutton

      Excel and Print Version pushbuttons

      Filter pushbutton and the Define Filter and Delete Filter functions

      Settings pushbutton and the Open Settings Dialog Box and Close Settings Dialog Box functions

      Views dropdown list box

To assign a standard ALV function to a self-defined function, you use the methods of class CL_SALV_WD_FUNCTION.

Methods for Assigning a Standard ALV Function

Function

Method

Assign standard ALV function to a self-defined function

SET_FUNCTION_STD

Get standard ALV function that is assigned to a self-defined function

GET_FUNCTION_STD

More Information

      Creating, Getting, and Deleting Functions

      Controlling Visibility and Activation Status

Making System Settings for Exporting to the BEx Analyzer

If you want to make it possible to export the ALV output for your application to the BEx Analyzer, it is not sufficient to show the standard ALV functions as described above. To do this, the following prerequisites must also be met:

      Ensure that a BI system is installed. This means that the BEx Analyzer is also available.

      In SAP NetWeaver Customizing, execute IMG activity System-Wide Settings for the Web Dynpro ALV under Application Server ® Web Dynpro for ABAP

Deselect the Hide BEx Analyzer Export Function indicator.

 

End of Content Area