Skip to Content
Technical Articles
Author's profile photo Christian Drumm

Hosting a Netweaver ABAP Developer System on Google Cloud Plattform

Disclaimer: This blog aims to provide a reference to students and teachers at universities on how to easily host an SAP Netweaver ABAP Developer system on the Google cloud platform. Also some of the information is specific to people teaching at universities the general approach might also be interesting for ABAP developers looking for an alternative approach to installing the SAP Netweaver ABAP Developer in a virtual machine or via docker.

The blog consists of two main parts. First, there is a detailed description on how to set up SAP Netweaver ABAP Trail in the Google cloud platform using the SAP Cloud Appliance Library. Second, there is a description how teachers at universities can request free Google cloud credits for their classes.

Setting Up SAP Netweaver ABAP Developer in the Google Cloud Platform

Setting up an SAP Netweaver ABAP Developer system on the Google cloud platform consists of five major steps:

  1. Registering an account on the Google cloud platform (GCP)
  2. Setting up a project on the GCP to host the SAP Netweaver ABAP Developer
  3. Registering an account in the SAP Cloud Appliance Library
  4. Deploying the SAP Netweaver ABAP Developer system using the SAP Cloud Appliance Library (CAL)
  5. Post-install steps on the SAP Netweaver ABAP Developer system

In the following sections each of these steps is described in detail.

Step 1: Google cloud platform account

I assume that everyone has reading this blog already has a Google account. If not, this is the time to create one.

Creating a project

Open the GCP console: https://console.cloud.google.com/. On the GCP console click on the projects link.

This link will open up the pop up shown below. In this pop up you will be able to create a new project. In the screenshot there are already some projects present. If you just create your account the project list is still empty.

Create a project for your SAP Netweaver Trail system. In my case the project is named Netweaver ABAP 752 (which is actually a bit misleading because the SAP Netweaver ABAP Trail system is a Netweaver 7.51 but anyway….). It will take about half a minute until the project is ready.

Step 2: Configure the cloud platform account

Actually, the next step is to configure the project you just created. This consists of tow steps:

  1. creating a d configuring a service account
  2. enabling certain APIs.

Create a service account

The next step is to create a service account for your project. Later in the set up process the SAP Cloud Appliance Library uses this service account to deploy the SAP Netweaver Trail system into the GCP.

In your project click on the menu icon to toggle the menu.

In the menu select the menu item “IAM & admin -> Service accounts”.

Click on the “Create Service Account” link and create a service account.

The service account in this example is named “sa-nw-trial”.

After the service account has been create additional roles need to be granted to the service account. In order for the deployment of the SAP Netweaver ABAP Developer system using the CAL to succeed, the service account requires the following roles:

  • Compute Instance Admin (v1),
  • Compute Network Admin
  • Compute Security Admin

Once the roles have been added to the service account click on continue. On the next screen create a private key for the service account and store it in JSON format. Clicking on create will download the private key to you local computer. This key required later to allow the CAL to connect to the GCP.

Finally click on done to finish setting up the service account.

Enable the required APIs

In order to allow the CAL to deploy the SAP Netweaver Developer System to the GCP certain APIs need to be enabled.

in the GCP menu select “API & Services”

In the API & Services dashboard click on “Enable APIs and Services”

On the next page search for the following APIs and enable all of them:

  • Cloud Resource Manager API
  • Compute Engine API

Enabling the Compute Engine API requires you to enable billing for the account. Accept this option. You will need to create a billing account and link it to you project. Here is now some important information for teacher and students.

  • Teachers: Go to the section Google Cloud Credits for Education for a description on how to get free cloud credits.
  • Students: If you teacher provided you with a link to retrieve  Google cloud credits voucher open this link and request the voucher. In the billing view you created above you will be able to redeem this voucher.

Step 3: SAP Cloud Appliance Library Account

The next step is to create a SAP Cloud Appliance Library (CAL) account. Navigate to https://cal.sap.com/. On the main page click on “Log on”. This will open a pop up of the SAP ID Service. Existing SAP accounts (e.g. for accessing the SAP community network) can also be used to access the CAL. If you don’t have an SAP account click on “Register” to create one.

