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

How to skip system generated error message.

Former Member
0 Likes
598

Hi Experts,

In a selection screen I have one checkbox and a related parameter field.condition is that, when the checkbox is checked the field should be mandatory and when it is unchecked, the field should be optional.

when i am selectiong the checkbox first time it is working perfectly but without providing any value if I am trying to uncheck the checkbox it is not able to trigger the "At selection-screen output" event due to the system generated error message.

can any1 help me on that.

3 REPLIES 3
Read only

Former Member
0 Likes
488

Try this example code:

PARAMETERS: p_text(10) TYPE c.

PARAMETERS: p_check TYPE c AS CHECKBOX.

AT SELECTION-SCREEN.

IF p_check EQ 'X'.

IF p_text IS INITIAL.

MESSAGE 'Text field is mandatory' TYPE 'E'.

ENDIF.

ENDIF.

START-OF-SELECTION.

WRITE: / 'OK!'.

Read only

0 Likes
488

thanks a lot for your ans.

That means I can't use At selection-screen output in this case.

is it??

Read only

Former Member
0 Likes
488

hi

good

if you do any kind of changes in the system generated error mesages than you have to do the changes in the configuration.

thanks

mrutyun^