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 Field gray

Former Member
0 Likes
441

Hi All,

I want to gray the two fields WERKS and BURKS.Here is my piece of code.

selection-screen begin of block prog with frame title text-001.

parameters: p_werks type pa0001-werks default 'ABC',

p_burks type zabc-burks default 'Y'.

selection-screen end of block prog.

initialization.

if p_werks = '1221'.

loop at screen.

if screen-name = 'p_werks'.

screen-input = '0'.

modify screen.

endif.

endloop.

endif.

loop at screen.

if screen-name = 'p_burks'.

screen-input = '0'.

modify screen.

endif.

endloop.

Please help me in fixing this issue.

3 REPLIES 3
Read only

Former Member
0 Likes
420

selection-screen begin of block prog with frame title text-001.
parameters: p_werks type pa0001-werks default 'ABC' modif id mid,
p_burks type zabc-burks default 'Y' modif id mid.
selection-screen end of block prog.

at selection-screen output.
*if p_werks = '1221'.
loop at screen.
if screen-group1 = 'MID'.
screen-input = '0'.
modify screen.
endif.
endloop.
*endif.
*loop at screen.
*if screen-name = 'p_burks'.
*screen-input = '0'.
*modify screen.
*endif.
*endloop.

Read only

former_member156446
Active Contributor
0 Likes
420

at selection screen output event

if you just put

loop at screen

endloop.

and check the screen header line... U will know what all can be done with selection screen.

Read only

Former Member
0 Likes
420

Message was deleted by priyaabap