07-11-2006 2:05 PM
I'm new in ABAP and I'm trying to display a error message in the screen with the follow statement:
MODULE read_sflight INPUT.
SELECT SINGLE * INTO CORRESPONDING FIELDS OF sdyn_conn FROM sflight
WHERE carrid = sdyn_conn-carrid
AND connid = sdyn_conn-connid
AND fldate = sdyn_conn-fldate.
IF sy-subrc NE 0.
MESSAGE e038.
ENDIF.
ENDMODULE. " check_sflight
But it is not working. I got the error sintaxis below:
"MESSAGE-ID xx" is missign the "REPORT" statement.
I have checked already the transaction SE91 and the message exist.
Many thanks.
Cristina
07-11-2006 2:07 PM
Hi cristina,
1. In the main program,
give the ID.
2. eg.
REPORT abc message-id XYZ.
regards,
amit m.
07-11-2006 2:07 PM
MESSAGE e038<b>(<Message class name>)</b>.
GIve the message class name in which 038 message exists.
Regards,
ravi
07-11-2006 2:07 PM
Hi cristina,
1. In the main program,
give the ID.
2. eg.
REPORT abc message-id XYZ.
regards,
amit m.
07-11-2006 2:07 PM
HELLO;
GIve the message Id
F sy-subrc NE 0.
MESSAGE e038(MEssagfe-ID).
ENDIF.#
Else give it in the report stmt
Report xxxx message-id xxx.
Please reward the points.
Vsanth
07-11-2006 2:08 PM
Hi
or u indicate the messages class while calling the message:
MESSAGE e038(XX).
or u indicate it in the TOP-INCLUDE:
program <program> message-id xx.
Max