06-05-2009 11:12 AM
Hi,
I have a requirement, where I have to create selection screen with 5 radio buttons. Clicking on different radio buttons, will enable / disable few fields from display. Here the problem is there are few mandatory fields. So, if I am changing the radio button selection, standard is throwing the error for entering values in all mandatory fields.
Is there any way to avoid this error message when there is a change in radio button selection and throw the message when user presses enter key or executes the program using F8?
Thanks in Advance,
Phani.
06-05-2009 11:21 AM
Hi Phani,
You cna remove the obligatory clause from the mandatory parameters and check for their value in at selection screen. Throw an error msg then.
Regards,
Saumya
06-05-2009 11:17 AM
Remove the obligatory and use At selection screen on field for mandatory option.
06-05-2009 11:21 AM
Hi Phani,
You cna remove the obligatory clause from the mandatory parameters and check for their value in at selection screen. Throw an error msg then.
Regards,
Saumya
06-05-2009 11:25 AM
Depending on the radio button show or display input fields.
Do not use obligatory or mandatory for the screen
if it is Report program name then use AT-SELECTION SCREEN.
If it is Module pool programming then you can use chain end chain statement.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
...
ENDCHAIN.
check if the fields are initial or not depending on the radio buttons
Edited by: Debashree Patnaik on Jun 5, 2009 12:26 PM
06-05-2009 11:29 AM
you have to write In at selection screen comman
LOOP AT SCREEN.
CHECK screen-group1 = 'CHG'.
screen-required = '0'.
screen-output = '1'.
screen-input = '0'.
MODIFY SCREEN.
ENDLOOP.