03-11-2021 7:11 AM
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.
03-11-2021 6:54 PM
It has been asked hundreds of times in the forum. Use PARAMETERS ... USER-COMMAND ... if you want the "pressed" parameter to trigger the PAI.