This documentation will guide you through the installation of the required software in order to run trm-client.
To install both NodeJs and npm, follow this guide.
After installing NodeJs and npm, make sure to have the following environment variable set in your system:
-
Windows
-
Open the Enviroment Variables settings and view the PATH variable
-
Check if the path
C:\Users\<<YOUR_USER>>\AppData\Roaming\npm
is in the list, if not, add it
-
Running the command npm
in your system CLI should output all of the possible commands.
Note
As of trm-core 6.0.0 (December 2024), SAP NW RFC SDK has become optional in TRM installation. This comes with the end of the support of node-rfc library (#329).
TRM Client communicates with SAP systems through RFC.
For this reason, it's necessary to have the RFC SDK installed on your system.
A guide on installing the SDK can be found here.
To sum up the installation:
-
Download the RFC SDK from the SAP® Support Portal (follow the updated link of the note in this section)
-
On Windows
-
Create the folder
C:\nwrfcsdk
-
Place the content downloaded into this folder (extract if needed)
-
Make sure
C:\nwrfcsdk\bin
exists
Make sure the libraries are also included in the bin folder (
C:\nwrfcsdk\bin\icudt5x.dll
...), if not, copy the content of the folderC:\nwrfcsdk\bin\lib
intoC:\nwrfcsdk\bin
Running the command
rfcexec
through cmd, in the folderC:\nwrfcsdk\bin
, should list the mandatory fields of the command-
Create an enviroment variable named
SAPNWRFC_HOME
, with the pathC:\nwrfcsdk
-
Add
C:\nwrfcsdk\bin
to the PATH environment variable -
Run the command
npm install node-rfc -g
-
If you installed the SAP NW RFC SDK you can skip this step, as the library should be already provided with the SDK.
Start by downloading SAPCAR (for more information refer to SAP Note 212876), which will be used for unpacking SAPEXE.
SAPCAR is a utility used by SAP to compress and/or uncompress SAP archive files (SAR: SAP Archive)
- Go to Software downloads in SAP for Me
- Click the SUPPORT PACKAGES & PATCHES section
- Expand the By Alphabetical Index (A-Z) section
- Click the S letter
- Click the SAPCAR element of the list
- Select the highest available version
- Select your operating system
- Click the element you want to download
Now, download SAPEXE
- Go to Software downloads in SAP for Me
- Click the SUPPORT PACKAGES & PATCHES section
- Expand the By Alphabetical Index (A-Z) section
- Click the K letter
- Select a 64bit kernel
- Select your operating system
- Click on the SAPEXE element you want to download
After downloading SAPCAR and SAPEXE, unpack its content with the command
sapcar -xvf <SAPEXE file>.SAR
-
On Windows
-
Create the folder
C:\ICU
-
Move the ICU common library dlls (icuuc5x.dll, icudt5x.dll, icuin5x.dll) into that folder
-
Add
C:\ICU
to the PATH environment variable
-
-
On Linux
-
Create the folder
C:\ICU
-
Move the ICU common library files (libicuuc5x.so, libicudata5x.so, libicui18n5x.so) into that folder
-
Create an enviroment variable named
LD_LIBRARY_PATH
, with the pathC:\ICU
-
For this step, installing SAP NW RFC SDK or having the ICU common library is necessary.
The R3trans program is used by TRM Client to unpack the packages downloaded from a registry.
Start by downloading SAPCAR (for more information refer to SAP Note 212876), which will be used for unpacking the R3trans program.
SAPCAR is a utility used by SAP to compress and/or uncompress SAP archive files (SAR: SAP Archive)
- Go to Software downloads in SAP for Me
- Click the SUPPORT PACKAGES & PATCHES section
- Expand the By Alphabetical Index (A-Z) section
- Click the S letter
- Click the SAPCAR element of the list
- Select the highest available version
- Select your operating system
- Click the element you want to download
To download the R3trans program:
- Go to Software downloads in SAP for Me
- Click the SUPPORT PACKAGES & PATCHES section
- Expand the By Alphabetical Index (A-Z) section
- Click the K letter
- Select a 64bit kernel
- Select your operating system
- Click on the R3trans element you want to download
After downloading SAPCAR and R3trans, unpack the program with the command
sapcar -xvf <R3trans file>.SAR
-
On Windows
-
Create the folder
C:\R3Trans
-
Place the extracted content into this folder
-
Make sure
C:\R3Trans\R3trans.exe
exists
Running the command
R3trans
through cmd, in the folderC:\R3Trans
, should list possible commands- Create an enviroment variable named
R3TRANS_HOME
, with the pathC:\R3Trans
-
For this step, installing all of the requirements is necessary.
Before executing this step, it's recommended to close and reopen the CLI (if the same instance was used for setting environment variables, they might be ineffective until reloading).
Run this command in your system CLI:
npm install trm-client -g
this will install the trm-client package in your system.
If all of the requirements are installed, running the command
trm
in your CLI should output all of the possible commands.
As of trm-core 6.0.0 (December 2024), it is now possible to connect to an SAP system through REST APIs.
trm-rest is the porting/exposure of the legacy RFC trm-server functions in REST APIs.
Install guide for trm-rest can be found here.
It's highly recommended to make use of Virtual Systems in order to release transports without worrying about leaving them in queues.
Ideally, you should setup the Virtual System on your central development system, and every time you publish, the Virtual System should be targeted.
Here's a guide on how to setup a Virtual System.
The setup should be performed by your BASIS team.