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

passing message

Former Member
0 Likes
771

Hello,

Kindly help me.

i want the message :for example

MESSAGE E118 WITH POMAT-MTART to be passed to a field in an iternal table.

for example:

TYPES:BEGIN OF ty_error,
       error(150) TYPE C,
       END OF ty_error.

DATA :it_error TYPE TABLE OF ty_error,
       wt_error TYPE ty_error.

i want wt_error-error to contain the message as per in

MESSAGE E118 WITH POMAT-MTART.

i have tried it with text-symbols,its working.but without text-symbols i need to do so that it would avoid translation problems.

Kindly help me.

Regards,

Namitha.




1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
694

Why don't you code a simple

MESSAGE E118 WITH POMAT-MTART INTO field.

Regards,

Raymond

4 REPLIES 4
Read only

Former Member
0 Likes
694

Hi Namita,

You have to find the message class of the message.

Add the message class to the top of the porgram.

Also else simply you can write

MESSAGE E118(MESSAGE_CLASS).

Hope this helps.

Thanks,

Tooshar Bendale

Read only

Former Member
0 Likes
694

HI Namitha,

Call FM FORMAT_MESSAGE , Pass MSGID,MSGNR,LANGUAGE,MSGV1.

It will return  TEXT , Take this TEXT and Pass this MSG into ur internal table.

It will solve ur problem.

Thanks

Tarak

Read only

RaymondGiuseppi
Active Contributor
0 Likes
695

Why don't you code a simple

MESSAGE E118 WITH POMAT-MTART INTO field.

Regards,

Raymond

Read only

Former Member
0 Likes
694

Read the message text from table T100. You can read the text in the appropriate language and pass T100-TEXT to your table..