cancel
Showing results for 
Search instead for 
Did you mean: 

Change Error Message in Travel Expenses

Former Member
0 Kudos

Hi All,

I'm having a problem changing one of the error messages on the Create Expense Report screens in ESS Travel Expenses.

[Here's a screenshot|http://www.scehardt.com/news/image003.png]

I've changed the label to say Ticket instead of Document. Now I need to change the error message to match. I found the error message in the backend, but it is formatted as Required entry field "&" is empty. Does anyone know where Document Number is inserted into the error message? Alternately, is there a way to change the error message for that field to a custom message?

Thanks,

Scott

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

if this is a webdynpro java application u can find all the messages in the message pool of that component.

Cheers,

Apparao

Former Member
0 Kudos

Hi Friend,

Find the code snippet something like this in your code


IWDMessageManager msgMgr =
			  wdComponentAPI.getMessageManager();
			  msgMgr.reportContextAttributeMessage(
			  wdContext.current<YourNodeElement>().getAttributePointer("<YourDocumentNumberAttribute>"),
			  IMessagePackScopingComp.<Your_Error_message_key>, new Object[] {"Document Number"});
                         // Replace The Document Number from last line with your desired text

Here you can change the Text which is going to be supplied to message pool at run time.

Further you can follow this tutorial for message pool and error message.

[A Simple Input Form with Message and Error Service Support|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14?quicklink=index&overridelayout=true]

Regards

Jeetendra

Former Member
0 Kudos

Thanks for the info!

-Scott