What are you doing in an environment where you write ABAP and create CDS views individually? I am currently subscribing to an ABAP environment. Of course, it costs a monthly fee, so I thought it would be nice if I had my own environment.
At that time, I came across such a video. SAP ABAP Trial in Docker | Windows Setup Guide [Tutorial] I had a Docker environment, so I decided to try it. The video is as short as less than 10 minutes, so it seems easy to get started.
This means that you can use ABAP development tools, Fiori Launchpad, Cloud Connector, roles, sample applications, etc. on an ABAP application server that runs on a database called ASE (not HANA!). Reference: AS ABAP 752 SP04, developer edition: NOW AVAILABLE
Since it's a big deal, I tried various things to see how much I could do in the trial environment.
--Install NW AS ABAP Developer Edition (this article) -Cloud Connector settings, registered in Cloud Platform Destination -Deploy apps developed on Cloud Platform --Open the app with Fiori Launchpad --Install ABAP Git
In the video, I explained using a Windows terminal with Docker installed. The environment I used is Ubuntu (18.04) on AWS EC2. The procedure is the same for Windows and Linux.
Configuration
The hardware requirements are described in this blog. ** 100 GB free disk space ** was the demon, and I had to add a volume to the EC2 instance.
For instructions, see Video and GitHub You can see it by looking at it. However, I was at a loss in a super-basic place that was not in the video, so I will focus on that (steps 1 and 2). After that, I think that it will go smoothly if you move your hand while watching the video. (Repeat, there is plenty of disk space!)
Create a folder of your choice and clone the Git repository (https://github.com/brandoncaulfield/sap-nw-abap-trial-docker-windows). The repository contains Dockerfile etc. for installing NW AS ABAP.
Download the SAP NetWeaver AS ABAP Developer Edition 7.52 SP04 rar file from here (https://developers.sap.com/trials-downloads.html). It is all from SAP ABAP AS Part1 to Part11. It will take some time, so please wait patiently. After downloading, unzip the Part 1 file using 7-zip or the like. Then, all the files are stored and the state is as follows.
Create a new folder called sapdownloads in the folder cloned in 1. and store the unzipped one.
Move the current directory to the folder you cloned in step 1 and enter the following command.
docker build -t nwabap:7.52 .
This parameter is [Parameter for handling large database](https://groonga.org/ja/docs/reference/tuning.html#:~:text=vm.max_map_count,%E5%9B%9E%E6%95 % B0% E3% 82% 92% E5% 88% B6% E9% 99% 90% E3% 81% 97% E3% 81% BE% E3% 81% 99% E3% 80% 82).
sysctl -w vm.max_map_count=1000000
Confirm that vm.max_map_count has increased with the following command.
sysctl vm.max_map_count
docker run -p 8000:8000 -p 44300:44300 -p 3300:3300 -p 3200:3200 -h vhcalnplci --name nwabap752 -it nwabap:7.52 /bin/bash
When you execute the above command, it will be in the container. ** About the port ** NW AS ABAP exposes four ports. Looking at the Dockerfile, it seems that there is also a port 8443 for Cloud Connector, and if it is open to the public, Cloud Connector may have been used as it is. (I will write it in another article, but this time I installed Cloud Connector in another container)
port | Use |
---|---|
8000 | HTTP |
44300 | HTTPS |
3300 | ABAP in Eclipse |
3200 | SAP GUI |
Start the installation with the following command.
/usr/sbin/uuidd
./install.sh
You will be asked if you agree with the license agreement, enter "yes". You will be asked to set a password on the way, so enter a password of 8 digits or more. However, since the password that is actually used for login is ** Down1oad **, it is unknown what the password set here will be used for. The installation will take some time, so please be patient. When the installation is complete, the following message will be displayed.
Start the server with the following command.
su npladm
startsap ALL
It is OK if the message ʻInstance on host vhcalnplci started` appears.
After the installation is complete, connect it to the GUI. The GUI installer is included in sapdownloads / client / SAPGUI4Windows (for Windows). I have NetWeaver installed on Ubuntu, but I'm using it by connecting from the GUI of a Windows PC.
The logon pad settings are as follows.
The following blog describes how to set ADT. [ABAP] How to install ABAP Development Tools (ADT)
You need to obtain and import the SAP NetWeaver license key. This is done by logging in to the GUI. See ** Important Post Installation Steps ** on GitHub (https://github.com/brandoncaulfield/sap-nw-abap-trial-docker-windows) for instructions.
stopsap ALL --Stop the server
exit --Exit npladm
exit --Stop Docker container
docker container start nwabap752 --Launch Docker container
docker container attach nwabap752 --Go inside the container
/usr/sbin/uuidd --Some shell
su npladm --Change user to npladm
startsap ALL --Start the server
It's hard to type the above command every time, so I made a shell. (Error handling etc. are not considered. I don't know)
managesap
#!/bin/bash
start_sap(){
#start container
sudo docker container start docker container start nwabap752
#start sap
sudo docker exec -it nwabap752 /usr/sbin/uuidd
sudo docker exec -it nwabap752 su - npladm -c "startsap ALL"
}
stop_sap(){
#stop sap
sudo docker exec -it nwabap752 su - npladm -c "stopsap ALL"
#stop container
sudo docker container stop nwabap752
}
To run it, move to the directory where the shell is placed and execute the following command.
. managesap
start_sap --Start sap
stop_sap --Stop sap
--I got my own NW AS ABAP server. --You can access from GUI and ADT to develop ABAP.
-SAP ABAP Trial in Docker | Windows Setup Guide [Tutorial] (Video)
Recommended Posts