cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ANDROID Integration

Former Member
0 Kudos

Hi Experts,

I want to Develop a simple hello world Application in Android Simulator. Can you please guide on how to do so? I have seen the following link http://wiki.sdn.sap.com/wiki/display/mobile/Android but in my NWDS, I am unable to attach the SDK. Please let me know which version of NWDS should I install, and where from to download this NWDS.

If there is any tutorial, it would be of much help.

-Regards

Dhrubajyoti

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member199126
Participant
0 Kudos

Hi rakshit,

Even i do have the same problem. I am thinking to develop an andriod application which will consume the webservice in SAP. If you know, please provide me with the details of that.

Former Member
0 Kudos

You need latest version NWDS 7.30, Android SDK R12 and ADT 14.0.0. First install NWDS 7.30. There's a good installation guide here in SDN. Then install Android SDK R12 on your machine, but don't update SDK Tools to latest version! Release 15 for SDK tools is ok and working on my machine. Start your NWDS and under help install new software ->.select archive where you downloaded ADT 14.0.0 on your machine. Confirm changes. After installation you have to restart NWDS. After restart set Window->Preferences->Android path to your Android SDK folder. That's it, now you can develop ANDROID apps within NWDS 7.30

Best regards

Juergen 

Former Member
0 Kudos

Hi,

you need NWDS 7.30 which is Eclipse 3.5 based. In older versions is no option to "Install new software". there is a NWDS 7.30 installation guide on SDN. It's very usefull. From android you've to install ADT eclipse plugin which is 3.5 based. The latest version running under Eclipse 3.5 is verson 14.0.0. But I don''t get it integrated into NWDS, I can't set the preferences. If I found a workaround, I let it know.

Regards,

Juergen

rohith_deraje
Employee
Employee
0 Kudos

Hi,

If you are looking to develop a simple hello world app in android, you can refer "http://developer.android.com/index.html".

Regards

Rohith

Former Member
0 Kudos

But How to integrate the SAP client and architecture with it. My main intention is to get data from SAP R3, and the display should be in Android mobile. In this regard, just to have an idea, I mentioned about the "Hello World" app.

So let me just refresh my requirement.

Requirement

To get data from R/3 and display it in Andorid Mobile

rohith_deraje
Employee
Employee
0 Kudos

Hi,

Can I know which type of application are you trying?

If you are looking for Online Adroid App, details are as below.

The connectivity with SAPR3 for online scenario will be as below.

SAPR3<>NetWeaverGateway<>SUP-ODP<>RelayServer<>Device

Anyhow if you are trying out with simulator, you can skip Relay server and directly connect to SUP from App.

Prerequisites: SAP Netweaver gateway, SUP2.1, SUP-SDK

Steps are as below

1. SAP Gateway will expose the cotesnts of R3 in the form of REST services.

2.You can develop a Android application using native android development SDK. You will get additional libraries with SUP-SDK which gives you the APIs to connect to SUP, Make request to gateway, Parse the service doc contents etc...

Refer to developper guide @ http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.pubs.docset-SUP-2.1.0/doc/h...

Sybase Unwired Platform 2.1 > Developer Guide: OData SDK 2.1>>Developing Android Applications

Hope this helps you.

Regards

Rohith

markteichmann
Product and Topic Expert
Product and Topic Expert
0 Kudos

You do not need any middleware for a simple demo that connects to SAP.

Just have a look at this nice blog from Michael: http://scn.sap.com/people/michael.hardenbol/blog/2010/12/07/android-and-restful-web-service-instead-...

Former Member
0 Kudos

Hello Rohith,

This is a good example on accessing SAP data over Android or any Mobile platform.

Can you suggest how should it work if I need to post/upload Data to SAP R/3? from a native Android application?

Will above model changes a bit? What about SAP Admin providing rights for posting data to backend database from outside?

Thank you in advance.

Thanks,

Makarand

rohith_deraje
Employee
Employee
0 Kudos

Hi Makarand,

It is the same setup for all GET/PUT/POST/DELETE operations. You should have BAPI's in SAP R3 to create/update/delete and Gateway provides oData(REST) interface to it.

To your second question,

1.SUP in the middle manages the authentication. Only the onboarded users can read/write data from R3.  So no chances of unautherised user reading/writing data.

2. When you send read/write request , the request will also have authorization info in it (User:PW). If the user has right permissions to  read/write, then only the request will succeed. Else rejected by backend.

Fyi.,

You can also try the SMP cloud version for the same purpose. The setup would be like below for SAP backend.

SAP R3<>Gateway<>SAP Cloud Connector<>SMP Cloud<>Mobile.

Also you have free trial version(limited period) to try out SMPcloud. You can find more info @ https://help.hana.ondemand.com/mobile/frameset.htm?SMP_welcome.html

To start with a sample app in cloud, you can refere to

http://scn.sap.com/docs/DOC-40298

Regards

Rohith