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

SAP ABAP

Former Member
0 Likes
746

Hi All,

I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.

Regards,

Himanshu Sharma

Hi All,

I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.

Regards,

Himanshu Sharma

5 REPLIES 5
Read only

Former Member
0 Likes
716

the fm is

OXT_MESSAGE_TO_POPUP

Read only

matt
Active Contributor
0 Likes
716

Moved to correct forum. Please use a more informative subject in future. Please take the time to read the Rules of Engagement

Read only

Former Member
0 Likes
716

Hi,

Try FM FORMAT_MESSAGE. Pass ID , message number and variables and receive the output.

Hope this helps.

Regards,

Sachin

Read only

christine_evans
Active Contributor
0 Likes
716

>

> Hi All,

>

> I want to know if there any function module which can directly give me the error message if i pass it the respective message class message id and the varibale which are required to make the message.

>

> Regards,

> Himanshu Sharma

BALW_BAPIRETURN_GET2

Read only

Former Member
0 Likes
716

Hi ,

You can use the following function module.

DATA : DATA : l_mstring(480).

DATA: w_message like lmess.

w_message-msgid = sy-msgid.

w_message-msgno = sy-msgno.

w_message-msgty = sy-msgty.

w_message-msgv1 = sy-msgv1.

w_message-msgv2 = sy-msgv2.

w_message-msgv3 = sy-msgv3.

w_message-msgv4 = sy-msgv4.

CALL FUNCTION 'L_MESSAGE_AUFBEREITEN'

EXPORTING

I_MESS = w_message

I_LANGU = sy-langu

IMPORTING

O_TEXT = l_mstring.

Regards

Arindam