2007 Feb 21 6:58 AM
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
2007 Feb 21 7:02 AM
2007 Feb 21 7:06 AM
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
2007 Feb 21 7:14 AM
Hi
AT selection-screen won't work here...
I have checked..it gives system error only
2007 Feb 21 7:19 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |