Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
nicolas_busson
Active Contributor

Make sure your phone can access SAP Gateway

All over SCN you can find a huge amount of content describing how to create very cool mobile apps in less than 5 minutes, or even 25 seconds:

Developing SAP Android Apps is Just a Few Clicks Away

Developing SAP iOS Apps – It’s Simpler Than You Think!

So I wanted to give it a try myself and see how it goes. Here is the first part of my story (also known as "How-to create a simple mobile app for newbies"):

Part    I: Make sure your phone can access SAP Gateway

Part   II: Create your first service with SAP Gateway

Part  III: Develop your mobile app on Eclipse

Part IV: Test your mobile app on your phone

Part  V: Troubleshooting... and finally make it work!

Useful links:

Step by Step Installation Guide for SAP NetWeaver AS ABAP 7.02 SP6 32-bit Trial Version

Licensing Sneak Preview SAP NetWeaver 04 ABAP Edition

Starting point

I'm a SAP CRM functional consultant (hence the serie "for dummies"), highly interested in the "dark side", a.k.a technical development. So I've already downloaded and installed The specified item was not found. on a virtual machine running Windows 7 64Bits using VirtualBox. This allows me to create any VM I need, scratch them and come back with a fresh install in a second. But until now, I never used the "Gateway" capacity of my Netweaver installation (my virtual machines were not even visible on my network, and didn't have any access to the Internet as I used the "Loopback Adapter" technique). So to be able to communicate between my mobile phone and my VM where SAP Gateway was running, the first thing I had to do was to adapt my VM settings...

Step 1: make your VM visible on the network

Go to your VM settings, click on the Network tab, mark the "Enable Network Adapter" and select the "Bridged Adapter" as shown in the picture below :

Step 2: assign a static IP address to your VM

It will make your life a lot easier if your SAP system is always accessible from the same IP address. So go to your router configuration, and use the MAC Address provided in the previous picture to assign any IP address you like. In my case I chose 192.168.0.9. Remark: If you live in France and use Free as Internet access provider, you can follow this link to configure the same:  http://mafreebox.free.fr >> Réseau local >> Serveur DHCP >> Baux statiques :

Step 3: configure your VM's network connection

Start your VM and logon with user sapadm as you usually do. The system should now find a new network card and a popup will ask you to configure your network connection. Select "Home network":

Click "Next" until the end and close the popup (you can cancel the step where you're asked to enter a password to join "Workgroup" domain).

Then go to "Network and Sharing center" from the control panel. Disable any other network connection (in my case it was the loopback adapter). For this, first click on the "Local Area Connection" as shown in the picture below:

In the popup that will come up, click the "Disable button":

This network connection should no longer appear in the list.

Now edit your host file located in C:\Windows\System32\drivers\etc to add those last 2 lines (of course you'll have to change 192.168.0.9 so that it corresponds to the IP address you chose at step 2):

Save and close the host file.

Try and start your SAP system via sapmmc: everything should work as before, and if you start Internet Explorer from within your VM, you should have access to the Internet. If you're facing issues starting your SAP instance (you're stuck with an orange light in your sapmmc console for example), try to shutdown and reboot your VM. It should work.

Conclusion

It took me approx. 20 minutes to get everything ready, although I already had a SAP Netweaver ABAP trial with SAP Gateway up and running that I used to develop many projects available on code exchange... Let's see what will come up with the next steps: go to Part II.

10 Comments
Labels in this area