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

Enable/disable the screen fields dynamically

Former Member
0 Likes
834

Dear all,

can you pls provide the solution for the below.

in my requirement i have a screen which contains the 9 fields and looks like below:

1 2 3

4 5 6

7 8 9

in some conditions i need to disable the fields 5 & 8. in this case the gap will remove automatically and the fields 6 & 9 will sit in the 5 & 8 places.

Regards

Venkat

4 REPLIES 4
Read only

Former Member
0 Likes
643

in your screen loop, use

screen-input = 0.

instead of

screen-active = 0.

Read only

Former Member
0 Likes
643

try like this,

parameters:

check1 type c as checkbox user-command fcode,

check2 type c as checkbox user-command fcode,

rad1 type c radiobutton group grp1 ,

rad2 type c radiobutton group grp1 ,

rad3 type c radiobutton group grp2 ,

rad4 type c radiobutton group grp2 .

at selection-screen output.

if check1 = 'X'.

loop at screen.

if screen-name = 'RAD3' or screen-name = 'RAD4' .

screen-active = 0.

modify screen.

endif.

endloop.

endif.

if check2 = 'X'.

loop at screen.

if screen-name = 'RAD1' or screen-name = 'RAD2' .

screen-active = 0.

modify screen.

endif.

endloop.

endif.

data:

itab type table of sy-datar,

wa like line of itab.

wa = 'SAVE'.

append wa to itab.

wa = 'CANCEL'.

append wa to itab.

The gap will adjust automatically.

Read only

venkat_o
Active Contributor
0 Likes
643

Hi Venkat, set screen-active = '0' . Automatically adjusted on Selection-screen and on dialog program screen as well. Regards, Venkat.O

Read only

Former Member
0 Likes
643

Hi,,

Simply do like this

loop at screen.

if (give u r condition).

screen-active = 0.

endif.

endloop.

it may help u...

regards

sunil kumar mutyala..