No project description provided
Project description
Description
SAP scripting for Python automatization
Usage
Create pysapscript object
pss = pysapscript.Sapscript()
parameter default_window_title: = "SAP Easy Access"
Launch Sap
pss.launch_sap(
sid="SQ4",
client="012",
user="robot_t",
password=os.getenv("secret_password")
)
additional parameters:
root_sap_dir = Path(r"C:\Program Files (x86)\SAP\FrontEnd\SAPgui")
maximise = True
quit_auto = True
Attach to window:
window = pss.attach_window(0, 0)
positional parameters (0, 0) -> (connection, session)
Quitting SAP:
- will automatically quit if not specified differently
- manual quitting:
pss.quit()
Performing action:
window.write(element, value)
window.press(element)
window.select(element)
window.read(element)
window.read_shell_table(element)
window.press_shell_button(element, button_name)
window.change_shell_checkbox(element, checkbox_name, boolean)
And another available actions...
- close window, open new window, start transaction, navigate, maximize
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
pysapscript-2.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for pysapscript-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 639c75799128d2b215eeff3dc52d3ef370b6f97176bc4537f93d1546646973a3 |
|
MD5 | 8e32b7a01237277eee480d02080a9a08 |
|
BLAKE2b-256 | b1030898e97ef2b03a2a571d7bb836ade7b47deb5f89b1696daff1c2caff26e2 |