Using checkbox in SAP ABAP


How to display checkbox in SAP selection screen using SAP ABAP ? Using CHECKBOX in SAP ABAP

A+ A-

Check Box: is a selectable input box. For printing check box in SAP screen we use below  syntax.
PARAMETERS : <CHK> AS CHECKBOX.
Whenever we select (check) a check box, the value 'X' will be stored in it.

An example program of using check box in SAP

The below is the example of using radio button in SAP, the below code prints a check box on the selection screen. Select and Execute for testing.
REPORT ZSAPN_CHECK_BOX.

PARAMETERS : P_CHK AS CHECKBOX .

START-OF-SELECTION.
  IF P_CHK = 'X'.
    WRITE:/ 'Check box is selected'.
  ELSE.
    WRITE: / 'Check Box is not selected'.
  ENDIF.

Learner Questions

No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question


    Was this lesson helpful to you? Yes No 61 People out of 66 think this lesson helpful

    Lesson Navigation

    ←Previous Chapter
    Next Lesson → Modularization techniques in SAP ABAP