Hello Experts,
We have created UI5 application in WEBIDE using destination as SMP Integration Gateway. We are able to successfully run the application in webide portal. But when we deploy the application as SAP HANA CLOUD PLATFORM and if we try to open the deployed URL we are getting error
"HTTP Status 404-Not Found".
Please suggest!!
Regards,
Ashwin
Request clarification before answering.
Hi Azeez,
I have found the issue.
There were two issues.
1. SMP Server SP9 P4 is not allowing us to send request back to back end. So i have installed SMP SERVER SP9 only.
2. In our service there was one entity dont have data. Because of that is was not allowing us to create offline store.
Thank you for your support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to make sure the path to the app's index.html file is correct in neo-app.json under welcomeFile property. Notice that if this app was built during deployment then the path to the index.html should point to the file under the build target folder.
You can add a screenshot of your app's structure and its neo-app.json.
Regards,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Azeez,
Thank you for reply.
Actually the issue is like.
We have 2 gateway web services which resides on 2 different gateways.
We are able to create application from both of service as well as we are able create apk from that.
From these 2 services we are able to get in online mode means if we run the application in browser.
But if we run these in mobile device only one of them is able to create a offline store and display data on device. Other service is not able to create offline store in device and it shows blank screen.
I am attaching the metadata of both the working and not working web services.
Please have a look at it and let me know if there difference you can find in these service.
This issue is critical now it is holding us to from long time to move forward to production server.
Looking forward to your reply.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Azeez,
Thank you for your reply. This help us to publish and run the application on Hana Cloud Platform.
But our final aim is to package this application as android apk. For packaging the application we are using HAT 1.11.4.
As endpoint we are using SMP Integration Gateway URL. We followed the URL for creating the application.
During packaging the application it is giving us some errors as below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
If your objective is to build a packaged application (.apk) and run on Android device, then you need to configure Application connection (Application ID)in SMP server and use the Application ID configured in SMP server in the Project Settings > Device Configuration and finally perform Run > Run On > Android Device menu.
The steps are
1. Configure Application ID on smp server
2. In Web IDE, Project Settings > Device Confguration, configure the device configuration and specify the Application ID configured in Step 1
3. In Web IDE, select project, right-click and select Run > Run On > Android Device
Wait for the Cordova Project is created and build, install & launch the app on Android Device.
Please refe to the attached Create SAPUI5 Master Detail Kapsel Offline Application.doc as a reference.
Thanks,
Azeez
Master/Detail Kapsel Offline Application
Prerequisites
Step | Actions | Expected Results | |||||||||||||||||||||||||||||||||||
Enable “Hybrid App Toolkit” External Plugin
| |||||||||||||||||||||||||||||||||||||
| Start SAP Web IDE | ||||||||||||||||||||||||||||||||||||
| Preferences pane displayed | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| In Plugin Repository, select “SAP Plugins”. | ||||||||||||||||||||||||||||||||||||
| Select to enable the “Hybrid App Toolkit plugin” and press “Save” button. | External Plugin is enabled | |||||||||||||||||||||||||||||||||||
| Refresh the browser | ||||||||||||||||||||||||||||||||||||
Create New Project based on SAPUI5 Master Detail Kapsel Offline Applicaion Template | |||||||||||||||||||||||||||||||||||||
| New Project wizard opened | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| Specify a project name and press Next | ||||||||||||||||||||||||||||||||||||
| In Data Connection section, select “Service URL” and select “SMP IGW Service” for the Service Information from the list | ||||||||||||||||||||||||||||||||||||
| Enter user credentials as smpAdmin/s3pAdmin when prompted | Service is connected and display the collections in the Details section | |||||||||||||||||||||||||||||||||||
| press Next | ||||||||||||||||||||||||||||||||||||
| In Template Customization, fill-up the entries as below
Master Section
Master Data Fields
Detail Section
Create/Edit Section
Information Section
Press Next | ||||||||||||||||||||||||||||||||||||
| Press Finish | New Master Detail Offline Project is created and displayed in Workspace. | |||||||||||||||||||||||||||||||||||
Preview in SAP Web IDE | |||||||||||||||||||||||||||||||||||||
| Expand Project folder in Repository Browser | ||||||||||||||||||||||||||||||||||||
| Application Preview window open in a new browser tab | ||||||||||||||||||||||||||||||||||||
| When prompted for user credentials in Application Preview window, enter smpAdmin/s3pAdmin and click Logon. | Application loads the data in the Application preview view window based on the attributes configured in Template customization section | |||||||||||||||||||||||||||||||||||
| Click on a List item in left-hand side | The right-hand side frame loads the detail screen based on the clicked row | |||||||||||||||||||||||||||||||||||
Configure Project Settings for Hybrid Mobile App | |||||||||||||||||||||||||||||||||||||
| In SAP Web IDE, right-click on the project folder , select “Project Settings” context menu | ||||||||||||||||||||||||||||||||||||
| Select “Device Configuration” section in Project Setting | ||||||||||||||||||||||||||||||||||||
| Complete the device configuration with the following. Application Section
Platforms
Plugins
SMP Server
| ||||||||||||||||||||||||||||||||||||
| Press Save and Press Close in Project Setting Dialog | The project setting dialog is saved and closed. | |||||||||||||||||||||||||||||||||||
Run On - Android Device
| |||||||||||||||||||||||||||||||||||||
| In Repository Browser, select the Project | ||||||||||||||||||||||||||||||||||||
| Web IDE issues a command to local Hybrid Connector server to create a Cordova project and Web IDE console display the log messages from the connector about the progress | ||||||||||||||||||||||||||||||||||||
| Project compiled and .apk file is generated, installed and launched on Android device In the launched application, SMP3 Logon Form appears as a first screen. | ||||||||||||||||||||||||||||||||||||
| Enter the following credentials to the SMP3 Logon Form in the application
And press Register button | Successfully registers the application to the SMP3 Server and Passcode screen appears | |||||||||||||||||||||||||||||||||||
| Press “Disable Passcode” button and press “Submit” button | Successfully logon to the SMP3 server and the application’s Master page appears with Product List data | |||||||||||||||||||||||||||||||||||
| Press on a row in Master page | Navigate to detail page displaying Product details and the Supplier information | |||||||||||||||||||||||||||||||||||
| Press Edit button in detail page | The product details page toggles to edit mode and display the Product data in an Edit Form. | |||||||||||||||||||||||||||||||||||
| Change the product price and press Save button | Data successfully changed and toggle the detail page from edit mode to read-only mode | |||||||||||||||||||||||||||||||||||
| Since the update is performed when the device in online mode, verify the changes in backend service | ||||||||||||||||||||||||||||||||||||
| Press Back button in Title bar | Page navigates back to Master Page. | |||||||||||||||||||||||||||||||||||
| Press Back button on the Android Device (phone or tablet) until the application closed | Application closed and Android device home screen appears | |||||||||||||||||||||||||||||||||||
Run in Airplane mode – on Android Device (Offline mode)
| |||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||
| Turn on Airplane mode in the more settings | Android device is now in Airplane mode | |||||||||||||||||||||||||||||||||||
| Go back to the Home screen and run the application | The application now retrieves the data from Offline store and function properly as before (when it is in online mode) | |||||||||||||||||||||||||||||||||||
| Press a row in Master page | Navigate to detail page displaying Product details and the Supplier information | |||||||||||||||||||||||||||||||||||
| Press Edit button in detail page | The product details page toggles to edit mode | |||||||||||||||||||||||||||||||||||
| Update product in the edit page and press save button. | Data saved and toggle the page to read mode
| |||||||||||||||||||||||||||||||||||
| Press plus icon on Master page | Blank Product form in create mode appears in detail page. | |||||||||||||||||||||||||||||||||||
| Add a new product data in the Product form and press Save button Note: Atleast enter values for ProductId, Name,Price, SupplierId, CurrencyUnit columns | New product created in offline store. | |||||||||||||||||||||||||||||||||||
| Verify the changes in the back-end data | The changes are not pushed to the back-end and hence the changes are not reflected in the back-end data | |||||||||||||||||||||||||||||||||||
| Turn-off airplane mode in the device. | Device connected back to network (Wifi/3G/4G) | |||||||||||||||||||||||||||||||||||
| Start the application again | Application started and pushed the changes persisted in the offline store to the backend. | |||||||||||||||||||||||||||||||||||
| Verify the changes in back-end | Changes are available in the back-end now. | |||||||||||||||||||||||||||||||||||
Appendix – A: Setting Up Gateway Service (IGW) on SMP3 Gateway Cockpit
If you have installed your own SMP3 (SAP Mobile Platform) Server in your local environment, then you will have SAP Gateway Cockpit icon added to your desktop.
The following steps describe the setting up an odata service on SAP Gateway Cockpit. Makesure you already started the SAP Mobile Platform service (SMP3 service)
This completes the setting-up of IGW odata service on SMP3 Gateway cockpit
Appendix – B: Setting Up Application on SMP3 Server
Make sure that you have added the certificate of the SMP3 Gateway server to the SMP 3.0 server before setting up the Application on SMP3 server. To add a certificate, refer to http://danielva-xpvm.dhcp.oak.sap.corp/webworkflows/Getting_Started/index.html#odatademo
This completes the steps to setup Application on your own SMP server.
Hi Azeez,
We have followed the steps you provided. I am able to package the application as apk but after deploying it on mobile the screen on mobile is showing blank after registering the device.
I am using backend endpoint as SMP Integration Service.
Do you know why this is happening? Is there any way to check what is happening wrong.
Please take a look at the device config screen.
Regards,
Ashwin
Hi Azeez,
I have checked the trace log does this make any sense in log. Please check the log.
#2.0#2016-02-04 03:37:36 AM#ERROR#RequestResponse###Other#1454576856285010#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.ApplicationConnectionHelper:processApplicationConnectionID########661#####The requested resource does not exist.#
#2.0#2016-02-04 03:37:36 AM#INFO#RequestResponse###Proxy#1454576856285009#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.proxy.configuration.service.AbstractEndpointConfigurationService:getEndpoint########661#####No endpoint with name POST_ip_port.php was found#
#2.0#2016-02-04 03:37:36 AM#DEBUG#RequestResponse#404##Client Request Trace#1454576856285011#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####<< Status Code: 404#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285008#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> pragma: no-cache#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285001#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> POST /POST_ip_port.php HTTP/1.1#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285004#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> content-type: application/x-www-form-urlencoded#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285006#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> host: 123.249.24.233#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285005#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> user-agent: Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; 125LA; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285003#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> accept-language: zh-cn#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285007#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> content-length: 38#
#2.0#2016-02-04 03:37:36 AM#DEBUG####Client Request Trace#1454576856285002#94d99a4e-f76b-493c-94cb-2f79ab104889##com.sap.mobile.platform.server.online.filter.application.AbstractClientFilter:doFilter########661#####>> referer: http://123.249.24.233/POST_ip_port.phpAccept: */*#
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Append /webapp/index.html to the deployed URL when you open to run
For example
https://<your appname>-<your account>.dispatcher.hanatrial.ondemand.com/webapp/index.html
Thanks,
Azeez
If the application was built upon deployment then the reference to the index.html may have changed. You have a reference to the welcomeFile (index.html) in your app's neo-app.json, what does it say there? If the application was built and a build target folder(probably "dist") was created then you should change the welcomeFile path to match the index.html in the dist folder
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.