cancel
Showing results for 
Search instead for 
Did you mean: 

tutorial for getting data from sap with phonegap

0 Kudos

Hello!

i'm trying to learn about phonegap and sap "integration". i've been searching all over to find some tutorials with a simple data retrieving of some table from sap using phonegap. can anyone help me?

thank you.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

You can refer http://www.sap.com/corporate-en/press.epx?PressID=18622 and http://phonegap.com/2012/04/13/sap-partnership-provides-openness-and-choice-for-mobile-app-developer...  for Phonegap and SAP collaboration.

Some time back I had created one Basic PhoneGap Application to retrieve service document from the SAP NW Gateway. If that app could help you out in any way I will be happy to share that app.

0 Kudos

hi!

if you can disponibilize your app i appreciated, this way i can learn a little bit more about phonegap.

The objective of my application is: using SUP for retrieving data from SAP and, with a phonegap plugin, generate an app for androird, ios, or BB/WM. I don't know if this is even possible.

Thanks.       

0 Kudos

Hi,

The project which I am discussing about is a basic eclipse project which fetches the service document by directly hitting the Gateway. Just import the project and provide a proper Gateway URL along with the Authentication parameters as "username:password" in base64 encoded format.

Now, as you want to use SUP server also in between which I am not doing and I haven't tried yet but I think we can do like this.

You need to add some more request header like:

request.setRequestHeader("Content-Type");

request.setRequestHeader("security Configuration");// Optional, In case the security configuration which we want use is set as default in SCC.

and instead of direct gateway URL, the URL should look like

http://<Host>:<Port>/<Application ID>/<Entry which needs to be fetched>

Ex. : http://a.b.c.d:8000/com.sap.app/Collection('ID')/$value

And to make it run on all the platforms login to phonegap.com and upload your application. They will take care of all the compilation and if everything is correct the executable will be available to download. In case of iOS you need to provide a valid provisioning profile then only you will be able to get the .ipa file.

I am unable to attach the zip file here please provide your email ID so that I can mail that to you.

Regards,

Kamlendra

0 Kudos

Hi!

thank's for your avalibility. I don't know if this is quite what I need but I will give it a look.

My email [REMOVED by MODERATOR per RULES of ENGAGEMENT. ADD to PROFILE if DESIRED.]

Thank you again.

Regards.

Message was edited by: MODERATOR

Former Member
0 Kudos

Hi Kaml,

Can you eleborate more about Indirect link and how is it working

I have scenario to develop phoneGap mobile apps that connect to SAP server web service.

It is working from inside the company but outside the company it won't work.

Because SAP in different secured zone.

So, we are planing to develop a web service in DMZ and that web service will redirect the request to SAP.

Now is the indirect URL will work in this situation or no?

Regards,

Answers (0)