One the account has been created log on to the CAL.

Step 4: Deploying the SAP Netweaver ABAP Developer System

On the CAL console search for SAP NetWeaver AS ABAP 7.51 SP02 on ASE.

Click on “Create Instance” and accept the license agreement. On the next page give the new instance a name and select “Google Cloud Platform” as the cloud provider. Next upload the JSON file that was downloaded at the end of Step 2.

 

After the upload the zones and regions need to be set. I used “europe-west1″ and “Zone B”. Next, set a password to access the instance. This password will also be used to log into the SAP system af

ter the installation. Finally, c

reate the new instance. Initially the creation takes about 30min.

 

Once the instance is created it is also automatically activated. After this process completed it is possible to connect to the instance by clicking on the connect button. Before doing this there are two additional configurations necessary. Clicking on the instance name navigates to the details view. in this view click on “Edit”.

First set the tick mark for “Public Static IP Address”.

After this add the following ports to the Linux instance:

  • HTTPS – 44300
  • HTTP – 8000
  • TCP – 30125
  • TCP 3300.

Finally, save the changes. Now it is possible to connect to the SAP Netweaver ABAP Developer system using both, the SAP GUI and ABAP in Eclipse.

Step 5: Post-install steps

Before the system can be used for ABAP development it is necessary to install a valid license. The description below is copied from Julie Plummer’s great blog https://blogs.sap.com/2017/09/04/sap-as-abap-7.51-sp2-developer-edition-to-download-concise-installation-guide/.

  1. Log on to the system, client 000 as user SAP* and the password you set during the installation. In transaction SLICENSE , ascertain your hardware key. If the SAP GUI is installed you can connect by simply clicking on the connect button of your CAL instance.
  2. Request the license key for your trial version at SAP Sneak Preview License Key Request.
    • Select NPL – SAP NetWeaver 7.x (Sybase ASE) as System ID.
    • Enter your personal data and agree to the License Agreement.
    • Choose Generate bottom right corner of screen.)
    • The web site automatically generates a .txt file for this system/key. Download and save this file, eg on the desktop for convenience.
  3. Go to transaction SLICENSE and install the license file:
    • In the tab Digitally signed licenses, delete the existing license, then choose Install. This opens the text file you got and installs the new license key.
  4. Log out.

The system is now ready an can be used for developing. As a running instance results in higher cost make sure to always suspend the instance if it is not used. Starting and suspending the instance can be done using the CAL console.

Editing the hosts file

In order to being able to use the debugger as well as the ABAP documentation in ABAP in eclipse it is also necessary to edit the hosts file. How this is done depends on the operation system. On Windows the hosts file is located in the folder

C:\Windows\System32\drivers\etc

The following line need to be added to the end of the hosts file:

<xxx.xxx.xxx.xxx> vhcalnplci vhcalnplci.dummy.nodomain

In this line <xxx.xxx.xxx.xxx> need to be replaced with the public static IP of the Linux External IP Address of the SAP Netweaver ABAP Developer system. The Linux External IP Address can be found in the details view of the instance in the CAL.

Google Cloud Credits for Education

Usually, teachers at universities request SAP system for their courses via the SAP University Alliance. The University Competence Centers provide hosted systems as well as additional service around these systems. Most of the time this is the go to solution (e.g. for teaching introduction courses to SAP ERP using GBI). However, for simple ABAP introduction courses this approach is in my opinion to complex and expensive.

In the past I usually installed a SAP Netweaver ABAP Developer system in a virtual machine and distributes this virtual machine to the students. However, this approach was very error prone as a lot of the students struggled with using the virtual machines (e.g. due to missing disk space on their computers etc.). Since I found out about the Google Cloud Education Grants hosting SAP Netweaver ABAP Developer system on GCP is my preferred solution.

Google offers free education grants here: https://lp.google-mkto.com/CloudEduGrants_Faculty.html

