Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to display system error message

Dear All

I want display the system error message in try .....catch sentence , bcz this can help me to find out the error reason ,

e.g.

try 
{
}
 
catch (final Exception ex)
{
    wdComponentAPI.getMessageManager().reportException( uFF1FuFF1FuFF1F);

}

the position" ???" how to write ?

by the way ,

I not want the define error message.

e.g.

wdComponentAPI.getMessageManager().reportException("my define message",false);

Thanks

replied

Hi,

Place this in your catch block:

wdComponentAPI.getMessageManager().reportException(ex.getMessage(),true);

Regards,

Murtuza

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question