How to build the iOS App that displays SAP S/4HANA data as AR 3D object (1/2)
I build the iOS app that displays SAP S/4HANA data as AR 3D object. I’d like to share detail steps I took.
1. Implement GetEntitySet method of OData on SAP S/4HANA
2. Generate an Xcode Project with SCP SDK for iOS Assistant
3. Implement the AR function to generated Xcode Project on step2
This post is introduce Step1-2, and Step3 in next post.
- SAP S/4HANA 1709 (On-Premise)
(Connecting SCP account by SAP HANA Cloud Connector)
- SAP Cloud Platform (NEO)
- iPhone7 Plus
Implement OData on SAP S/4HANA
First I create an OData project from Tr-code SEGW.
This time, I will implement acquiring store inventory data of products in SAP S/4HANA.
Create a OData Project
Click the [CreateProject] button on the upper left of the screen.
Enter the Project name and Description and click the [Continue] button.
(Please enter an appropriate value for the package and user name according to the environment.)
Click the [Activate] button to activate ODataProject.
After defining the data model, I will implement the acquisition method.
Implement data acquisition process with ABAP.
Activate OData Service
Generate an Xcode Project
Next, generate an iOS application that displays the OData EntitySet data using the SCP SDK for iOS.
SCP account settings
Click the [Add New ..] button and enter the SCP Mobile Service URL information.
For the value to be entered, open SCP Mobile Service from a browser and refer to the URL described in the menu [Important Link].
(If you click [Direct URL Import], it will be entered automatically.)
Generate Xcode Project
Enter the URL of the OData service created above in BackEndURL.
Enter the authentication information used for back-end connection in [AuthentificationType]. In this case, select “BasicAuthentification” and enter the S/4 HANA login user & pass. (It is necessary to set according to the Cloud Connecter authentication setting etc.)
Configure settings for the app. (In this case, default settings)
Enter the project name, organization name, etc. (as you like). These will be the information of the Xcode project to be generated from now on.
Let’s check of the generated Xcode project.
I generated an iOS application that is connected to the back end S/4HANA system using SCP SDK for iOS. It’s great to be able to easily make a implementation.
In next post, I will implement the AR function by updating generated Xcode project.