Preview function in the service binding does not work and starts Notepad
Since I saw this issue now for the second time I wanted to post the issue alongside with the solution as a blog.
A developer has published an OData service using a service binding and wants to use the preview using the simple list reporting Fiori application build into ABAP Development Tools for Eclipse as described here.
When the developer clicks on the Preview button the following error message
“Cannot find the .txt file” pops up.
The problem here is that the file extension .html is not associated to a browser such as Chrome or Edge but to notepad.txt.
The problem can be fixed by changing the default program for files with the extension .html as described in the Microsoft Online help.
Start searching for “default”.
and click on the icon for “Default-apps” and choose the link “default apps by file type“.
Here you have to change the setting for “.html” from Notepad to your favorite browser.
Thanks Andre - it fixed the long pending issue.
I am facing an issue where I created a SB and Preview button is neither opening a browser nor I am getting txt file pop up.I checked the settings in eclipse->windows->preference->General->Web Browser changing to external web browser i cant see any action happening. If you can show some pointers probably they can be of help.
The settings in Eclipse are not relevant for the preview.
As you can see my settings are such that the internal web browser is supposed to be used by default.
But ADT obviously uses the default system web browser or better said (on windows) the application that is configured as the default app for html files.
Have you checked what is configured on Windows operating system level which app is supposed to be started when a html file is to be opened ?
Thank you so much for posting this!
This has solved my issue of not being able to preview the Application.
Thanks & Regards.
This solved my issue too.
I'm getting this message while creating a service binding "Service Binding not supported in the selected project" , I tried different version of eclipse but no luck.
it was working before but suddenly starts getting this message.
What ABAP Application Server version are you using?
ABAP Environment in SAP BTP ?
SAP S/4HANA on premise? If yes, which version?
Hi Andre ,,
Thanks for your response.
We are on : SAP S/4HANA on premise 2020 Initial Shipment Stack