Application Development 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: 

Selection Screen Validations

sivapuram_phanikumar
Active Participant
0 Kudos

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

saumya_govil
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

saumya_govil
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.