Sample Code:
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS : p_rb1 RADIOBUTTON GROUP p2
USER-COMMAND dtl “ if you wanted to control
MODIF ID dtl.
SELECTION-SCREEN COMMENT 4(10) text-rb1.”RB1 Text
PARAMETERS : p_rb2 RADIOBUTTON GROUP p2 MODIF ID sum.
SELECTION-SCREEN COMMENT 18(12) text-rb2."RB2 Text
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: END OF BLOCK b1.
Any change in the radio buttons can be validated as follows:
AT SELECTION-SCREEN OUTPUT.
IF p_rb1 IS NOT INITIAL AND p_onli IS NOT INITIAL AND p_vari IS INITIAL.
“ p_onli and p_vari are some variables that needs validation
SET CURSOR FIELD 'P_VARI'.
MESSAGE s999(zz) WITH 'Please Enter Layout Variant '.
ENDIF.
No comments:
Post a Comment