P2P Process Mining
- Problem
- Every finance transformation deck opens with the same sentence — the process is inefficient and highly manual. Almost nobody can say by how much, or where.
- What I built
- Mined a 1.6M-event SAP purchase-to-pay log covering 251,734 purchase order line items, reconstructing the path each case actually took rather than the one the process documentation describes. Variant analysis, straight-through rate, the cycle-time cost of rework, and which sequence rules the system genuinely enforces versus merely documents.
- Stack
- PythonDuckDBLLM APIMatplotlib
- Outcome
- 20%of cases follow the most common path; rework costs 19.6 days
- So what
- Cycle time here is an exception problem, not a capacity problem — and the expensive exceptions are not the frequent ones. A programme that targets the loudest rework activity would pick one of the cheapest. Prioritisation has to follow volume times penalty, which is only visible once the log is mined.







