Use the function module “COPO_POPUP_TO_DISPLAY_TEXTLIST” to create custom F1 help for checkbox and radio button in SAP ABAP.
DATA: gt_text TYPE TABLE OF tline, gwa_text TYPE tline. *&---------------------------------------------------------------------* *& Selection Screen *&---------------------------------------------------------------------* PARAMETERS: p_chk AS CHECKBOX. *&---------------------------------------------------------------------* *& At Selection Screen Event *&---------------------------------------------------------------------* AT SELECTION-SCREEN ON HELP-REQUEST FOR p_chk. gwa_text-tdformat = 'U1'. " To display text in blue color gwa_text-tdline = 'F1 Help'. APPEND gwa_text TO gt_text. CLEAR gwa_text. gwa_text-tdline = 'ABAP Demo Checkbox'. APPEND gwa_text TO gt_text. CLEAR gwa_text. CALL FUNCTION 'COPO_POPUP_TO_DISPLAY_TEXTLIST' EXPORTING titel = 'F1 Help' TABLES text_table = gt_text.
When you press F1 on checkbox on selection screen, the following popup will be displayed.