How to access the SAP Gateway Error Log as a SAP UI5 developer
Updates:
- 04.02.2018 – correction where to find the server URL
When developing SAP Fiori applications UI developers may run into the problem that an error is raised by the OData service that they are calling.
A typical error message will contain the message that the consumer of the OData service shall run the SAP Gateway Error Log in order to find the root cause of the problem.
However not all SAP UI5 developers have a SAPGUI installed on their computer …
Fortunately there is a solution for that if you use the SAP WebGui.
The server name and port number of the SAP Gateway / SAP Fiori Frontend Server is either known from the server name and port used by the SAP Fiori Launchpad or when doing development in SAP Web IDE you can check the definition of your destination.
Then it is possible to start most transactions via the Web Gui
http(s)://<server>:<port>/sap/bc/gui/sap/its/webgui?~TRANSACTION=<my transaction code>
Please note that most SAP Gateway related transactions contain a namespace (either “/IWFND” or “/IWBEP”).
The slash “/” that is used here as part of a URL parameter has to be escaped via “%2F”.
So when you want to start the transaction for the error log “/iwfnd/error_log” you should use the following URL
http(s)://<server>:<port>/sap/bc/gui/sap/its/webgui?~TRANSACTION=%2Fiwfnd%2Ferror_log
If you want to have a look at the error log on the ES5 demo system you can try out the following URL
In order to use this URL you have to register for a user in the ES5 demo system as described in my following blog:
Hi Andre,
Where can we find the Server name and port number in Developer tools?
Regards,
Amrit
Hi Amrit,
the developer are actually not needed to find out the server name and port (I corrected my statement). You will either know these parameters because you are using a SAP Fiori application that has already been deployed on the SAP Fiori Launchpad running on the same host or when doing development you would have to check the destination in your SAP Cloud Platform cockpit since in the developer tools you will only find the URL pointing to SAP Web IDE.
Regards,
Andre
Unfortunatly the /IWFND/GW_CLIENT transaction to replay a request (not available in ES5 because of privacy customization) which lead to the error is unusable in webgui and dumps.
Hi Wolfgang,
/IWFND/GW_CLIENT cannot be run in GW_CLIENT and I got a dump even after I changed the error log setting to full for the backend error log.
What does however work is navigation to the backend error log if needed. I added a changed screen shot showing that.
Best Regards,
Andre
Hi Andre,
well, the dump is a bit unfortunate, because the replay from error_log is very helpful and replay in browser does also not work (since ES5 think it is reachable via vmw6271.dmzwdf.sap.corp which is of cource not reachable for the "normal" es5 user...).
Regards,
Wolfgang
PS the dump comes also up in our systems, will creating an oss incident help in getting rid of the dump?
Hi Wolfgang,
a dump should not occur.
Yes, raising an error message should help.
Best Regards,
Andre