Case Study · Production Automation Platform

Business Accounting Suite

How a local accounting automation initiative evolved into a reusable business platform by treating business rules, QA, evidence and maintainability as engineering concerns.

120+automation opportunities mapped
~2hmeasurable monthly-close improvement
8–10 daystypical delivery cycle per module
10+validation scenarios used as a QA baseline

01 / Context

Context

The initiative started inside real accounting operations, where recurring work, critical closing windows and multiple enterprise systems created a strong need for reliable automation. It began as Brazil Accounting Suite and later evolved into Business Accounting Suite as the solution became reusable beyond its original scope.

02 / The engineering challenge

The engineering challenge

The hard part was not automating clicks. It was translating business rules into software that could survive exceptions, system changes, evidence requirements and real users. A fast script that fails silently during accounting close is not an improvement.

03 / Constraints that shaped the solution

Constraints that shaped the solution

01

Business-critical execution

Accounting routines had deadlines, dependencies and little room for silent failure.

02

Enterprise integration

The solution needed to coexist with SAP ECC, ServiceNow, spreadsheets, APIs and browser-based systems.

03

Traceability

Users needed evidence of what ran, what changed and where an exception occurred.

04

Maintainability

New modules had to be added quickly without turning the platform into a collection of one-off scripts.

04 / Architecture approach

Architecture approach

The platform was organized around layers with clear responsibilities. The goal was to keep business logic visible while isolating integration details and preserving recovery paths.

01

Interface & orchestration

User-facing execution flow and controlled entry points.

02

Business services

Reusable rules and workflow decisions separated from UI automation.

03

Data transformation

Pandas-based validation, reconciliation and structured processing.

04

Automation & integration

Playwright, APIs and integration patterns for enterprise workflows.

05

Enterprise systems

SAP ECC, ServiceNow and other operational systems.

06

Evidence & recovery

Logs, evidence, exception handling and restartable execution paths.

PROCESS EVOLUTION / SAP + SERVICENOW + BAS

From manual execution to API-triggered automation.

Three generations of the same operational flow, with progressively fewer manual actions while preserving human review and traceable evidence.

01 / 03

Fully manual workflow

A person handled postings, reporting, evidence and task closure manually.

~30–40 minManual intervention per company
  1. 01ServiceNow / WBS task
  2. 02Manual SAP entries
  3. 03Excel / PDF, logs, screenshots
  4. 04Save network evidence
  5. 05Upload files and links
  6. 06Close ServiceNow task
02 / 03

BAS-assisted execution

A person started BAS; the system performed SAP actions and generated evidence for manual attachment.

~10 minManual intervention per company
  1. 01ServiceNow / WBS queue
  2. 02Person starts BAS
  3. 03BAS performs SAP work
  4. 04BAS creates files and logs
  5. 05Person attaches outputs
  6. 06Close ServiceNow task
03 / 03

API-triggered background execution

ServiceNow triggers BAS in the background; a person audits the generated artifacts and closes the task.

~3 minManual intervention per company
  1. 01ServiceNow / WBS task
  2. 02ServiceNow calls BAS API
  3. 03BAS runs SAP in background
  4. 04BAS creates and submits evidence
  5. 05Task reaches human audit
  6. 06Review files and close

Illustrative and sanitized workflow based on an operational evolution. Approximate manual intervention times apply to a specific fiscal/accounting process per company, not to the entire monthly closing process. API-triggered execution still includes a human audit and final closure.

05 / From opportunity to production

From opportunity to production

Delivery followed a lightweight but disciplined path so speed did not erase reliability.

01

Discover

Map repetitive, rule-based or data-heavy work and quantify the operational pain.

02

Define

Translate the business process into explicit rules, inputs, outputs and exception cases.

03

Build

Implement the smallest reusable module that solves the workflow end to end.

04

Validate

Exercise at least ten scenarios as a QA baseline, including expected failures.

05

Pilot

Run with a controlled group before broader adoption.

06

Operate

Keep evidence, recovery and maintainability part of the production design.

06 / QA & EVIDENCE

QA and evidence were product features

Validation combined structured scenarios, technical documentation, evidence capture and controlled pilots. The design assumed that exceptions would happen, so failure visibility and recovery were treated as first-class concerns rather than cleanup work after deployment.

07 / Measured impact

Measured impact

The value came from removing repeated operational effort while shortening delivery cycles for new automation.

120+

Mapped opportunities

The initiative grew into a pipeline of more than 120 automation and process-improvement opportunities.

~2h

Monthly close

Selected modules contributed to measurable closing gains reaching roughly two hours in a month.

30–40 min → ~3 min

Selected tax workflow

In this company-level fiscal workflow, active human handling fell from roughly 30–40 minutes to about three minutes for evidence review and task closure after background BAS execution.

~20 person-hours

Operational effort removed

For the selected workflow, the automation removed around twenty person-hours of recurring effort.

08 / EVOLUTION

From local tool to reusable platform

The most important evolution was conceptual. What started as a local accounting automation initiative became a platform mindset: reusable components, consistent validation, controlled releases and a shared way to turn operational knowledge into software.

09 / LESSONS

What this project taught me

  • Automation quality is mostly about understanding the business process, not the automation library.
  • Evidence, observability and recovery are part of the user experience in business-critical software.
  • A reusable platform changes the economics of automation: each new module benefits from what was learned before.
  • The strongest engineering decisions often come from combining domain knowledge with software discipline.
TECH / QUALITY

Engineering Stack & Delivery

A selection of technologies behind this private, adopted enterprise application. The badges describe documented usage, not public source-code access.

01

Core Stack

Desktop application and data processing

Python 3.14FletWindows Desktoppandasopenpyxl
02

SAP & Enterprise Integration

ERP workflows and operational systems

SAP ECCSAP BPC / EPMSAP GUI ScriptingServiceNow / WBSExcel COM
03

Automation & Artifacts

Desktop automation, document generation and packaging

PyAutoGUIPlaywrightpywin32PillowPyMuPDFPyInstaller
04

Quality & Delivery

Testing and controlled engineering workflows

pytestGitLab CICI/CDSDD
Additional tools & enterprise context
PyGetWindowscreeninfoTkinter (legacy)Kiro IDE / CLIAWS (corporate context)

PyGetWindow and screeninfo supported desktop/display workflows. Tkinter is a legacy interface; Kiro IDE/CLI was used for AI-assisted review. AWS represents the reported WEG corporate context, not an application dependency.

Confidentiality note: this case intentionally excludes proprietary code, internal screens, sensitive data, company-specific identifiers and confidential implementation details.

Explore the rest of the portfolio