Skip to Content
-2
Mar 11, 2021 at 07:11 AM

RADIO BUTTON SELECTION

49 Views

IF I CLICK THE RB_PER radio button it should display only id and name details.

and if i click on radio button rb_mark it should display the mark details.

please answer it.

*&---------------------------------------------------------------------*

*& Report ZSELECT1
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT ZSELECT1.

TABLES :zstudent.

selection-screen begin of block b.
PARAMETERS : P_ID TYPE ZSTUDENT-ID MODIF ID CHR.
PARAMETERS : P_NAME TYPE ZSTUDENT-NAME MODIF ID CHR.
PARAMETERS : P_MARKS TYPE ZSTUDENT-MARKS MODIF ID NUM.
parameters : rb_per type c radiobutton group r1,
rb_mark type c radiobutton group r1.
SELECTION-SCREEN end of BLOCK b.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
if rb_per = 'X'.


IF screen-group1 EQ 'NUM'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.

LOOP AT SCREEN.
IF rb_mark eq 'X'.

IF screen-group1 EQ 'CHR'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.