$30 off During Our Annual Pro Sale. View Details »

Introduction to the SAP Cloud Platform and the ...

Avatar for Julius Julius
January 24, 2019

Introduction to the SAP Cloud Platform and the iOS SDK

SAP has created the SAP Cloud Platform in 2012. It brought the high performance, in-memory database HANA to the cloud. SAP has been developing services around the HANA database, creating a competitive cloud platform. There are 3 possibilities to develop apps that consume data from the SAP Cloud Platform. The SCP SDK for iOS combines APIs and tools to create iOS apps that tap into all the possibilities a native app has to offer. This talk covers the basics of the SAP Cloud Platform, explains the features and tools of the SCP SDK for iOS and includes a live coding session. In this talk you can learn how to use the APIs, create views that follow the Fiori design language and support offline capabilities.

Avatar for Julius

Julius

January 24, 2019
Tweet

Other Decks in Technology

Transcript

  1. YOUR PRESENTER ▸ Name: Julius Bahr ▸ Long time mobile

    developer ▸ Quite new to the SAP world ▸ E-Mail: [email protected]
  2. SAP has been the enterprise resource planning tool of choice

    for decades. iOS is the enterprise mobile platform of choice. So it does make strategic sense to join forces.
  3. OVERVIEW ▸ Development choices for Mobile Development ▸ SAP Cloud

    Platform (SCP) Architecture ▸ SCP Services & Features ▸ OData ▸ Setup of an iOS App ▸ SAP Cloud Platform SDK for iOS ▸ iOS App Demo
  4. 3 PILLARS FOR MOBILE DEVELOPMENT All environments support offline/online use

    cases For the MDK extension points also exist, but probably only a good choice for projects with fixed scope MDK and SAP Mobile platform for cross platform developement Native SDK for highest performance, new APIs like Machine Learning or Augmented Reality.
  5. 3 PILLARS FOR MOBILE DEVELOPMENT MOBILE DEVELOPMENT KIT WEB IDE

    NATIVE SCRIPT CROSS PLATFORM All environments support offline/online use cases For the MDK extension points also exist, but probably only a good choice for projects with fixed scope MDK and SAP Mobile platform for cross platform developement Native SDK for highest performance, new APIs like Machine Learning or Augmented Reality.
  6. 3 PILLARS FOR MOBILE DEVELOPMENT MOBILE DEVELOPMENT KIT WEB IDE

    NATIVE SCRIPT CROSS PLATFORM SAP MOBILE PLATFORM IDE OF CHOICE JAVA SCRIPT/CSS/ HTML CROSS PLATFORM All environments support offline/online use cases For the MDK extension points also exist, but probably only a good choice for projects with fixed scope MDK and SAP Mobile platform for cross platform developement Native SDK for highest performance, new APIs like Machine Learning or Augmented Reality.
  7. 3 PILLARS FOR MOBILE DEVELOPMENT MOBILE DEVELOPMENT KIT WEB IDE

    NATIVE SCRIPT CROSS PLATFORM SAP MOBILE PLATFORM IDE OF CHOICE JAVA SCRIPT/CSS/ HTML CROSS PLATFORM SAP CLOUD PLATFORM SDKS XCODE/ANDROID STUDIO SWIFT/JAVA – All environments support offline/online use cases For the MDK extension points also exist, but probably only a good choice for projects with fixed scope MDK and SAP Mobile platform for cross platform developement Native SDK for highest performance, new APIs like Machine Learning or Augmented Reality.
  8. SCP ARCHITECTURE Your Service Your Data SAP HANA / ASE

    Corporate Identity Provider Connectivity Your Datacenter INTERNET Firewall Secure tunnel IoT or Business Suite Cloud Connector OData iOS App SAP CP SDK Platform Identity & Authentication Service Mobile Services These is just a small example.
  9. SCP SERVICES & FEATURES ▸ Generation of Model Classes out

    of an OData specification ▸ Versioning of OData endpoints ▸ Fiori UI elements ▸ Authentification via OAuth 2.0 ▸ Offline Capability & Data Synchronisation ▸ Delivery of Push Notifications
  10. ODATA ▸ RESTful architecture, based on http verbs ▸ Service

    metadata ▸ http body can be either in JSON or XML ▸ Standard formats for i.e. time ▸ Filtering & sorting built-in ▸ Sample:
 GET serviceRoot/People?$filter=FirstName eq 'Scott' Show https://services.odata.org/V2/Northwind/Northwind.svc/ Show https://services.odata.org/V2/Northwind/Northwind.svc/Suppliers Show https://services.odata.org/V2/Northwind/Northwind.svc/$metadata Security through OAuth URL is of course url encoded
  11. SCP SDK FOR IOS ASSISTANT ▸ Embedding of the SAP

    frameworks ▸ Integration of the OData endpoints Mac OS App that generates an iOS application
  12. IMPORTANT CLASSES ▸ OfflineODataProvider ▸ OfflineODataDelegate ▸ Handle errors in

    the provider through OfflineODataFailedRequest Block based API Defining OData queries to initialise OfflineODataProvider Delegate to do event handling Error handling through error archive in OfflineODataProvider. Errors are of type OfflineODataFailedRequest. Primary errors should be inconsistent state errors (sync errors) The provider is then queried for data. Same API as for online store.
  13. GOTCHAS ▸ You need to decide first if you want

    offline support ▸ Don’t mix offline and online ▸ SAP CP Mobile Services application ID == bundle ID ▸ Framework is binary and closed source If you need offline and online support create 2 different OData endpoints. Do not touch the same data!
  14. REFERENCES & CONTACT ▸ SAP CP trial account available ▸

    References: ▸ Homepage iOS SDK ▸ Tutorial ▸ Open positions @ 16 Generally the documentation is good and complete