When I requested these grants I got 100$ vouchers for each teacher and 50$ vouchers for each student. 50$ is more then enough to run SAP Netweaver ABAP Developer system for a term. Therefore, this is the approach I’m currently using in all of my classes.

References

I want to mention Noboru Ota great blog on running S/4HANA on GCP (https://blogs.sap.com/2018/07/12/a-do-it-yourself-step-by-step-guide-how-to-set-up-your-on-premise-system-of-sap-s4hana-1709-at-home/). It provided the basis for this blog. Furthermore, the second part of this blog also shows how to connect to a SAP system running in GCP using ABAP in Eclipse.

Assigned Tags

      14 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Noboru OTA
      Noboru OTA

      Hi Christian, thanks for the mention 🙂

      Author's profile photo Jelena Perfiljeva
      Jelena Perfiljeva

      Nice set of instructions! Please add "SAP Mentors" tag when you get a chance. Thanks!

       

      Author's profile photo Andre Fischer
      Andre Fischer

      Very useful blog!

      Author's profile photo Mark Hallett
      Mark Hallett

      Great blog. Hopefully I can socialize this at our University of Leicester in the UK...

      Author's profile photo Ene Florin Catalin
      Ene Florin Catalin

      Hey, Christian! 🙂 Thanks for sharing this! Really great post!

      Author's profile photo Elias Santos
      Elias Santos

      Thanks for sharing!! Very useful.

      Author's profile photo r.ten bosch KLM E&M
      r.ten bosch KLM E&M

      hmm unfortunately the deployment from SAP CAL to google GCP isnt complete.
      For BW4HANA SP09 BPC11 SP05.

      The AP accesspoint for SAP GUI port 3200 is missing [same AP missing in deploy to AWS], so it cannot be used..
      Other SAP Partners have published this in their blogs as well...
      We have spend about 3 days deploying and finding out..

      Author's profile photo Łukasz Pęgiel
      Łukasz Pęgiel

      Thanks Christian Drumm , just preparing a system for ACR Tychy 2019 following your tutorial 🙂 I think it will be enough 🙂

       

      Cheers

      Łukasz

      Author's profile photo Christian Drumm
      Christian Drumm
      Blog Post Author

      Hi Łukasz,

      good to hear that the blog is useful. If you encounter any issues let me know.

      It’s a pity I can’t join the ACR in Tichy this time.

      Christian

      Author's profile photo Sérgio Fraga
      Sérgio Fraga

      Hello Christian Drumm,

      Thank you so much for this blog.

      I have followed your steps and I now have my own SAP instance to play with. Incredible!

      I'm now trying to access my instance via ADT but I'm having some issues.

      Did someone manage to loggon to the instance via ADT?

      Here I am having:

      Connect to SAP gateway failed
      Connection parameters: TYPE=A DEST=SDF_001_sfraga_en ASHOST=XX.XXX.XXX.XXX SYSNR=00 PCS=1

      LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner 'XX.XXX.XXX.XXX:3300' not reached

      Any assistance would be great

      Thank you

      Sérgio Fraga

       

      Author's profile photo Sérgio Fraga
      Sérgio Fraga

      Found it.

      I was using the wrong IP address to connect to my Instance.

      I saved an entry on my SAP GUI and Eclipse was using these parameters.

      I downloaded the .sap link from CAL, open it in notepad and got the correct parameters from there.

      Thanks anyway

      Sérgio

      Author's profile photo MACHIREDDYPALLY SWEEKAR
      MACHIREDDYPALLY SWEEKAR

      can u please share any documentation for all steps for gcp and abap hana system installation  for practicing purpose

      Author's profile photo Siva Ummadi
      Siva Ummadi

      how to download maintenance certificate for this trail system.

      Author's profile photo Roland Schwaiger
      Roland Schwaiger

      Hi Christian Drumm

      Thanks for your post, I is a great help to set up the system for class room.

      I successfully managed to follow your instructions in the past. Last week it did not work anymore since Google restricted the Quota limít of SSD to 250 GB (Google trial account on GCP) and  SAP requests 289 GB.

      Any idea?

      BR, Roland