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 Catching

Former Member
0 Likes
596

Hi All,

Using MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4, how can I display the exact message shown in a status bar of a transaction?

The code above matches the message id but doesnt show the exact message.

Best regards,

Kenny

4 REPLIES 4
Read only

Former Member
0 Likes
567

You can use function

Format_message

Pass all the parameters . It will return you the exact message

Message was edited by: Naresh Kumar Malik

Read only

Former Member
0 Likes
567

Hi

try this one

<b>BAPI_MESSAGE_GETDETAIL</b> and see the documentations how to use ?

Regards

Prabhu

Read only

Former Member
0 Likes
567

hi you could use the function module

CALL FUNCTION 'MESSAGE_TEXT_BUILD'

EXPORTING

msgid = sy-msgid

msgnr = sy-msgno

msgv1 = sy-msgv1

msgv2 = sy-msgv2

msgv3 = sy-msgv3

msgv4 = sy-msgv4

IMPORTING

message_text_output = i_error-text.

Note

Award Points for helpful answers

Read only

Former Member
0 Likes
567

Hi,

At the end of the transaction final message will come double click that message and get that message no and give it in message no it will display specific message what it displays.

If it helps reward points

Regards,

Nandha.