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 suppress system generated error?

Former Member
0 Likes
650

Hi,

I would like to suppress system defined/generated error message and rather wanna display custom error message, How to do that?

for ex: IF we enter alphabets in integer type fields...it will provide an error message like " Enter numeric value"...instead of it i want to display my message...how can i achieve this??

Regards,

Praneet

Hi,

I would like to suppress system defined/generated error message and rather wanna display custom error message, How to do that?

for ex: IF we enter alphabets in integer type fields...it will provide an error message like " Enter numeric value"...instead of it i want to display my message...how can i achieve this??

Regards,

Praneet

4 REPLIES 4
Read only

Former Member
0 Likes
621

Hi,

Try in At selection screen

write the code

Regards

Shiva

Read only

former_member404244
Active Contributor
0 Likes
621

Hi,

use at selection-screen event for validation....

and then write ur oen message in SE91(u z message class) and call

for example...

at selection-screen..

select----


if sy-subrc ne 0.

message e001(zmsg)

endif.

Regards,

Nagaraj

Read only

0 Likes
621

Hi

AT selection-screen won't work here...

I have checked..it gives system error only

Read only

0 Likes
621

Hi,

If u r refering to a field type like date it will by default bring the system generated messages only.

If you refer

SELECT-OPTIONS: s_mara LIKE mara-matnr.

Then AT SELECTION-SCREEN ON s_matnr.
 select matnr FROM mara
                    INTO mara-matnr
                    WHERE matnr IN s_matnr.
if sy-subrc = 0.
 message e000 WITH  "Enetr the correct value'
endif.

Hope u got it.