Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

transcation code for error messages

Former Member
0 Kudos

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,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Go to transaction SE91. You can create message classes and messages there.

Rob

5 REPLIES 5

Former Member
0 Kudos

Go to transaction SE91. You can create message classes and messages there.

Rob

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member184619
Active Contributor
0 Kudos

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