Tuesday 20 November 2018

Hosting a Netweaver ABAP Developer System on Google Cloud Plattform

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material
SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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”

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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”.

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

After this add the following ports to the Linux instance:

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

SAP ABAP Development, SAP ABAP Guides, SAP ABAP Tutorial and Material

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


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.

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.

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.

No comments:

Post a Comment