Application Development and Automation 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: 
Read only

selection screen

Former Member
0 Likes
539

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

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
519

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>

5 REPLIES 5
Read only

gopi_narendra
Active Contributor
0 Likes
519

at selection-screen output is the relevant event

Regards

- Gopi

Read only

Former Member
0 Likes
519

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

Read only

Former Member
0 Likes
519

Hi,

Which attribute you want to change..

You can use the event AT SELECTION-SCREEN OUTPUT.

Thanks,

Naren

Read only

anversha_s
Active Contributor
0 Likes
520

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>

Read only

Former Member
0 Likes
519

At selection screen output.

hide or change the data of screen whatever u want.