Using Radio Buttons in SAP ABAP


How to display radio button in selection screen using SAP ABAP ? Using RADIOBUTTON GROUP in SAP ABAP

A+ A-

Radio Button Group: is a group of radio buttons, one one radio button can be selected in on radio button group. To print radio button in SAP screen we use below syantax.
PARAMETERS : <RADIO> RADIOBUTTON GROUP <GROUP>.

Example program of using Radio Button in SAP

The below is the example of using radio button in SAP, the below code prints two radio buttons.Select and Execute for testing.

Using radio button in SAP ABAP

REPORT ZSAPN_RADIO_BUTTON.

PARAMETERS : P_RAD1 RADIOBUTTON GROUP RB1.
PARAMETERS : P_RAD2 RADIOBUTTON GROUP RB1.

START-OF-SELECTION.
  IF P_RAD1 = 'X'.
    WRITE:/ 'Radio Button1 is selected '.
  ELSEIF P_RAD2 = 'X'.
    WRITE:/ 'Radio Button2 Is selectd'.

  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 92 People out of 98 think this lesson helpful

    Lesson Navigation

    ←Previous Chapter
    Next Chapter →