Except execute button which is implemented as default you can add new buttons to status of selection screen. In order to achieve this you must define a selection screen Function Key. Here is a code snippet to add a button to selection screen and write a condition to implement a callback routine.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
TABLES sscrfields. DATA functxt TYPE smp_dyntxt. SELECTION-SCREEN: FUNCTION KEY 1 . INITIALIZATION. functxt-icon_id = icon_write_file. functxt-icon_text = 'Adjusment Execute'. sscrfields-functxt_01 = functxt. AT SELECTION-SCREEN. IF sy-ucomm = 'ONLI'. ELSEIF sy-ucomm EQ 'FC01'. Perform call_back_for_new_button. ENDIF. |
MOST COMMENTED
ABAP / SAP ARCHITECTURE / SAP BASIS / TRANSPORT MANAGEMENT
simulate request in target system before transportation – source code – part 2
PROGRAM LIBRARY / SAP ARCHITECTURE / WEBSERVICE
consume REST oauth service from ABAP – get access token in order to call main webservice – part 1
ABAP / DICTIONARY OBJECTS / SAP BASIS
read table logs and extract table columns from DBTABLOG
ABAP / SAP PERFORMANCE
‘Exception condition “RESOURCE_FAILURE” raised’ error in parallel processing
ABAP / ALV / PROGRAM LIBRARY
converting CL_SALV_TABLE into CL_GUI_ALV_GRID
BACKGROUND JOB / SAP BASIS
‘Extended job selection’ in SM37
ABAP
selection screen custom button