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
hostnameis_alive
- Add methods
- open
- reopen
- reset_server_context
0.1.14
-
Add methods
datetime_system_to_userdatetime_user_to_system
to Connection class
0.1.13
- Refactor
- Add
destas connection option (usingsapnwrfc.ini)
Metadata
Release files for netlink-sap-rfc 0.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netlink-sap-rfc-0.1.17.tar.gz | 11.2 kB | Without provenance | Details for netlink-sap-rfc-0.1.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netlink_sap_rfc-0.1.17-py3-none-any.whl | Python 3 | none | any | Details for netlink_sap_rfc-0.1.17-py3-none-any.whl |
Total release size: 27.3 kB
Release files / netlink-sap-rfc-0.1.17.tar.gz
| Download URL | netlink-sap-rfc-0.1.17.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b146ff7ecd44bf2fe7eb27aca9f4d7ed2d820956b13e504edc32393cd3132f42
|
|
BLAKE2b-256 checksum How to use checksums |
44f0bbaaa76f0efd95efb7912be8d4c997fff08e2b2e4c68124df14bdb703ffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Release files / netlink_sap_rfc-0.1.17-py3-none-any.whl
| Download URL | netlink_sap_rfc-0.1.17-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
656f9fcd7863e0e884a5d5b0d81a412cf60c336177b4852763697941f8a43aa1
|
|
BLAKE2b-256 checksum How to use checksums |
08ec9f09e445aea255ad4ae318c5ee333dd0f2828af06e7a6f6fc9cfc60fb1a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Security for netlink-sap-rfc 0.1.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.