SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → User Dialogs → Selection Screens → Create Selection Screens → SELECTION-SCREEN → SELECTION-SCREEN - screen_elements →
SELECTION-SCREEN - FUNCTION KEY
Syntax
SELECTION-SCREEN FUNCTION KEY n [ldb_additions].
Effect
In the GUI status of the selection screen set by the system, the application toolbar contains five inactive pushbuttons, to which the function codes "FC01" to "FC05" are assigned. This statement activates the pushbutton of the function code "FC0n", where a value between 1 and 5 must be entered for n.
To enable use of the pushbuttons, the statement TABLES must be used to declare an interface work area of the structure SSCRFIELDS from ABAP Dictionary.
If a text is assigned to the component functxt_0n of the interface area sscrfields before the selection screen is called, this text is displayed on the relevant pushbutton. Otherwise, the pushbutton does not contain any text.
When the user chooses a pushbutton in the application toolbar, the runtime environment triggers the event AT SELECTION-SCREEN and the associated function code is passed to the component comm of the interface work area sscrfields.
The ldb_additions can only be used in the selection include of a
logical database.
Notes
Example
See Selection Screens, Pushbuttons in Application Toolbar