Skip to main content

Collect data from SAP tables

Project description

sap-rfc-data-collector

Collect data from SAP tables directly.

Install

pip install sap-rfc-data-collector

Quick start

from sap_rfc_data_collector.connection import SAPConnection
from sap_rfc_data_collector.sap_generic import SAP

conn = SAPConnection(host='host',
                     service='service',
                     group='group',
                     sysname='sysname',
                     client='client',
                     lang='lang',
                     user='user',
                     password='password')

runner = SAP(connection=conn)

# get iterator of dataframes (for each 1000 rows) from functional location table (IFLO)
data = runner.get_data_df(
  table='IFLO',
  columns=['TPLNR', 'ZFAMF'],
  where="IWERK = 'CMPN'",
  page_size=1000
)

for df in data:
    print(df.head())

Consult some site (like https://www.sapdatasheet.org) to identify tables and columns names!

Requirements

SAP NWRFC SDK 7.50 PL3 or later must be downloaded (SAP partner or customer account required) and locally installed.

This project depends on Cython. Some considerations:

  • Linux: The GNU C Compiler (gcc) is usually present, or easily available through the package system. On Ubuntu or Debian, for instance, the command sudo apt-get install build-essential will fetch everything you need.
  • Mac OS X: To retrieve gcc, one option is to install Apple’s XCode, which can be retrieved from the Mac OS X’s install DVDs or from https://developer.apple.com/.
  • Windows: A popular option is to use the open source MinGW (a Windows distribution of gcc). See the appendix for instructions for setting up MinGW manually. Enthought Canopy and Python(x,y) bundle MinGW, but some of the configuration steps in the appendix might still be necessary. Another option is to use Microsoft’s Visual C. One must then use the same version which the installed Python was compiled with.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sap_rfc_data_collector-1.0.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file sap_rfc_data_collector-1.0.2.tar.gz.

File metadata

  • Download URL: sap_rfc_data_collector-1.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for sap_rfc_data_collector-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ee711c66c2708f7e93361cb84dc27b97cf65982c880b64ff6ec372e5f86b049a
MD5 b1cdcc2ad8b166fe1843aa8ad4be8959
BLAKE2b-256 395910d751dd7e92752c31f2990af69f0a2d02b4daedb505c052c49c19f05153

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page