cancel
Showing results for 
Search instead for 
Did you mean: 

Display of messages from R3 Business Objects in Web Dynpro

Former Member
0 Kudos

Hi,

Please let me know how to display the messages that are given by the R3 Business Objects(BOs) in the WebDynpro view.

Example : Suppose I save a record using the GCP APIs and need to display the message "Save successful/save aborted due to...." given by BO in the view.

Awaiting your kind response.

Regards,

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

GCP APIs should provide this functionality.

Ex: If save record fails then API will raise some exception.You can catch those exceptions and you can print your own messages .

Regards, Anilkumar

Former Member
0 Kudos

Hi,

I was able to get the BO messages using IMessageList and IMessage GCP API's.

sample code :

IMessageList msgList;

msgList = sf.getAllMessages();

//sf is of type IServiceFacade.

IMessage msg;

for(int i=0; i<msgList.size();i++){

msg = (IMessage)msgList.getMessage(i);

wdComponentAPI.getMessageManager().reportSuccess("BO msgs = "+msg);

}

Regards,

Mahesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anil,

The method you suggested displays the string that I enter in my code (man.reportsuccess"...").

But what I want is to just display the text that I get from the backend and not the string I write in code.

The question is...how to access this backend BO messages??

Regards,

Mahesh

Former Member
0 Kudos

Hi,

You can use MessageManager to display the messages.

Ex:

IWDMessageManager man=wdThis.wdGet<<Controller>>().wdGetAPI().getMessageManager();

man.reportSucess("<<Message>>");

man.reportWarning("<<Message>>");

Regards, Anilkumar