Skip to Content
-1

Call Hana XS OData and XSJS from FIORI UI5 apps on ABAP Repository

Oct 18, 2016 at 06:08 PM

237

avatar image
Former Member

Hi,

we have Custom UI5 apps based on HANA XS and deployed on Hana repository. Now we are planning to integrate this UI5 apps in FIORI Launchpad.

As per my understanding, we have to deploy the UI5 app into ABAP Repository and call HANA XS Odata and XSJS Services.

Since our UI5 is on ABAP Repository and ODATA is on HANA XS, how to call these ODATA from UI5?

Can i call using direct URL or is there any other way? Do we need to establish connection from ABAP to HanaXS? or If we do some settings at Webdispatcher level will that be sufficient?

Please share steps to achieve this?

Thanks, Satish

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Tanveer Shaikh Nov 11, 2017 at 03:55 PM
0

Hi, Did you get a solution ? I have same question

Share
10 |10000 characters needed characters left characters exceeded
Richard Zhao
Dec 12, 2017 at 02:59 AM
0

Hello, Satish. You could follow the step below to implement your requirement. thanks

  1. Make sure that your XS service or OData is ready which means the service has been exposed successfully.
  2. Configuration a new Http Destination for your service which you want to invoke.
  3. Configuration OData service in webapp/manifest.json file of your UI5 project.
{
  "_version": "1.8.0",
  "sap.app": {
	...
	"ach": "CA-UI5-DOC",
	"dataSources": {
	  "invoiceRemote": {
		"uri": "https://services.odata.org/V2/Northwind/Northwind.svc/",
		"type": "OData",
		"settings": {
		  "odataVersion": "2.0"
		}
	  }
	}
  },
  "sap.ui": {
	...
  },
  "sap.ui5": {
...
	"models": {
	  "i18n": {
		"type": "sap.ui.model.resource.ResourceModel",
		"settings": {
		  "bundleName": "sap.ui.demo.walkthrough.i18n.i18n"
		}
	  },
	  "invoice": {
		"dataSource": "invoiceRemote"
	  }
	}
  }
}

You could refer the link below to check the implement detail. thanks

https://sapui5.hana.ondemand.com/#/topic/44062441f3bd4c67a4f665ae362d1109

Share
10 |10000 characters needed characters left characters exceeded