cancel
Showing results for 
Search instead for 
Did you mean: 

syntax to print message

Former Member
0 Kudos

HI all,

Can anyone tell me the syntax to print a simple message in webdynpro java.

Regards.

subrat

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

hi

//  for a success message 
    wdComponentAPI.getMessageManager().reportSuccess("success message");
  //  for a warning message
	wdComponentAPI.getMessageManager().reportWarning("warning message");
  //	for an error message 
   wdComponentAPI.getMessageManager().reportException("message ", true); // second parameter is cancel navigation 
   // plus you can add the messages in message pool and call them from there using 
   wdComponentAPI.getMessageManager().reportMessage(IMessageTest134app.ERROR, new Object[0], true);

thanks

Sarbjeet singh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use the below code:



wdComponentAPI.getMessageManager().reportSuccess("Your Text");

Also refer to the link: [Messages|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/837d9290-0201-0010-1381-e633fe17cb14?quicklink=index&overridelayout=true]

Hope it helps.

Regards,

Manoj

Former Member
0 Kudos

Thanx Sarbjeet and Manoj for your answers....

Regards.

Subrat