Skip to Content
Author's profile photo Michal Keidar

Connect your Gateway Android app via SUP server in only 3 steps

Hi, I’m Michal Keidar and I’m part of the development team of SAP NetWeaver Gateway plug-in for Eclipse.

This post will help you connect to work using SUP even when you’re on vacation in Thailand…

/wp-content/uploads/2012/09/391354_224365454296327_100001686215783_629246_1237091234_n_134776.jpg* Me, in Thailand, without SUP.

Let’s say you’ve developed a great Android app using our plug-in, in which you can directly connect to SAP NetWeaver Gateway and consume its services, and now you would like to integrate it with Sybase Unwired Platform (SUP) server.

Why use the SUP server?
From SUP’s documentation: “Sybase Unwired Platform acts as the hub that connects the back-end enterprise systems and data sources to mobile devices. Features for mobile application development, deployment, security, and ongoing device and application management provide a complete end-to-end solution” (See this link for full documentation).

So what are the prerequisites?

  • SUP server installed and configured.
  • A user with permissions to work in SAP NetWeaver Gateway.
  • Information about the SUP server:
    • The host and port number of your SUP server.
    • The ID of your application on the server.
    • The Farm ID of your application on the server (default 0).
    • The name of your application’s security configuration on the server.

All of these details can be configrued via the Sybase Control Center (SCC) – see this blog for more details and screen shots.

If you’ve made it up to here – good

Now comes the real deal, 3 steps you need to do in your app:

  1. Add SUP’s server libraries to the build path of your Android project (by using “Add External JARs…”).
    You can find the libraries in your file system in the folder, for example, <SUPUnwiredPlatform_InstallDir>\MobileSDK\OData\Android\libraries\:
    1. ClientLib.jar
    2. sup-json.jar
    3. SUPProxyClient-<Version_Number>.jar

      Build path 1.png

          Now select the tab, Order and Export, and export the SUP server libraries specified above.

                Build path 2.png

  2. Uncomment the relevant parts of the code in “SupHelper” (the entire class) and “LoginActivity” class, organize imports and save.

  3. Add your SUP server details in the <service>.properties file (under res -> raw).

You can see a live example in this video.

So just run your app and that’s it!

I would love to see your response and comments.

#SAPGateway blogs and updates please follow us @shirilevil

Useful links:

1. See this great blog regarding “Developing Mobile Apps with Sybase Unwired Platform 2.1 and SAP NetWeaver Gateway 2.0“.

2. And this great blog regarding “Developing SAP Android Apps is just a Few Clicks Away“.

3. SAP NetWeaver Gateway plug-in for Eclipse.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Guy Soffer
      Guy Soffer

      Very well written article! Seems like an easy task to do.

      Author's profile photo Andy Silvey
      Andy Silvey

      Excellent blog Michal, thank you.

      Like your office too.

      All the best,


      Author's profile photo Uri Nizan
      Uri Nizan

      Thanks, Michal.

      Very useful.

      Author's profile photo Former Member
      Former Member

      Looks easy!

      Thanks a lot!

      Author's profile photo Syambabu Allu
      Syambabu Allu

      Good Article Michal



      Author's profile photo Ofer Wolff
      Ofer Wolff

      good one!

      Author's profile photo Carlos Roggan
      Carlos Roggan

      Would never have thought that using SUP would be so easy... 😉

      Thanks for this great post!

      Author's profile photo sathish B
      sathish B

      Hi Michel,

      Greetings of the day.

      Good Article,nice job.

      can u please share me how to configure me netweaver service with CRUD operations and whar are the steps to do in sap side currently we are using SAP netweaver Gateway 2.0 (EHP 7.4)

      Kindly help me pls

      Thanks & Regards


      Author's profile photo Ashwin Dutt R
      Ashwin Dutt R
      Author's profile photo sathish B
      sathish B

      Hi Ashwin,

      Greetings of the day.

      Thanks for ur quick reply.

      actually i am able to create the services using some simple bapi & rfc's and able to get data,but not able to update from XML(with in browser) and after this what will i have to do to give it to the HTML5 they will consume the data

      if u had developed any end to end scenario's kindly help on this(cause i am new to the SAP Netweaver Gateway 2.0(EHP7.4))

      Thanks & regards


      Author's profile photo Ashwin Dutt R
      Ashwin Dutt R

      Hello Sathish,

      Please follow the below Let’s code CRUDQ and Function Import operations in OData service!

      U will get all the info u need here.



      Author's profile photo Syambabu Allu
      Syambabu Allu
      Author's profile photo Vijay Vegesana
      Vijay Vegesana