Monthly Archives: October 2012

S2F: Developing an iPad app using SAP Netweaver Gateway – Part 2


In the Introduction and Part 1 of this 2 part blog series, we looked at the platform and prerequisites needed to develop an iPad using Netweaver Gateway as your data provider. In this part, we will step through the app itself and look at the System Development Life Cycle (SDLC), and some of the common points when dealing with each stage.

In this case the 5 steps simply outline the general direction needed to take a app from conception to production.
From a requirements point of view and as mentioned in the introduction, the app was built to provide a framework for the participants and encourage them to “Extend” it.
When starting the app it makes an initial service call from BAPI_CUSTOMER_GETLIST, selecting one of the records will make a second call usig BAPI_CUSTOMER_GETDETAIL and populate the detail page.
Another suggestion I made was to proof out the data access portion first, not necessarily build from the bottom up, but rather ensure that all data fields which are required are accessible. I have spent countless hours developing front end apps, with a “wishlist” of datasets which were not feasible when I started modelling the data services and had to reconsider many points.
So next up from a design perspective and as mentioned above, we walked through the data exposure piece, essentially using SE80 to take your BAPI and create a web service. From SP04 – this should be done in SEGW, not SE80. This guide has been particularly useful for me:
Once the service has been created and exposed, RESTClient for firefox is a great tool for testing the service before even touching any code. This to me is part of the “data access” test I do before design.
Executing our service in this case produced the results showing a list of the customer details.
Data has been exposed and seems to be working. Next up design the app UI.
As mentioned, a point people found interesting in the presentation was that I spent on average 50% of my time in a graphics editing program like photoshop, designing icons, UI elements, etc. IMO – UI is the difference between a good app, and a great app. The iPad/iPhone graph paper is very handy and you can print or even buy your own from this site:
I also suggested that open source software should be considered when developing mobile apps, in our case the app will be using 2 packages to make life simpler, JSONKit and AFNetworking. is a great website for discovering open source code.
At this stage the data source created, the UI designed and its time to do some coding in XCode. I will be going into more detail behind these steps in an upcoming blog series called “S2F”.
Start with a master – detail template (from XCode). Add your UI elements comprising of labels and buttons.
Create a 20 line method for fetching data from your gateway service and displaying it on the screen. Very quick and simple. Obviously *good* programming takes considerably more time, but as a POC and starting point, this is perfect.
Data, design and code done, next up some testing and deployment options.

We did a quick test and spoke about the deployment options. If you are a partner and would like to certify your app, work needs to be done to package your content using the AAK toolkit and developing in your own namespace.

Also keep in mind that with a apple enterprise license:

“An app will not run if the distribution certificate has expired. Currently, distribution certificates are valid for one year. A few weeks before your certificate expires, request a new distribution certificate from the iOS Dev Center, use it create create new distribution provisioning profiles, and then recompile and distribute the updated apps to your users.”

Wrapping things up, we can see that with only a few lines of code you can easily (and without any additional tools) can connect and consume data from Netweaver Gateway. Also keep in mind that if you would like to cache that data in a local sqlite db, it really only takes a few more lines to make data available offline. (differential control when writing data is a WHOLE nother story!)

At the end a couple of the questions included:

I see you are passing the username and password in the URL? Yes, in this example that was the case to display the simplicity. Pratically you would want to definitively use SSL, pass your params in the header of the HTTP request and also possible hash/encrypt these variables.

Why did you use a native app versus HTML5? This is another blog post all together, but essentially my argument is it depends on the job at hand and what is trying to be accomplished. A bit like a decision of when do you add a web page to your portal versus developing windows form app, there is no simple or straight – once size fits all answer. Both have their place.

So that’s an overview of the presentation and content, I know this may have been slightly drawn out, but for those who would have liked to attend, this is a close second 

S2F: Developing an iPad app using SAP Netweaver Gateway – Part 1


Click here if you would like an intro to this blog post …

Essentially, these are some of my slides from a TechEd presentation last week (MOB205). My position with this presentation is to depict the overall process I use when developing an app, a few of the *many* considerations to make, as well as the simplicity of using a product like Gateway to actually connect and “consume” ERP/CRM/Back office data in a few lines of code.


Why Mobile?

Needs no introduction, mobile was one of the hottest topics at TechEd this year, if it had a “girly” name or acronym like “HANA” … I am convinced it would have been “the” hottest topic 

Why Gateway?

The mobile landscape is fairly complex right now, lot sof vendors, lots of choices and not particularly easy to navigate. One this is for sure, services are here to stay – particularly REST based web services and that is exactly what Gateway is built for.

Another great product: XS Data Services for HANA ….

So this is the app being designed during the presentation. Essentially my goal was to develop a “template” type app which the attendees could download and use as a starting point for their mobile app development and encourage them to get their feet wet.

The app makes 2 service calls. 1 to pull a list of customers from SAP ERP, once selecting a customer, the app would download the additional details of the customer including the address. And lastly – the “idea” … anyone wanting to customize the app could pull additional data in, a good example would be: An Accounts Receivable Clerk who attends a weekly open payables meeting, may want to take their iPad, get a list of customers, select one in question and see all open payables which are relevant … easy to do with this type of structure and simple to implement.

Another example was a Business Development road warrior who could select a customer, and see a list of Open Quotes.

Your app … here is some starter type code and you decide …

I skipped a couple of the slides related to the Gateway platform … this included this slide/blog post I added a couple of weeks ago:


