Skip to Content
0
Dec 06, 2004 at 07:42 AM

Messages Handling

41 Views

How to implement sy-msgid in our programs?

For example.

REPORT ztest message-id sy-msgid.

TABLES mara.

SELECT SINGLE * FROM mara WHERE matnr = 'X'.

IF sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Above code returns a dump sayind message type unknown. How to correct it?

And also whether it's possible to use two different message ids in the same program?

Advance thanks.

Regards,

V. Balaji.