Skip to main content

Automate SAP extractions (GUI and RFC), Databricks queries, web scraping, SharePoint uploads and Excel macro execution

Project description

Process Automation

Most powerful feature: the RFC tool lets you query practically any raw SAP table directly — even if your company has restricted access to certain transactions, you can go under the hood. No screen access needed, just table name and filters.

Beyond RFC, automate SAP GUI extractions, Databricks queries, web scraping, SharePoint uploads and Excel macro execution with simple Python templates.

Install

pip install process-automation

Templates

Copy a template, fill in your settings, and run it.

Template What it does
template_sap_pipeline.py Record a SAP transaction, export data, upload to SharePoint
template_sap_rfc_export.py Export SAP tables directly via RFC to CSV/XLSX
template_sap_rfc_schema.py Query any SAP table (DD02L, DD03L, etc.) and print results
template_sap_debug.py Debug a SAP script — captures screenshot + element map on failure
template_sharepoint_upload.py Upload a DataFrame to SharePoint as formatted Excel
template_databricks_pipeline.py Query Databricks and save locally or upload to SharePoint
template_excel_macro.py Run VBA macros in an Excel workbook

Quick Examples

SAP GUI pipeline — paste your SAP recording, run the script:

from process_automation import run_extract

df = run_extract(sap_script,
    export_format="xlsx",
    template_path=r"Z:\path\to\TEMPLATE.xlsx",
    sharepoint_folder=r"Z:\path\to\output",
)

SAP RFC export — no GUI needed, just table name and filters:

from process_automation import run_rfc_extract

run_rfc_extract({
    "table": "AFRU",
    "cols": "PERNR,AUFNR,VORNR,BUDAT",
    "filters": ["BUDAT >= '20260301'"],
    "output_dir": r"Z:\path\to\output",
    "extension": "xlsx",
})

SAP debug — point it at a template, get diagnostics on failure:

from process_automation import sap_debug

sap_debug(script_path=r"C:\path\to\your_template.py", output_dir=r"C:\Temp")

Setup

Credits

Originally started as an internal team effort; packaged and open-sourced by contributors from the same group.

License

MIT

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

process_automation-1.2.1.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

process_automation-1.2.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file process_automation-1.2.1.tar.gz.

File metadata

  • Download URL: process_automation-1.2.1.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for process_automation-1.2.1.tar.gz
Algorithm Hash digest
SHA256 b9929db4ddb59b925b414cc15191b7db5d209bb14aeddcc616a49db49f499d40
MD5 c1951ff1f3dc07439f7bdaf5893863d0
BLAKE2b-256 09fc824d3f724def58eb0a6a2433236cbf213858580fb5caf97f0c1c472a22a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for process_automation-1.2.1.tar.gz:

Publisher: publish.yml on Mircea-Sava/process-automation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file process_automation-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for process_automation-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 420928ca27ab9fcc2838b136f54373a1c0dbdce58fb387d178c83d1df4371384
MD5 8e4f0fb595a4dc50e8e2bb155bb637b7
BLAKE2b-256 031cb1487633d020da1f0557d52cb7091f59704bc06aca741e558ddd157d5539

See more details on using hashes here.

Provenance

The following attestation bundles were made for process_automation-1.2.1-py3-none-any.whl:

Publisher: publish.yml on Mircea-Sava/process-automation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page