Application Development 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: 

Long text in an Error message

Former Member
0 Kudos
145

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

Former Member
0 Kudos
88

Try using fm BAPI_MESSAGE_GETDETAIL -

Import: Message Id, #, variables and formats;

Export: formatted message text and long text.

Former Member
0 Kudos
88

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

Former Member
0 Kudos
88

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

Suresh

Former Member
0 Kudos
88

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>.