14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13

SAPUI5

import their new versions into the SAP system. You just don’t have that problem

inside ABAP, but tools like Eclipse have to live with this on a daily basis and as

such provide a means to deal with such conflicts.

13.6.3 Testing the SAPUI5 Application from within SAP ERP

Once the SAPUI5 application has arrived inside your SAP system disguised as a

BSP, you can test it in the exact same way you would test any other BSP. You can

use SE80 and choose BSP Application and then hunt for the name of the application

you just created, and there it will be (Figure 13.45).

Figure 13.45 SAPUI5 Application as BSP Page

The eagle-eyed amongst you may have noticed that after the application code was

uploaded, it was necessary to make a ch ange to the Index.html file definition

inside SAP. Specifically, you have to replace the bootstrap section with the code

in Listing 13.27.

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

id="sap-ui-bootstrap"

data-sap-ui-libs="sap.m"

data-sap-ui-xx-bindingSyntax="complex"

data-sap-ui-theme="sap_bluecrystal">

</script>

Listing 13.27 Changes Needed to the Bootstrap File Once It Lives inside SAP

624

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!