2013 Mar 13 10:17 AM
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.
2013 Mar 13 10:49 AM
2013 Mar 13 10:43 AM
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
2013 Mar 13 10:44 AM
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
2013 Mar 13 10:49 AM
2013 Mar 13 10:51 AM
Read the message text from table T100. You can read the text in the appropriate language and pass T100-TEXT to your table..