The documentation from version 39.5.17 of PLANTA project can be found in the new PLANTA Online Help.

SAP-RFC Interface

Information
  • The following description is relevant for you if you want to use the PLANTA-SAP interface, which can be realized on the basis of the PLANTA universal interface.
  • This description only provides technical information for communication with an SAP system.
  • The user view, the actual data exchange, and the technical logic based on it, are not covered here. For more information, please refer to the Universal Interface documentation.
  • PLANTA makes a couple of SAP standard interfaces available, which can be used as a template for setting up individual SAP interfaces.

General

Information

  • The SAP system communicates via remote function call (RFC) API.
  • For this purpose, the SAP NetWeaver RFC Client Library is integrated and activated through a Python module.
    • Hence, the SAP access is scriptable and therefore highly flexible.

Setup

Information

Windows

Requirements

  • The customer requires
    • an SAP system with NetWeaver compatible RFC implementation of version 7.20P_7 or 7.50P_6. Version 7.50P_6 is recommended.
    • In the 64bit x86 version: Installed SAP RFC client libraries on the application server on which the PLANTA server is running.
      • SAP NetWeaver RFC SDK version 7.50P_6 requires a runtime made available by the following packet: Visual C++ Redistributable Packages for Visual Studio 2013 (msvcr120.dll). If runtime is not installed, the dlls of the SDK cannot be loaded.

To be observed in implementation

  • Depending on which PLANTA server version you currently use (install), i.e. depending on the combination of Python and SAP library versions, the wrapper already contained in the PLANTA server must possibly be replaced by the other wrapper. The new wrapper files can be found in the separate SAP Libs for RFC Windows directory on the PLANTA transfer server. If required, copy the wrapper file named nwsaprfcutil.cpython-*.so from the respective subdirectory to <Server-Verzeichnis>\dlls.

SAP 7.20P_7 SAP 7.50P_6
Python 3.4.3 (up to S 39.5.26) Existing wrapper files are functional not available
Python 3.6.0 (S 39.5.27 - S 39.5.29) Existing wrapper files must be replaced Existing wrapper files must be replaced

Procedure

  • The path to the SAP libraries must be made available in the operation system environment variable PATH.

Linux

Requirements

  • The customer requires
    • an SAP system with NetWeaver compatible RFC implementation of version 7.20P_7 or 7.50P_6.
      • The use of 7.50P_6 requires server 39.5.30 on the part of PLANTA ( will be released shortly).
    • In the 64bit x86 version: Installed SAP RFC client libraries on the application server on which the PLANTA server is running.

To be observed in implementation

  • Depending on which PLANTA server version you currently use (install), i.e. depending on the combination of Python and SAP library versions, the wrapper already contained in the PLANTA server must possibly be replaced by the other wrapper. The new wrapper files can be found in the separate SAP Libs for RFC Linux directory on the PLANTA transfer server. If required, copy the wrapper file named nwsaprfcutil.pdb from the respective subdirectory to \dlls.

SAP 7.20P_7 SAP 7.50P_6
Python 3.4.3 (up to S 39.5.26) Existing wrapper files are functional not available
Python 3.6.0 (S 39.5.27 - S 39.5.29) Existing wrapper files must be replaced not available

Procedure

  • The path to the SAP libraries must be made available in the operation system environment variable LD_LIBRARY_PATH.

Use:

Information
  • The Python module can be integrated and used within any Python macro via import sapnwrfc.

         PLANTA project









 
  • Suche in Topic-Namen

  • Suche in Topic-Inhalten
This site is powered by the TWiki collaboration platform Powered by Perl