‎2006 Nov 28 4:20 AM
Hi,
how can i change the attributes of standard selection screen 1000 just by clicking a radio button . I know how to change the attributes but I want that as i click on the radiobutton , attributes get changed.i want to know what syntax i have to use on at selection screen event.
Regards
Rahul
‎2006 Nov 28 4:27 AM
hi,
chk this full code.
report abc.
*-------------------------------------------
PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
PARAMETERS : R2 RADIOBUTTON GROUP RG .
*-------------------------------------------
selection-screen begin of block b1 with frame.
parameters : a(10) type c modif id abc.
parameters : b(10) type c modif id abc.
selection-screen end of block b1.
selection-screen begin of block b2 with frame.
parameters : c(20) type c modif id def.
parameters : d(20) type c modif id def.
selection-screen end of block b2.
*-------------------------------------------
at selection-screen output.
IF R1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'DEF'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.rgds
Anver
<b><i>if hlped pls mark points</i></b>
‎2006 Nov 28 4:22 AM
‎2006 Nov 28 4:24 AM
Hi
Use MODIF ID with the screen fields
Event
At Selection-screen output
loop at screen.
if screen-group = 'group in MODIF ID'.
screen-visible = 0.
endif.
modify screen
‎2006 Nov 28 4:24 AM
Hi,
Which attribute you want to change..
You can use the event AT SELECTION-SCREEN OUTPUT.
Thanks,
Naren
‎2006 Nov 28 4:27 AM
hi,
chk this full code.
report abc.
*-------------------------------------------
PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
PARAMETERS : R2 RADIOBUTTON GROUP RG .
*-------------------------------------------
selection-screen begin of block b1 with frame.
parameters : a(10) type c modif id abc.
parameters : b(10) type c modif id abc.
selection-screen end of block b1.
selection-screen begin of block b2 with frame.
parameters : c(20) type c modif id def.
parameters : d(20) type c modif id def.
selection-screen end of block b2.
*-------------------------------------------
at selection-screen output.
IF R1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'DEF'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF R2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.rgds
Anver
<b><i>if hlped pls mark points</i></b>
‎2006 Nov 28 5:02 AM
At selection screen output.
hide or change the data of screen whatever u want.