Skip to Content
0
Former Member
Apr 18, 2011 at 07:17 PM

Selection-screen parameter mandatory for radio button selection

2543 Views

Hello,

One of the input field needs to be made mandatory when one of the radio-buttons on the selection screen is checked. I have used at selection screen output event, but if the user clicks the radiobutton that is used to make the field mandatory and then click the other one, the field is still showing as an obligatory field. Please let me know how to make the button flexible that one is selected field becomes mandatory and immediately if the other one is selected back the field needs to be optional.

This is the code I have written.

IF rad7 = 'X'.

LOOP AT SCREEN.

if screen-group1 = 'M1'.

screen-required = '1'.

MODIFY SCREEN.

endif.

ENDLOOP.