cancel
Showing results for 
Search instead for 
Did you mean: 

error in SAP WEB IDE 'SAP is not defined'

Former Member
0 Kudos
1,970

HI:ALL

     I was creating app in local SAP web IED and deploy to sapui5 abap repository .it's success when I tried to run in local sap web ide,

but it's fail and error 'SAP is not defined' when I go to run 'test' index html in se80

<!DOCTYPE HTML>


<html>

  <head>

  <meta http-equiv="X-UA-Compatible" content="IE=edge" />

  <meta charset="UTF-8">

  <title>QuickStartApplication</title>

  <script id="sap-ui-bootstrap" src="../../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-resourceroots='{"QuickStartApplication": ""}'>

  </script>

  <link rel="stylesheet" type="text/css" href="css/style.css">

  <script>

  sap.ui.getCore().attachInit(function() {

  new sap.m.Shell({

  app: new sap.ui.core.ComponentContainer({

  height : "100%",

  name : "QuickStartApplication"

  })

  }).placeAt("content");

  });

  </script>

  </head>

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

  </body>

</html>


Please help me in resolving this.

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

sapui5 library is not loaded.

try as saurabh said use

<script id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"

or load it from any other server or from local folder

saurabh_vakil
Active Contributor
junwu
Active Contributor
0 Kudos

src="../resources/sap-ui-core.js