2008 Feb 25 7:13 AM
Hi all,
Can anyone tell me where are the texts for standard messages are stored.
Is there any function which accepts message no & returns message text .
reply fast
its urgent
2008 Feb 25 7:13 AM
Hi,
All SAP messages (viewed from SE91) are stored in DB table T100.
You dont need a function module to get the text of a mesage use the syntax:
DATA: v_message_text TYPE string.
MESSAGE ID <message_ID>
TYPE <message_type>
NUMBER <message_number>
WITH <message_v1> <message_v2> <message_v3> <message_v4>
INTO v_message_text.
Here, v_message_text will contain the entire text of message.
Cheers,
Aditya
Hi all,
Can anyone tell me where are the texts for standard messages are stored.
Is there any function which accepts message no & returns message text .
reply fast
its urgent
2008 Feb 25 7:13 AM
Hi,
All SAP messages (viewed from SE91) are stored in DB table T100.
You dont need a function module to get the text of a mesage use the syntax:
DATA: v_message_text TYPE string.
MESSAGE ID <message_ID>
TYPE <message_type>
NUMBER <message_number>
WITH <message_v1> <message_v2> <message_v3> <message_v4>
INTO v_message_text.
Here, v_message_text will contain the entire text of message.
Cheers,
Aditya
2008 Feb 25 8:12 AM
sir but I have only message type and msgnr.
Actually I am doing BDC by call transaction and trying to get records which have error.
tell me how to do it.
send me a sample code if possible
2008 Feb 25 8:30 AM
Hi,
After the CALL TRANSACTION, you would have the message details moved into an internal table of type BDCMSGCOLL.
Now this structure has the following fields:
MSGTYP
MSGSPRA
MSGID
MSGNR
MSGV1
MSGV2
MSGV3
MSGV4
Hence what you do is:
LOOP AT itab_msgcoll INTO wa_msgcoll.
CLEAR v_message_text.
MESSAGE ID wa_msgcoll-MSGID
TYPE wa_msgcoll-MSGTYP
NUMBER wa_msgcoll-MSGNR
WITH wa_msgcoll-msgv1 wa_msgcoll-msgv3
wa_msgcoll-msgv2 wa_msgcoll-msgv4
INTO v_message_text.
WRITE:/ v_message_text.
ENDLOOP.
Hope this helps.
cheers,
Aditya
2008 Feb 25 8:15 AM
Hi
You can create your own Z Message type and display your own messages
Regards
HItesh
2008 Feb 25 8:16 AM
ya that is fine but how to get the text of the standard message shown by sap
2008 Feb 25 8:18 AM
Hi,
U can create a message class BDCMSGCOLL
in the program itself in CALL TRANSACTION.It will gives us
all the
error records.If it is a normal message it shuld call with a
message class followed by message no.U can find these
messages by using the transaction SE91.
Please reward points,
Regards,
Sunil.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |