Client setup¶
trm-client is the client component of TRM.
It acts as the CLI bridge between the user and TRM server.
Install via npm¶
After installing Node.js and npm, install trm-client from npm:
Connect to SAP via REST¶
REST is available immediately after installing the client; no additional step is required. The SAP system must have both trm-server and trm-rest installed.
When prompted for the connection, select REST and enter the SAP system address and HTTP port.
If you do not know the address or port:
- Open transaction
SICFin the SAP system. - Navigate to
default_host>sap>ztrmserver. - Right-click
ztrmserverand select Test Service. - Use the address and port from the URL that opens in your browser.
Connect to SAP via BTP¶
SAP BTP is the preferred connection method, especially in CI/CD environments, because traffic reaches the SAP system through SAP's secure connectivity channels.
To connect to an SAP system through a destination exposed by SAP BTP, install the prerequisites for trm-plugin-btp-dest, then run:
BTP should now be available as an option when trying to connect to a system.
See Connect through SAP BTP for the one-time BTP setup and for connecting without prompts, for example from GitHub Actions.
Connect to SAP via RFC¶
Using SAP RFC SDK¶
⚠️ Note: The
node-rfclibrary is deprecated. It still works, but RFC connection support is moving toopen-rfc(See below).
To connect to an SAP system through RFC, install the prerequisites for node-rfc, then run:
RFC should now be available as an option when trying to connect to a system.
Using open-rfc¶
⚠️ Note: The
open-rfcconnection is experimental. You can try it, but it is not recommended for production use.
To connect to an SAP system through open-rfc run:
OpenRFC should now be available as an option when trying to connect to a system.