Here is some example of code if you want to make radiobutton validation in abap.
REPORT zradio_button.
PARAMETER: r_a RADIOBUTTON GROUP rd DEFAULT 'X',
r_b RADIOBUTTON GROUP rd.
PARAMETER: p_matnr TYPE matnr,
p_order TYPE aufnr.
CONSTANTS c_x(1) TYPE c VALUE 'X'.
DATA: v_a(1) TYPE c ,
v_b(1) TYPE c.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rd.
CLEAR: v_a, v_b.
IF r_a EQ c_x.
v_a = c_x.
ENDIF.
IF r_b EQ c_x.
v_b = c_x.
ENDIF.
AT SELECTION-SCREEN ON p_matnr.
IF v_a EQ c_x.
IF p_matnr IS INITIAL.
MESSAGE e000(zad) WITH 'Please enter material no'.
clear v_a.
ENDIF.
ENDIF.
AT SELECTION-SCREEN ON p_order.
IF v_b EQ c_x.
IF p_order IS INITIAL.
MESSAGE e000(zad) WITH 'Please enter order no'.
clear v_b.
ENDIF.
ENDIF.
Ulasan Bermain Game Slot Pragmatic Play
1 year ago
0 comments:
Post a Comment