2009 Jul 08 8:11 AM
hi sap,
when i give a worng number i should get the error message with that number so i have coded like this.
message e001(z111) with zqmnum 'Notification number does not exist'.
but i get the message and not with the wrong number can you please help me as to where to correct
this is my select statement:
select QMNUM
TPLNR
QMDAT
EQUNR
STRMN
LTRMN
PRIOK
MSAUS
QMTXT
from viqmel into CORRESPONDING FIELDS OF TABLE ZNOTIFI_DET "ZIOMS_SAP
where qmnum = zQmnum.
if sy-subrc = 0.
else.
message e001(z111) with zqmnum 'Notification number does not exist'.
endif.
regards,
laya.
Hi,
If you got error in this case then select would have failed.
If you do not have any record in table with this number zQmnum then only u will get error.
Check DB table once.
Regards,
Subba
2009 Jul 08 8:16 AM
Hi,
How is your message 001 created in the message class z111.
Create it as follows:-
001 & & & &.
Have a look at message number 319 of message class 01.
Regards,
Ankur Parab
2009 Jul 08 8:19 AM
2009 Jul 08 8:17 AM
Try This message e001(z111) with zqmnum 'Notification number & does not exist'.
2009 Jul 08 8:17 AM
hi laya
in ur message class z111, for the message have & &
Regards
Sajid
2009 Jul 08 8:19 AM
Hi,
If you got error in this case then select would have failed.
If you do not have any record in table with this number zQmnum then only u will get error.
Check DB table once.
Regards,
Subba
2009 Jul 08 8:37 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |