Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RADIO BUTTON SELECTION

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.

1 REPLY 1

Sandra_Rossi
Active Contributor

It has been asked hundreds of times in the forum. Use PARAMETERS ... USER-COMMAND ... if you want the "pressed" parameter to trigger the PAI.