Information
-
This page describes the technical connection of PLANTA project to an SAP system. It is relevant if you are setting up an SAP interface based on the universal interface of PLANTA link.
-
The data exchange and the functional logic is explained in the Introduction to PLANTA link and Interfaces page.
-
PLANTA provides several SAP standard interfaces which can be used as a template for setting up individual SAP interfaces.
See also: Further integrations of PLANTA project
General
Information
-
PLANTA project communicates with the SAP system via RFC calls (Remote Function Call).
-
To do this, the worker integrates the SAP NetWeaver RFC client library via the pyrfc Python module.
Setup
Requirements
-
Starting from Worker S 39.2.5 the worker image contains the pyrfc Python module. It is based on PyRFC.
-
The libraries of the SAP NetWeaver RFC SDK 7.50 for Linux are not contained in the image. They are provided by the customer.
-
The worker container must reach the SAP system via the network.
Note on the implementation
-
The worker finds the SDK libraries via the
LD_LIBRARY_PATHenvironment variable. The path/planta/dllsmust be listed first. -
SAPNWRFC_HOMEis not needed.
Procedure
-
Store the SDK libraries in a directory and and mount this directory as a volume in the worker container, e.g., under
/opt/sap/nwrfcsdk/lib.-
For a single-instance environment, this is done in
docker-compose.ymlundervolumesof the worker service. -
For an orchestrated environment, this is done in the Helm values under
worker.additionalVolumesandworker.additionalVolumeMounts.
-
-
Set the environment variable
LD_LIBRARY_PATHof the worker container to/planta/dlls:/opt/sap/nwrfcsdk/lib.-
For a single-instance environment, this is done in
docker-compose.ymlunderenvironmentof the worker service. -
For an orchestrated environment, this is done in the Helm values under
worker.env.
-
-
Restart the worker container.
Use
Information
-
The Python module pyrfc can be included in any Python macro in PLANTA Project using
import pyrfc.
-
The setup on this page applies to PLANTA Project in container operation.
-
If your PLANTA server is installed conventionally on Windows or Linux (up to server S 39.5.37), you can find the setup in the documentation for version 39.5.23.
-
As of server 39.5.31, the sapnwrfc module has been replaced by pyrfc. Python macros that still use sapnwrfc must be switched to pyrfc when changing to container operation.