Skip to Content

Display sap-message created by CAP Backend when calling function imports

Hello SAP Fiori Elements Experts,

in a SAP Cloud Application Programming Model application I can use and req.error to fill the sap-message HTTP header. I've added an action checkConsistency which is bound to the Orders entity in my sample project bookshop-demo. Following this forum post CAP / Fiori execute bound action for multiple entities in Fiori worklist page from Manuel Seeger I've added the needed annotations and see now a button "Check Consistency" when I list the orders:

Unfortunately the message does only appear after I've implemented a adaptTransientMessageExtension following the documentation Adapting Transient Messages that Come from the Backend. My expectation would be that all messages provided by the backend are displayed. Unfortunately the error returned from Order Number 1 results in this error page:

And the information returned from Oder Number 2 isn't displayed at all.

Looking forward for your insights.

Best regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.