Skip to Content
0
Former Member
Jul 08, 2009 at 07:11 AM

error message.

273 Views

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.