Access SAP via RFC
Project description
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.13
- Refactor
- Add
dest
as connection option (usingsapnwrfc.ini
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file netlink-sap-rfc-0.1.13.tar.gz
.
File metadata
- Download URL: netlink-sap-rfc-0.1.13.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 507d9429706be76bd24e8ce2a94eb192de3e1858d1bb168f4da2e0871cbd800e |
|
MD5 | 2b00009bf7bcd4e687592139f15db6b2 |
|
BLAKE2b-256 | 6a798a64fe8aeeb947e5ca3c8a6b1bc37db513b64408323f36c10e6d636d4263 |
Provenance
File details
Details for the file netlink_sap_rfc-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: netlink_sap_rfc-0.1.13-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7b9edcf17d8c896e728f1544504e000aefe2ddf057273769ce1750ca1e7ef42 |
|
MD5 | 21af6a1e5e23c6ac3773d2a15b2f864c |
|
BLAKE2b-256 | abfcbda4f1f7463367c7879a89027f253a5656a9153570baf242bcb9e2c855c9 |