Understanding How Cloud and Mobility Fit Together by Developing a Simple Mobile App
description
Transcript of Understanding How Cloud and Mobility Fit Together by Developing a Simple Mobile App
Understanding how Cloud and Mobility ft together by developing a simple mobile app (SAPUI5/iS!Confused about what is "SAP HANA Cloud Platform" and how it fits with "Mobility"? Then this blog is the perfect document for you !n this blog" you will get a detailed end # end understanding of how to de$elop a simple mobile app that consumes %&ata ser$ice and then deploy it on to SAP HANA Cloud Platform The mobile app is de$eloped using SAP'!( The SAP'!( mobile app can be accessed in your mobile browser Also e)plained is how you can deploy the SAP'!( app in an Android de$ice *e also show you how to de$elop the same mobile app using i%S and consuming the %&ata ser$ice running in SAP HANA Cloud Platform &e$eloping the %&ata ser$ice is e)plained in detail Also e)plained is how you can deploy the %&ata ser$ice in SAP HANA Cloud Platform All of the abo$e contents is structured as shown below "# Cloud and Mobility + how they fit together$# The sample demo mobile app used for the understanding%# ,unning the demo mobile app -SAP'!(" i%S. &e$eloping the %&ata ser$ice and running it in SAP HANA Cloud Platform5# &e$eloping the mobile app consuming the %&ata ser$ice -SAP'!(" i%S.'# &eploy your SAP'!( mobile app to Android de$ice -optional #re/uired only for the SAP'!( app.(# *here do you go from here? # SAP Mobile Platform" enterprise edition" cloud $ersion)# Adapting the SAP'!( mobile app to use SAP Mobile Platform" enterprise edition" cloud $ersion 1. Cloud and Mobility how they ft together What is SAP HANA Cloud Platform SAP HANA Cloud Platform is the industry0s only in#memory cloud Platform 1uilt on SAP HANA with comprehensi$e application and database ser$ices" this full featured" open standards based Platform enables the real time applications re/uired to succeed in today0s always#on" mobile" social and data dri$en world SAP HANA Cloud is the Platform#as#a#Ser$ice -PaaS. offering based on open standards" which enables SAP partners and customers to de$elop" deploy and use either nati$e HANA or 2a$a applications in a cloud en$ironment The Platform supports the complete lifecycle of building and deploying cloud#based enterprise business applications" e)tensions" and ser$ices SAP HANA Cloud Platform also facilitates integration scenarios with your on#premise SAP software Applications de$eloped and deployed on HANA Cloud Platform can e)pose data using %&ata ser$ice How about Mobility 'sing SAP '! de$elopment tool3it for HTM4( -SAP'!(." one can de$elop mobile user interfaces using HTM4("CSS and 2a$ascript These SAP'!( applications can be deployed on SAP HANA Cloud Platform and can be accessed on mobile browsers 5ou can also create mobile applications the usual way using nati$e libraries for each Platform li3e i%S" Android" *indows 6 etc !he integration between Mobility and Cloud !n general the combination of Cloud and Mobile is a natural fit + the Cloud ma3es the e)posure of business rele$ant data + potentially also coming from on#premise systems # to mobile applications more secure and controllable 5ou can naturally create online mobile applications that can consume data residing in either the Cloud itself of in connected on#premise systems This way you can create rich online mobile application capable of doing Create # ,ead # 'pdate # &elete-C,'&. operations The below diagram shows the typical de$elopment scenario for creating Cloud # Mobile Applications ". !he sam#le demo mobile a## used for the understanding The sample demo mobile app that we use to demonstrate how cloud and mobile fits together consists of 7screens The home screen shows a list of companies %n selecting a company in the list" the user will seethe list of employees of that company The user can then na$igate bac3 and select another company *e ha$e 3ept this demo app simple solely to focus on understanding the underlying concepts in$ol$ed The below diagram shows the application screenshot that we shall de$elopThe architecture of the demo mobile app consists of these components8"# A consumable %&ata ser$ice running in SAP HANA Cloud Platform" which is publicly accessible The %&ataser$ice used here is https*//+ompanylistdemo#hana#ondemand#+om/re,app-+ompanylist-web/+ompanylist#sv+/$# The mobile app consuming the %&ata ser$ice *e show you 7 $ersion of the same app" one de$eloped in SAP'!( and the other de$eloped in i%S The %&ata ser$ice consists of 7 9ntityType -referred as Table in database concept. "# The company 9ntityType" which consists of the CompanyName$# The employee 9ntityType" which consists of the employee0s :irstName" 4astName and Company!d -the $alue for the Company!d is same as CompanyName This allows us to search for the employees" when a company isselected by the user" without creating a relationship between the two tables The reason we ha$e not used any relationship is because we want to focus how %&ata can be used rather that e)plaining best practices in &atabase schema design.!hat mu$h for the tal%ing& now let's get in a$tion by running the e(isting demo mobile a##.). *unning the demo mobile a## +SAP,-./i0S1*e offer you 7 $ersions of the demo mobile app that consumes the demo %&ata ser$ice" one for SAP'!(and other for i%S :or details on where to download and how to run the SAP,-. a##" please refer the tutorial :or details on where to download and how to run the i0S a##" please refer the tutorial2. 3e4elo#ing the 03ata ser4i$e and running it in SAP HANA Cloud Platform *e ha$e seen until now how to run a mobile app" which consumes %&ata ser$ice deployed in SAP HANA Cloud Platform Ne(t& we see how the 03ata ser4i$e $an be de4elo#ed and de#loyed in SAP HANA Cloud Platform trial a$$ount. !his is des$ribed in this detailed tutorial Now you should be familiar with how the %&ata ser$ice can be de$eloped easily and deployed in your HANA Cloud Platform trial account .. 3e4elo#ing the mobile a## $onsuming the 03ata ser4i$e +SAP,-./i0S1 Now that you ha$e the %&ata ser$ice running" ne)t step is to understand how easy it is to consume the %&ata ser$ice in your mobile applicationThe %&ata ser$ice that we shall consume in this part ishttps*//+ompanylistdemo#hana#ondemand#+om/re,app-+ompanylist-web/+ompanylist#sv+/ We ha4e de4elo#ed this tutorial whi$h shows you how to $reate the SAP,-. mobile a## $onsuming the abo4e 03ata ser4i$e.We ha4e de4elo#ed this tutorial whi$h shows you how to $reate the i0S mobile a## $onsuming the abo4e 03ata ser4i$e. 5. 3e#loy your SAP,-. mobile a## to Android de4i$e +o#tional 6 re7uired only for the SAP,-. a##1 The SAP'!( mobile app de$eloped can be deployed in a de$ice by using Phone;ap This tutorial showshow you can use Phone;ap to wrap the SAP'!( app that can be deployed in Android mobile de$ices 8. Where do we go from here 6 SAP Mobile Platform& enter#rise edition& $loud 4ersion Congratulations< 5ou ha$e =ust de$eloped your $ery first mobile app that consumes %&ata ser$ice deployed on the SAP HANA Cloud Platform !f you intend to use such an app in an enterprise scenario you will /uic3ly re/uire more features though8 Authentication + Authenticate users of the app" that map to an e)isting identity pro$ider of your enterprise Security # Access your business data behind a firewall in a secure way Pre$ent &enial of Ser$ice-&%S. attac3s + enforce security for your application by using the CAPTCHAfeature Customi>ing your app + Pro$iding a consistent user e)perience across all of your apps without code changes 'nified Push Channel + 'se a common way to send push notifications to apps Application configurations" efficient administration and monitoring" e)tensi$e logging" usage statistics :or all of the abo$e and many more features" SAP also offers a cloud based solution8 SAP Mobile Platform" enterprise edition" cloud $ersion !t is an on#demand mobile solution hosted on the SAP HANA Cloud Platform that allows you to deploy your enterprise mobile applications in a cloud en$ironment and manage them