on 02-13-2012 6:20 AM
Hi experts,
I am preparing a report to display the failed messages.I I want desctription for the meeasge.
I need why message failed for ex: "global key is invalid" like that.
How to get these description of failed message
Thanks in advance
Dear Ravi
One option is to check the table SXMSPMAST.
It ahs a field called MSGSTATE which contains the status code (21,3,14,29 etc) of each message.
You can wtrite write a report to get the status code and then convert the status code into the meaningfull description.
Sourabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sourabh and ganesh,
Thanks for the reply.
Here in T100 table to find out the appropriate message we need application area.How to find out the which application area.
@ sourabh
did u mean finding out using t100 table.
Here i am not able to find out the description of messages
Edited by: ch_ravi_sap on Feb 14, 2012 9:58 AM
Hi,
To read the messages from message no
Use function MESSAGE_FORMAT which will give you text which you are looking for. This messages are read from T100 table by this function. You can not manually read them.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = P_MSGID
LANG = SY-LANGU
NO = P_MSGNO
V1 = P_MSGV1
V2 = P_MSGV2
V3 = P_MSGV3
V4 = P_MSGV4
IMPORTING
MSG = P_TEXT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC EQ 0.
WRITE:/ P_TEXT.
ENDIF.
Regards,
Vinit
Hi,
Goto transaction SE91 - Message Maintenance.
Messages allow you to communicate with the users from your programs.
They are mainly used when the user has made an invalid entry on a screen.
To send messages from a program, you must link it to a message class.
Each message class has an ID, and usually contains a whole set of message. Each message has a single line of text, and may contain placeholders for variables (e.g. & & & - three variables).
All messages are stored in table T100.
Once you have created a message, you can use it in the MESSAGE statement in a program.
regards,
ganesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.