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

Long text in an Error message

Former Member
0 Likes
895

Hi

I want to capture the long text for a particular message belonging to a message class.

Please tell me where(basically which SAP Table) is the text stored in SAP?

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
838

Try using fm BAPI_MESSAGE_GETDETAIL -

Import: Message Id, #, variables and formats;

Export: formatted message text and long text.

Read only

Former Member
0 Likes
838

Hi,

You can use the FM 'FORMAT_MESSAGE' to get the long text. You need to pass the Message ID ( Message Class), Language, Message Number & the 4 variants. You will get the long text in the msg parameter.

Suresh

Read only

Former Member
0 Likes
838

You can refer to table T100 also. This table holds the Application area, message number & text.

Suresh

Read only

Former Member
0 Likes
838

You have to use function modules for that. Use DOCU_GET function module and pass ID = NA, LANGU = SY-LANGU, OBJECT = <value obtained by calling another function module DOCU_OBJECT_NAME_CONCATENATE and passing DOCU_ID = NA, ELEMENT = MESSAGE CLASS and ADDITION = MESSAGE NUMBER>.