Skip to Content
0

Display BOPF custom message in Fiori App

Jan 05 at 04:07 AM

106

avatar image

Hi,

Have created a Fiori transactional app via Smart template. Have a BOPF Action in the app. Trying to trigger a custom message in the Action class to be displayed as Message box in Fiori List report page. I get a ugly Message box as shown in the attachment.

This is the ugly message box currently seen

message-bopf.jpg

BOPF Action message code is as below. The Message box is seen if et_failed_key is passed. If the et_failed_key is not passed, the message box is not seen.

bopf-action.jpg

Also used the below alternative code

bopf-message-2.jpg

With the above codes, I can see the message in the service response in F12 debug mode.

service-response-message.jpg

BOPF Action class is defined as below

bopf-action-1.jpg

But unable to see the message in the app.

The Ui5 Version is

ui5-version.jpg

Appreciate any ideas and suggestions.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Xie Zhanli Jan 24 at 11:07 AM
0

Hi Sujin Appukuttan,

Thanks very much for your very detail article, I encountered a trouble that the response body did contain the error message, but the front-end didn't show up.

Can you help me to solve this issue?

The message content of "Test Message" is not shown in the front-end.

Thanks

Zac


response-body.jpg (28.2 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Jan 25 at 12:45 PM
0

Hello Sujin,

When you call add_message method in your action class, try adding blow Importing parameters as well.

iv_lifetime = /bobf/cm_frw=>co_lifetime_state

iv_key = IT_KEY[ 1 ]-KEY
iv_node = is_ctx-node_key

Regards,

Pratheek

Share
10 |10000 characters needed characters left characters exceeded