Skip to main content

netlink-sap-rfc

Tools for SAP RFC

Connect

The default .XML files describing the landscape for SAPGUI are used for access via System ID.

login_sid

Returns a Connection object.

Parameter Description Default
sysid System ID (a.k.a. )
client SAP Client (Mandant)
passwd Password
user SAP user ID (BNAME) Logged on user
language Language EN
raw Don't convert date / time False

sso

Returns a Connection object.

Parameter Description Default
sysid System ID (a.k.a. )
client SAP Client (Mandant)
user SAP user ID (BNAME) Logged on user
language Language EN
raw Don't convert date / time False

Connection Object

Use one of the functions above to instantiate.

Methods

Any Remote enabled Function Module can be called as a method (case-insensitive).

close()

Close the connection. Should always be called before the program is finished, otherwise an error will be logged on the SAP system.

select(table, *args, **kwargs)

Get contents of a table using RFC_READ_TABLE. Returns a list of Records.

Columns within a Record can be access by index (int), name (case-insensitive), or attribute (case-insensitive).

table (required) table name (case-insensitive)

*args (optional) when specified, only the columns listed will be returned

**kwars (optional) select rows (only equality is supported)

Example

records = rfc_connection.select('t000', 'mtext', 'ort01', mandt='000')

would return a list with one item:

>>> records = c.select('t000', 'mtext', 'ort01', mandt='000')
>>> len(records)
1
>>> records[0][0]
'SAP SE'
>>> records[0][1]
'Walldorf'
>>> records[0]['mtext']
'SAP SE'
>>> records[0]['ort01']
'Walldorf'
>>> records[0].mtext
'SAP SE'
>>> records[0].ort01
'Walldorf'

Changes

0.1.16

Connection:

  • Add property
    • hostname
    • is_alive
  • Add methods
    • open
    • reopen
    • reset_server_context

0.1.14

  • Add methods

    • datetime_system_to_user
    • datetime_user_to_system

    to Connection class

0.1.13

  • Refactor
  • Add dest as connection option (using sapnwrfc.ini)

Download files

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

Source Distribution

netlink-sap-rfc-0.1.17.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netlink_sap_rfc-0.1.17-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

Release history Release notifications | RSS feed

This release

0.1.17 This release

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3.1

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page