Skip to Content

Display BOPF custom message in Fiori App

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 24 at 11:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25 at 12:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded