This guide outlines how to install the SAP NW ABAB Developer Trial 7.52+ using Docker on a Windows 10 machine.
-
Clone this GitHub repo
-
Downlaod the SAP NW ABAP Trial .rar files
-
Create a new folder in the local repo folder that you just cloned called sapdownloads
-
Copy the extracted rar files to the sapdownloads folder
-
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"
- Open Command Prompt or PowerShell and navigate to the local repo folder and run the docker build command:
docker build -t nwabap:7.52 .
- 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
- 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
- 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
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/
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 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
-
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.
These steps were copied directly from Nabi Zamani's GitHub Repo.
-
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 fromSLICENSE
- Keep the downloaded file
NPL.txt
and go back to theSLICENSE
- 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 passwordDown1oad
, typically you would work withDEVELOPER
):- User: DEVELOPER (Developer User)
- User: BWDEVELOPER (Developer User)
- User: DDIC (Data Dictionary User)
- User: SAP* (SAP Administrator)
- Open SAP GUI and logon
-
Generating Test Data
Execute the following to generate some test data:
- Report: SAPBC_DATA_GENERATOR
- Transaction Code: SEPM_DG
-
Suggestion: Activate the good old ping service
- Go to Transaction
SICF
- Activate the node
/sap/public/ping
(default_host) - Test the HTTP and HTTPS connection with your browser
- Go to Transaction