Application Development and Automation 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: 
Read only

message text

Former Member
0 Likes
1,094

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,062

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,063

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

Read only

0 Likes
1,062

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

Read only

0 Likes
1,062

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

Read only

Former Member
0 Likes
1,062

Hi

You can create your own Z Message type and display your own messages

Regards

HItesh

Read only

0 Likes
1,062

ya that is fine but how to get the text of the standard message shown by sap

Read only

Former Member
0 Likes
1,062

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.