2007 Aug 22 7:12 AM
Hi,
That depends on the event where u have used the error message.
In selection screen events u can use error message as control stops in selection screen it self. Where as if u used in selection events program execution is terminated by displaying an empty screen. So it is better not to use error message in start of selection events.
Regards,
Sankar
2007 Aug 22 7:31 AM
Hi..
You can use the Message statement for this..
PARAMETERS: P_MATNR TYPE MARA-MATNR.
AT SELECTION-SCREEN ON P_MATNR.
SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
IF SY-SUBRC NE 0.
<b> MESSAGE E100(ZCLASS).</b>
ENDIF.
<b>Reward if Helpful</b>
2007 Aug 22 7:34 AM
Hi
AT SELECTION-SCREEN ON P_MATNR.
SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
IF SY-SUBRC NE 0.
MESSAGE E000(Z00) WITH 'NO MATNR EXISTS'.
CLOSE ALL U R THREADS.
KIRAN.M
2007 Aug 22 7:38 AM
Hi,
That depends on the event where u have used the error message.
In selection screen events u can use error message as control stops in selection screen it self. Where as if u used in selection events program execution is terminated by displaying an empty screen. So it is better not to use error message in start of selection events.
Regards,
Sankar
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |