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 Validations

PS_1978
Active Participant
0 Likes
1,006

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.

1 ACCEPTED SOLUTION
Read only

saumya_govil
Active Contributor
0 Likes
968

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

4 REPLIES 4
Read only

Former Member
0 Likes
968

Remove the obligatory and use At selection screen on field for mandatory option.

Read only

saumya_govil
Active Contributor
0 Likes
969

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

Read only

Former Member
0 Likes
968

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

Read only

Former Member
0 Likes
968

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.