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: 

Coding ma selection screen of report

Former Member
0 Kudos

suppose i hav

field (all visible)

a

b

c

and den a check box

d

again a field (non visible)

e

f

**************************

intial my chck box d should be blank

when i tick my d check box

my field my invisible field shld be visible

in my selection screen

plz help me with the code

Title was edited by:

Alvaro Tejada Galindo

2 REPLIES 2

former_member195698
Active Contributor
0 Kudos

Hi,

Raising an event is not possible with the use of a check box.

There are two options

1) Press Enter to Raise event

2) Use Radio button (Doesn't make sense)

In the selection-screen output event based on the Checkbox, enable or disable the fields based on the ENTER button press

Thanks & Regards,

Abhishek

Former Member
0 Kudos

Do something like this .........

selection-screen begin of block sel2 with frame title z02.

parameters: p_bos radiobutton group rad1 user-command mode,

p_rohs radiobutton group rad1 default 'X',

p_bapi radiobutton group rad1,

p_wlist radiobutton group rad1.

parameters: p_alvvar type slis_vari no-display.

selection-screen end of block sel2.

selection-screen skip.

selection-screen begin of block sel1 with frame title z01.

select-options: s_matnr for estmj-matnr modif id sub,

s_spec for estrh-subid modif id sub.

parameters: p_skip1 as checkbox default 'X' modif id skp,

p_force as checkbox modif id trc,

p_sim as checkbox default ' ' modif id rol,

p_trace as checkbox modif id trc.

selection-screen end of block sel1.

parameters: s_subid type string no-display.

.

.

.

at selection-screen.

if sy-ucomm = 'MODE'.

perform f_adjust_fields.

else.

if s_matnr[] is initial and s_spec[] is initial

and ( p_bos = 'X' or p_rohs = 'X' ).

message e000(38) with 'Please specify blah blah'

'or a specification number' '' ''.

endif.

endif.

.

.

.

at selection-screen output.

perform f_adjust_fields.

.

.

.

form f_adjust_fields .

loop at screen.

if screen-group1 = 'SUB'.

if p_wlist = 'X'.

"Hide

screen-active = '0'.

screen-request = '1'.

screen-invisible = '1'.

else.

"Show

screen-active = '1'.

screen-request = '1'.

screen-invisible = '0'.

endif.

modify screen.

elseif screen-group1 = 'SKP' or screen-group1 = 'TRC'.

if p_bos = 'X' or p_rohs = 'X' .

"Hide

screen-active = '0'.

screen-request = '1'.

screen-invisible = '1'.

else.

"Show

screen-active = '1'.

screen-request = '1'.

screen-invisible = '0'.

endif.

modify screen.

elseif screen-group1 = 'ROL'.

if p_rohs = ' ' .

"Hide

screen-active = '0'.

screen-request = '1'.

screen-invisible = '1'.

else.

"Show

screen-active = '1'.

screen-request = '1'.

screen-invisible = '0'.

endif.

modify screen.

endif.

endloop.

endform. " f_adjust_fields

Best!