During the presentation I also reminded folks that mobile apps can be powered by a variety of data providers, including a method we (Lithium labs) did a couple years ago which was actually using SAP.Net Connector (v2.0) to create a ASP.NET Web Service (XML) which was called from the mobile device which worked and is still in production today.
In this app, all the components are distributed. The Netweaver Gateway instance in the cloud at AWS (Thanks John!) and connected to a ERP backend which is in Walldorf (ES Workplace). The app talks to the AWS GW machine which pulls the data from the ERP and gives it back to the iPad via a REST web call.
Now that we have covered the platform, we will go through the prerequisites for developing the iPad app. We will cover the development machine types, software need and useful tools.
A mac development machine is recommended, when I started out 3 years ago, I tied to put together a hackintosh … didnt work, first update and it bombed… waste of time. A used mac mini off craigslist goes for +- $300 … worth the investment.

This is an overview of the developer accounts – most important point was that with the free account you cannot run your app on a physical device … (boo). Pay the $99 if you are getting started and if you develop something your company wants to deploy on a larger scale … i.e. > 10 devices, pony up to the Enterprise Program.

Click here for additional details:


Development options.

I am a native kind of guy …


Useful tools include a solid graphics editor … I estimate that I spent +- 50% of my time when developing an app from start to finish with graphics and the UI. If you have access to a graphic or UI designer … USE THEM 

RESTClient for Firefox has saved me multiple hours … a quick and easy way to test your services before development.

Overview of the “SDLC” we will be following in Part 2…. click here…..


TechEd 2012 and MOB 205

Well …. TechEd has passed and it was a great time. InnoJam was probably the best experience and I managed to be a part of a great collaboration which was fun from the start – I will blog a little about our solution in some of my free time in the coming weeks, but back to the topic at hand, since this was my first time as a speaker at TechEd I was slightly intimidated and anxious … my session was on Friday at 8:00AM, the night after the 3 Doors Down concert and I was skeptical if *anyone* would even show up . The morning came, and to my surprise, the room was full and even had multiple people standing at the back. I was impressed so many people attended, and showed that my investment of time and resources into the enterprise mobility space over the last few years was worth the effort. The presentation went well and thankfully I had the “Demo Gods” on my side connecting from the Venetian (iPad) to Amazon Web Services (Gateway) to Walldorf (ES Workplace) and back . After the presentation wrapped up I had great comments and questions from the audience but ran out of time answering all of them, I figured I would share the premise of the presentation here for everyone and hopefully encourage more companies to take a few easy steps to start their journey into the mobile enterprise. Firstly – this is a subset of the slides split up into 2 parts, I will also be putting together a tutorial in the coming weeks which outlines actually building this app from start to finish from a developer perspective (i.e. in XCode). In the end I should end up with the “S2F” blog series comprising of the presentation (2 parts) and the actual development project in XCode being another 2 parts. Secondly – My position with this presentation is to depict the overall process I use when developing an app, a few of the *many* considerations to make, as well as the simplicity of using a product like Gateway to actually connect and “consume” ERP/CRM/Back office data in a few lines of code. (With the help of some open source code). So lets get started ….

Part 1 of S2F: Developing an iPad app using SAP Netweaver Gateway

Part 2 of S2F: Developing an iPad app using SAP Netweaver Gateway

iCRM – a free mobile app powered by SAP ES Workplace


A *little* while ago, I developed and blogged about a app which used ES Workplace’s enterprise services to power a simple CRM client on the iPad – I also mentioned it was going to be a free downloadable app in the app store, well that time has finally arrived. You can now download iCRM for SAP in the app storecreate an account on the ES Workplace landscape and test it out. The best part is that if you have any of these ES Workplace services/configured or implemented in your own CRM landscape you can connect to them by simply changing the configuring in the app’s settings.

Some of the app features:

– View your business partners.

– View business partner contacts.

– Business partner attributes can be shown for additional insight.

– No additional username or details required

– Quick and easy login using your SAP CRM username/password.

– No middleware or additional mobile platforms required.

iPad Screenshot 1

iPad Screenshot 3

iPad Screenshot 4

iPad Screenshot 5

And here is a short clip:










What SAP Netweaver Gateway is NOT …. !

I believe that there is a lot of talk online where people are asking the question … Why should I use Netweaver Gateway if I have Netweaver Process Integration (PI) or vice versa. I was recently on a SAP mobility call which included a great slide entitled “What SAP Netweaver Gateway is and is not!”. I thought I would share this with everyone and a couple other posts and links I have come across on the web, which hopefully people wanting to learn more about what Gateway has to offer, will find useful.

SAP Netweaver Gateway is NOT:

– The SAP Gateway process in the Netweaver Application Server ABAP that enables external communication (e.g. RFC).

– A mobile infrastructure (like Sybase Unwired Platform)

– A replacement for SAP Netweaver PI and eSOA services/ESB’s

– Access to non-SAP systems

SAP Netweaver Gateway is:

– The point of access into SAP Business Suite data and functionality

– Uses a non-proprietary interface based on the Open Data Protocol (OData)

– Service can be consumed by any channel that can process XML received over an HTTP(s) connection

If you are interested in reading more on this topic, I would suggest checking out:

This blog from Sascha Wenniger who wrote a article a couple of months ago about both GW and PI having their own place in the enterprise to provide connectivity and data consumption.–theres-a-place-for-both

Another great article was written by William Li making a direct comparison between PI and GW. This will help anyone who is trying to decide which, or if both, is right for their needs:

SAP Note Viewer for iPhone v2.5 Release

After iOS 6 was released we were getting some intermittent issues where users where unable to view the icon on the home screens. We also created the update to support the larger screen on the new iPhone 5. If you would like to download the app, click here … or if you already have it and would like to update, head over to your App Store and click on Updates.

v2.5 Fixes

– Fixed multiple bugs and corrected issues with iOS6.
– Added support for the retina display and iPhone 5.
– Added search support for German

iPhone Screenshot 1