Link check boxes and label in selection screen

Link check boxes and label in selection screen

You add a check box in your selection screen, want to display long text close to your check box (text longer than the standard selection text), use the synthax below, with FOR FIELD to link the added text to your check box :


SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS p_chkbx  TYPE abap_bool AS CHECKBOX DEFAULT abap_true.
SELECTION-SCREEN COMMENT 02(77) text-001 FOR FIELD p_chkbx.
SELECTION-SCREEN END OF LINE.

As a result, longer text is displayed, the behavior remains the same as standard selection text, you can click on the label to check or uncheck the check box :

Search tag : description, libéllé, case à cocher

About the author

fjourneau administrator

Hi, I'm Florian Journeau, SAP ABAP R3 Freelance, based in Toulouse, France. You want to know more about me, have a look on my CV : cv.fjourneau.net.

Leave a Reply