Skip to Content
0
Aug 25, 2023 at 07:01 AM

Error-displaying in an Fiori-template List Report Application

70 Views

Hi experts!

I created an List Report Application from TemplateSelection for SAP-table T024D with

an SEGW CRUD-service.

The CRUD-service works fine and i can use it for all entries in the table for create/read/update/delete them.

In manifest.json i put in in the ‘pages’-section this for fully managing all entried in the table via the app:

manifest1

And in SEGW re-definitions of CREATE_ENTITY & UPDATE_ENTITY i put error-checking for 2 fields of table T024D in:

  1. Field DSNAM (Name) not initial
  2. Field DSTEL (Telefon) numerical and with 4-digits

If an error is detected in these methods an execption is thrown with HTTP-code 409:

The problem is i can see in the front-end in the console the error

but the app gives a positive-feedback-toast although the change has been not executed in the database:

Is there a way to insert my error-message into this template-app as toast or error-window?

Maybe in the code of template-buttons ‘Create’ or ‘Edit’?:

Please help!