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
Close
Hashes for sap_rfc_data_management-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c42467b3ad03f5a06385d5dcfb2f08451e66ddc79a6671e8f8ca00dd12e2c43 |
|
MD5 | b45741f833426a1a8788df61f5b790bf |
|
BLAKE2b-256 | 7525d8b463a6597b9f615484791d5ee944a9c2c2195c1a99017e881baa32de61 |