‎2006 Feb 15 10:18 PM
hi all,
what is the transaction code for getting the system error messages?And how can I create my own error messages?
for eg: in a program, i want to show an error message to the user when the data is not showing up properly.
thnx,
‎2006 Feb 15 10:26 PM
Go to transaction SE91. You can create message classes and messages there.
Rob
‎2006 Feb 15 10:26 PM
Go to transaction SE91. You can create message classes and messages there.
Rob
‎2006 Feb 15 10:27 PM
Hi Sey,
Use T/code SE91 and create an error message in a message class. Then use the message in your program .
In Program : Added Lines Underlined .
ZINDEX --> Message Class.
REPORT Zprogram INE-SIZE 132
LINE-COUNT 65
<u>MESSAGE-ID ZINDEX</u> NO STANDARD PAGE HEADING.
*-- use error message in your program
MESSAGE E001 WITH TEXT-002.
TEXT-002 : will be maintaine via T/code SE91.
Hope this may help you.
Lanka
Message was edited by: Lanka Murthy
‎2006 Feb 15 10:28 PM
SE91 is the "Message Maintenance" transaction. Here you can search for existing messages and create new messages for use in the MESSAGE statement within your code.
Regards,
James Gaddis
‎2006 Feb 16 4:17 AM
Hi Sey,
I am not clear about your question.
But anyways here is my point.
1.If you want to see the Errors/Warning Messages while running a Transaction in No Screen Mode(N), you have to declare an internal table in the program and that internal table will be populated with the Errors/Warning Messages occured while running the transaction. You have to display them after the Transaction is over.
2.If you want to display a Error/Warning Message in the Status Bar in your program when some specific condition is triggered, you have to create all your messages in the SE91. Then call your message by clicking the PATTERN button and entering yor message details and the Message Category as E.
If you want to show the Message in a pop-up, enter the Message Category as I.
Here is the Code Extract:
PARAMETER: P_NUMBER TYPE I.
IF P_NUMBER IS INITIAL.
MESSAGE I000(ZVAI).
This is an error Message
ENDIF.
Hope this will help you.
Regards,
Vaitheeswaran
‎2006 Feb 16 5:35 AM
Hi Sey Ni,
<i>what is the transaction code for getting the system error messages?</i>
Transaction code :- St22
For Short dumps and system errors
<i>And how can I create my own error messages?</i>
Transaction code :- Se91
To check ny Existing 1 :-
Message class - XS
Message Number - 001
To create ur Own
Create a Message Class ex:- Zmsg , click on Message tab
here u can give message in front of number assigned say 001.
check the following link:-
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801b3e454211d189710000e8322d00/frameset.htm
U can call this message in ur ABAP program as under:-
if sy-subrc = 0.
MESSAGE <b>E</b>001(<b>zmsg</b>)."
endif.
E - Error message. I - Information message. S - Sucess message...
001 - Msg. Number.
Zmsg - Message Class.
Press F1 for more help on message.
Regards
-
Sachin Dhingra