Skip to Content
avatar image
Former Member

Can I test a SAPUI5 application on PHP Web Server?

Hi,

I have developed a SAPUI5 web application in Eclipse and I was successfully test it on locally ,that is on both the embedded jetty server and a JAVA web server(eg. Apache Tomcat).

I have developed it for productive use and now I want to deploy it to a PHP web server.

I used the simple proxy configuration in my application to acces the OData services from the ABAP system. since I cannot use this for productive use how can I run the application successfully If I use a PHP web server?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 24, 2017 at 06:10 AM

    Yes, you can run SAPUI5 apps on top of any platform. It is a platform independent application.

    But for the best practice purpose, I recommend you to use ABAP or HANA system.

    Add comment
    10|10000 characters needed characters exceeded

    • yes, you should do... use below code under header section of ODATA call.

      Access-Control-Allow-Origin : '*'
      
      https://openui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.odata.ODataModel.html
      {map}mParameters.headers?a map of custom headers like {"myHeader":"myHeaderValue",...},
      
  • Mar 29, 2017 at 03:46 PM

    Steps:

    1. Upload the files to your server.
    2. In Index.html point to the CDN resource library (Available from internet) or download the openui5 libraries and upload the resources folder in your PHP server
    3. in index.html, point to the uploaded resources/sap-ui-core.js

    Add comment
    10|10000 characters needed characters exceeded