cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy SAPUI5 on Abap repository

Former Member
0 Kudos

Hi experts,

I'm trying to deploy a SAPUI5 application on SAP ERP. When we run the bsp application we get an error when trying to acess to bootstrap -> sandbox.js.

If we deploy the application from web IDE, neo-app.json have the path to this js file but when we deploy the app on the ERP the neo-app.json is not created so the app cannot find it.

"/test-resources/sap/ushell/bootstrap/sandbox.js."

We have found these files on SAP MIME Repository. The route is ../sap/public/bc/ui5/applications/demokit/1.36/test-resources/......... but we do not know how to point it from the index.html file.

How can we point to this files/folders from our application in order to load sandbox.js file?

Regards,

Marcos.

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

My guess is that the Sandbox.js is present in test folder, usually the test folder will not be pushed to sap. If your requirement is to access the standalone ui5 application create the index.html file in the samefolder of component.js then pust it. Now you can be able to access it. Usally the index.html will be like below.

<!DOCTYPE HTML>
<html>


	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta charset="UTF-8">


		<title>Sales Management</title>


		<script id="sap-ui-bootstrap"
			src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-core.js"
			data-sap-ui-libs="sap.m"
			data-sap-ui-theme="sap_bluecrystal"
			data-sap-ui-compatVersion="edge"
			data-sap-ui-appCacheBuster="./"
			data-sap-ui-resourceroots='{"com.XXX.XXXXX": "./"}'>
		</script>
		<script src="model/underscore.js"></script>
		<script>
			sap.ui.getCore().attachInit(function() {
				new sap.m.Shell({
					appWidthLimited : false,
					app: new sap.ui.core.ComponentContainer({
						id:"XXXXX",
						height : "100%",
						name : "com.XXX.XXXXXX"
					})
				}).placeAt("content");
			});
		</script>
	</head>


	<body class="sapUiBody" id="content">
	</body>


</html>