Automate some SAP transactions
Project description
SAP RFC data management
Lib to perform some SAP ERP modifications.
Requirements
You need to install Cython before install this lib:
pip install Cython
Also need to install SAP RFC SDK.
Install
pip install sap-rfc-data-management
Usage
Create PM notification:
from sap_rfc_data_management.connection import SAPConnection
from sap_rfc_data_management.pm_notification import PMNotification
connection = SAPConnection(
host=SAP_HOST,
service=SAP_SERVICE,
group=SAP_GROUP,
sysname=SAP_SYSNAME,
client=SAP_CLIENT,
lang=SAP_LANG,
user=SAP_USER,
password=SAP_PASSWORD
)
runner = PMNotification(connection=connection)
number = runner.create(
title='notification title',
notification_type='notification type',
priority='notification priority',
equipment='notification equipment number',
reported_by='notification reported user (or some other text)',
date_malfunction='malfunction datetime',
maintenance_plant='notification plant',
workcenter_id='notification workcenter'
)
print(number) # created notification's number
Change PM equipment ABC code:
from sap_rfc_data_management.connection import SAPConnection
from sap_rfc_data_management.pm_equipment import PMEquipment
connection = SAPConnection(
host=SAP_HOST,
service=SAP_SERVICE,
group=SAP_GROUP,
sysname=SAP_SYSNAME,
client=SAP_CLIENT,
lang=SAP_LANG,
user=SAP_USER,
password=SAP_PASSWORD
)
runner = PMEquipment(connection=connection)
runner.change(
equipment='equipment number to be changed',
abc_code='new abc code (1 character)'
)
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
File details
Details for the file sap_rfc_data_management-1.1.3.tar.gz
.
File metadata
- Download URL: sap_rfc_data_management-1.1.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d20753ef16e468dd6fbd8ac88f9de41830a2325e8972a275a387f972c1dbb2 |
|
MD5 | 64b46b5948184aaaaac6bf96565b948d |
|
BLAKE2b-256 | e23216a135c2b0d72b9c1169f99d9a66a770697e643cc5dbec3f36bed65f77bf |