Adding Push Buttons in Selection Screen Toolbars - SAP ABAP


Adding Push Buttons in Toolbars

SAP ABAP

The screen fields in the selection screen are controlled by the structure SSCRFIELDS.


You have at max of 5 push buttons to be used in the selection screen.


Push buttons are declared in the selection screen using FUNCTION KEY.


Each FUNCTION KEY is assigned to the SSCRFIELDS structure and the text label for the push buttons can be labelled in the structure elements. See the program below.


In the initialization event, the respective texts for the buttons are assigned to the functxt_01 to functxt_05.


In the AT SELECTION-SCREEN event, the function code is automatically assigned in the
SSCRFIELDS-UCOMM.




Output










No comments:

Post a Comment