Skip to Content

Hello,

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

Yours

Jose

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply