Did you face the problem of deploying a sapui5 application from SAP WebIDE to an ABAP repository and the sap-ui-core.js was not correct? Then you had to modify the path to deploy to the ABAP repository?

One solution is to go with two index files on web ide.

For example one localindex.html with one route for src valid on webide:

<script id="sap-ui-bootstrap" src="../resources/sap-ui-core.js" ******** data-sap-ui-theme="sap_bluecrystal" data-sap-ui-xx-bindingSyntax="complex" ******** </script>

And one second index.html with the route valid on ABAP repository, something like:

<script id="sap-ui-bootstrap" src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-core.js" ****** data-sap-ui-theme="sap_bluecrystal" data-sap-ui-xx-bindingSyntax="complex" ******* </script>

Then you can test your applications with webide using the localindex.html in your run configurations.

Exclude localindex.html when deploy

If you are using the SAPUI5 Client build in your project, so you need the following option:

You can exclude the localindex.html on the deploy to the ABAP repository just selecting the file in the Excluded files sectioin of the SAPUI5 Client Build Configuration



New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !