on 02-07-2013 5:45 PM
I have developed some android application using eclipse juno 4.2 but, these application do not consume data from sap system.
Now i wanted to connect to sap system and get data to use in my application.
After searching i came across this awesome post by Gal Roter but, somehow i am not able to get the thing done.
List of things i have installed,
1) Installed Eclipse Juno .
2) SDK manager
3) Android version4.1.2( Jelly Bean )
4) Then i downloaded SAP NetWeaver Gateway plugin for eclipse.
Here is the problem i am facing,
I try to create new project using SAP NetWeaver Gateway under that i selected Starter application project
I enter all the details like: project name, project for android ,application name ,pacakage etc..
but, i am not able to select the Build Target dropdown because that dropdown is empty.
What to do..? How to go ahead..???
I have attached the snapshot of the error i am getting.
Thanks in advance,
Vishesh
Hi Vishesh,
Please install at least one of the Android SDK packages between 8-13 API levels in your Android-SDK, these are the supported versions, and only they will appear in the drop-down.
Thanks,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
Thanks a lot for youe reply..!!
Yes i read you comments in the blog and found that i need to have Android SDK packages between 8-13 API levels after doing this i got the build target but, going ahead i faced another problem
while setting up the connection.
I hope that you will be able to help me out...
1) I had to provide the service URL which i am not aware of..i clicked on button "catalog"
in the blog i read that the dprodow " Sap Netweaver Gatway connect will automatically be filled
by the sap url..unfortunately i didnt happen that way and i got the dropdown empty..
2) Secondaly i tried clicking on the link named "configure" where i got the poup for adding connection..
3) I clicked on "Add new connection" after that
what connection details to be provided... i am not able to proceed...??
I ahve attached the screen shot of the pop-up i am getting..
As this is my first time trying to connect to sap system so i am not able to solve this...
Thanks in advance
Vishesh,
Hi Vishesh,
You need to configure the details of your SAP NetWeaver Gateway system.
If you don't have any, you can use the demo system, these are its details:
- Host: gw.esworkplace.sap.com
- Port: 80
- User: GW@ESW
- Password: ESW4GW
Don't forget to un-check the "useHTTPS" checkbox, and to check the "save password" checkbox.
Thanks,
Michal.
Hi Michal,
Thaks a lot..!!! I think you have unlocked the user . Now i have succesfully create the application .
But, When i tried to run the application in emulator it runs the login screen appears
after that when i enter the login details (User name - GW@ESW & Password - ESW4GW)
i get the following error message:-
any idea why i am getting this and how to reslove it...?
Thanks,
Vishesh.
Hi Vishesh,
This means you need to configure a proxy in the code.
In Eclipse, open the file,
SDMConnectivityHelper.java class in the helpers packageof the generated service proxy, and add the following:
this.mPreferences.setStringPreference(ISDMPreferences.SDM_CONNECTIVITY_PROXY_HOST,
"<your proxy host>");
this.mPreferences.setIntPreference(ISDMPreferences.SDM_CONNECTIVITY_PROXY_PORT,
<your proxy port>);
If I remember correctly you should put these lines in the constructor, just before the first "catch" block.
Michal.
Hi,
I checked and it isn't locked at the moment.
Please try again.
If you still get this error, but able to get data from this landscape in the browser (for example when entering
http://gw.esworkplace.sap.com/sap/opu/odata/iwcnt/ACTIVITY/$metadata), then perhaps you need to change your proxy configuration in Eclipse.
Regards,
Michal.
Hi Michal,
I am having a the same problem of configuration settings so i m unable to resolve.
I am not sure of how to change the proxy configuration in eclipse , well I tried adding the Server Host in the Network Connections -> add host . But still I m not able to get a solution
I have also visited to http://scn.sap.com/docs/DOC-40986 for getting the user credentials for the demo gateway system. Even when i tried logging into with that userid and password I am unable to get the successful connection.
Thank you
You will need to ensure you are using the correct port.
To find out the port number oneof the two following ways:
1. Execute transaction code SMICM and click on Goto > Service to determine the port number for HTTP.
Usually the port is set to 8000.
2. Execut transaction code SICF :
F8 from the first screen
Then expand the tree default_host > sap > opu > odata
Expand iwfnd or sap depending on where your service is
First Right Click the mouse on the service and choose Display Service
This will display details of the service and also the service name. Use the service name in the catalog .
Go back to the Maintain Service screen and once again Right Click the mouse on the service and choose Test Service (assuming that the service is activated). If the service is inactive activate it first before testing.
A webpage will open and display a dialog box. At this moment, look at the URL Address bar to read the port number specified.
If you want to view the XML rendition of the service in the browser then suffix /?format=xml to the url string.
Hope this helps.
Girish Vasu
You will need to ensure you are using the correct port.
To find out the port number oneof the two following ways:
1. Execute transaction code SMICM and click on Goto > Service to determine the port number for HTTP.
Usually the port is set to 8000.
2. Execut transaction code SICF :
F8 from the first screen
Then expand the tree default_host > sap > opu > odata
Expand iwfnd or sap depending on where your service is
First Right Click the mouse on the service and choose Display Service
This will display details of the service and also the service name. Use the service name in the catalog .
Go back to the Maintain Service screen and once again Right Click the mouse on the service and choose Test Service (assuming that the service is activated). If the service is inactive activate it first before testing.
A webpage will open and display a dialog box. At this moment, look at the URL Address bar to read the port number specified.
If you want to view the XML rendition of the service in the browser then suffix /?format=xml to the url string.
Hope this helps.
Girish Vasu
Hello Michal,
i got the same problems. Using the above connection didn't help ( Network connection error in Eclipse Juno ).
Trying with the demo account i got from the Netweaver Gateway site give's also the same error.
Is it possible that you check the account with username P032392.
The connect to the SAP Easy Access with this account works.
Thanks a lot.
Hans-Jörg
Hi Hans,
Which connection details are you using? If you're trying to connect to the demo system (gw.esworkplace.sap.com) then I'm afraid this landscape is down for some time now.
There is a new demo system you can use: sapes1.sapdevcenter.com.
Please see the below link regarding how to gain username and password:
Getting started with the SAP Netweaver Gateway Service Consumption System
Though as you can see here: SAP Netweaver Gateway Consumption - Operations
It appears the system is currently down until 03/02.
Regards,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michal,
I am able to install the plugin.
I was following one document the screen shows like below options which is not available in my case.
The screenshot is from document you can find netweavergateway is a option there.
In the Odata service i can find the options and starter application is also there.Just want to know in the sap netweavergateway also the starter option will come.
Is there any issue with the installation of the plugin.
Thanks
Bibhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It could be related to where your Android-SDK is located, where is it located?
Also, we have a new tool, named "SAP NetWeaver Gateway productivity accelerator", in there is a new and improved Android Toolkit, so I suggest that you download and use it.
See this blog for more details and download:
Regards,
Michal.
Hi Everbody,
So I want to start making an Android app, but after selecting "Starter Application Project" and choosing Android, the "Target Build" is empty. I have all Android API versions installed, and i'm running on a Mac.
What am I doing wrong?.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.