Skip to content

bmaciag/sap-nw-abap-trial-docker-windows

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

SAP NW ABAP Trial in Docker on Windows

This guide outlines how to install the SAP NW ABAB Developer Trial 7.52+ using Docker on a Windows 10 machine.

Credit to the following people for the steps and the docker file

Tobias Hofmann

Nabi Zamani

Gregor Wolf

Steps

  1. Clone this GitHub repo

  2. Downlaod the SAP NW ABAP Trial .rar files

  3. Create a new folder in the local repo folder that you just cloned called sapdownloads

  4. Copy the extracted rar files to the sapdownloads folder

  5. Copy the installer.sh file to zinstaller.sh and change the following lines

    ./saphostexec -install || do_exit $ERR_install_saphost

    # TODO: is it ok to remove /tmp/hostctrl?
    cd /
    rm -rf /tmp/hostctrl || log_echo "Failed to clean up temporary directory"

to

    ./saphostexec -install &

    #Wait for a while so that hopefully the asynchronous call ends:
    log_echo "Waiting 30 seconds for asynchronous call to /tmp/hostctrl/saphostexec -install to complete..."
    sleep 30
    log_echo "30 seconds are up, continuing the main script."

    # TODO: is it ok to remove /tmp/hostctrl?
    cd /
    #Let's not remove the temporary directory, in case saphostexec command
    #is still executing. So commenting out:
    # rm -rf /tmp/hostctrl || log_echo "Failed to clean up temporary directory"
  1. Open Command Prompt or PowerShell and navigate to the local repo folder and run the docker build command:
docker build -t nwabap:7.52 .
  1. Then run your docker container
docker run --privileged -p 8000:8000 -p 44300:44300 -p 3300:3300 -p 3200:3200 -h vhcalnplci --name nwabap752 -it nwabap:7.52 /bin/bash
  1. Once your container is running you need to begin installing the SAP system. The password you select during the installation should be at least 8 characters long. This could take a while so be patient! :)
/usr/sbin/uuidd
./zinstall.sh
  1. Once the SAP system is installed successfully start the new SAP system by running the following commands:
su npladm
startsap ALL

Then try and access your sap system using the GUI which is included in the SAP rar downloaded files (just needs to be installed normally).

The connection settings for the GUI are:

  • Server: 127.0.0.1
  • Instance: 00
  • System-ID: NPL

Using WSL 2 directly (Ubuntu)

You can also directly use WSL 2, therefor download a Linux distro via the Microsoft store. I installed Ubuntu 18.04 LTS, then check if it has version 2 via: wsl -l -v

If not, you can update it with the command wsl --set-version Ubuntu-18.04 2

Do a update/upgrade of the Ubuntu packages and install needed software via:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tcsh

First we will set the hostname to vhcalnplci, therefor execute sudo nano /etc/wsl.conf and add the following:

[network]
hostname = vhcalnplci
generateHosts = false

Then execute sudo nano /etc/hosts and find all occurences of your old hostname (e.g. "LAPTOP-123") and replace with new one (e.g. "vhcalnplci").

Restart WSL via wsl --shutdown. You can check the new hostname in the WSL then with the command hostname.

Now you can continue with step 8 and install the AS ABAP directly in your WSL via:

/usr/sbin/uuidd
sudo ./zinstall.sh -s

The sapdownloads folder you can find in the path /mnt/c/.... Sample command would be cd /mnt/c/downloads/nw-abap-trial/sapdownloads/

Using WSL 2 directly (openSUSE)

You can also directly use WSL 2, therefor download a Linux distro via the Microsoft store. I installed openSUSE-Leap-15.2, then check if it has version 2 via: wsl -l -v

If not, you can update it with the command wsl --set-version openSUSE-Leap-15.2 2

Install the needed software:

sudo zypper --non-interactive install --replacefiles which hostname expect net-tools iputils wget vim iproute2 unrar less tar gzip uuidd tcsh libaio nano

First we will set the hostname to vhcalnplci, therefor execute sudo nano /etc/wsl.conf and add the following:

[network]
hostname = vhcalnplci
generateHosts = false

Then execute sudo nano /etc/hosts and find all occurences of your old hostname (e.g. "LAPTOP-123") and replace with new one (e.g. "vhcalnplci").

Restart WSL via wsl --shutdown. You can check the new hostname in the WSL then with the command hostname.

Now you can continue with step 8 and install the AS ABAP directly in your WSL via sudo ./zinstall.sh -s. The sapdownloads folder you can find in the path /mnt/c/.... Sample command would be cd /mnt/c/downloads/nw-abap-trial/sapdownloads/

Starting and Stopping the NW ABAP 7.52 Trial

  1. Starting the container + SAP NW ABAP Trial (use this from now on instead of docker run ... from above)

    docker start -i nwabap752
    /usr/sbin/uuidd
    su npladm
    startsap ALL
  2. Stopping SAP NW ABAP Trial and container (ALL can be omitted)

    su npladm
    stopsap ALL
    exit
    exit

    Hint: After the second exit the Docker container is stopped.

Important Post Installation Steps

These steps were copied directly from Nabi Zamani's GitHub Repo.

  1. Updating License

    • Open SAP GUI and logon
      • User: SAP*
      • Password: Down1oad
      • Client: 000
    • Open Transaction SLICENSE
    • From the Screen copy the value of field Active Hardware Key
    • Go to SAP License Keys for Preview, Evaluation, and Developer Versions in your browser
    • Choose NPL - SAP NetWeaver 7.x (Sybase ASE)
    • Fill out the fields. Use the Hardware Key you copied from SLICENSE
    • Keep the downloaded file NPL.txt and go back to the SLICENSE
    • Delete the Installed License from the table
    • Press the button Install below the table
    • Choose the downloaded file NPL.txt
    • Done - happy learning. Now logon with the dev user.

    You can now logon to client 001 with any of the following users (all share the same password Down1oad, typically you would work with DEVELOPER):

    • User: DEVELOPER (Developer User)
    • User: BWDEVELOPER (Developer User)
    • User: DDIC (Data Dictionary User)
    • User: SAP* (SAP Administrator)
  2. Generating Test Data

    Execute the following to generate some test data:

    • Report: SAPBC_DATA_GENERATOR
    • Transaction Code: SEPM_DG
  3. Suggestion: Activate the good old ping service

About

SAP NW ABAP Trial in Docker on Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%