In a review meeting, the sales manager said it with full confidence: "From order to delivery we need three days." Nobody argued. The warehouse nodded. Afterwards I asked the ERP the same question. I exported one month of sales order lines with their dates and dropped them into a plain Excel sheet. The typical order did ship in about three days. But the customer then waited up to six more days for an invoice, and a quarter of the orders had sat on a credit block that nobody in the room had mentioned. The process everybody described and the process the system had recorded were two different processes.
That gap is exactly what process mining is for. I wrote about the idea and a first pilot in Process mining in practice. This article is the hands-on part, for the one process that touches cash directly: order-to-cash. You can do a first pass with an ERP export and Excel, before anybody buys a tool. The plant, the story and every number below are illustrative.

Step 1: Choose one case and stick to it
A case is the thing that travels through the process. For order-to-cash I usually start with the sales order line, because one order can ship in three parts and be billed twice. Whatever you choose, write it down and do not change it halfway. Mixing order headers and order lines is the fastest way to get a chart that looks precise and means nothing.
Step 2: Pull six events, not sixty
You don't need every status change. Start with the steps where the order passes from one team to another:
- Order created (sales)
- Credit released (finance), only for orders that were blocked
- Delivery created (logistics)
- Goods issued (warehouse)
- Invoice posted (billing)
- Payment received (collection)
In SAP most of these dates sit in the document flow of the sales order; other ERPs keep the same documents under different names. Three columns are enough: case ID, activity, timestamp. One row per event.
Step 3: Measure the wait between steps
Sort by case and time, and for each row take the time since the previous event of the same case. Put that in a pivot by step. Then look at two numbers: the median, and the slow tail, for example the 90th percentile. The average hides exactly what you are looking for.
| Step | Median wait | Slow tail (90th percentile) |
|---|---|---|
| Order created → credit released | 0.5 days | 4.0 days |
| Order ready → delivery created | 1.0 day | 2.5 days |
| Delivery created → goods issued | 0.6 days | 1.5 days |
| Goods issued → invoice posted | 0.4 days | 6.0 days |
| Invoice posted → payment received | 34 days | 68 days |
In this example the warehouse is not the problem. It is fast and steady. The days are lost at the handoffs between sales, finance and billing, and in the long tail after the goods have already left the gate.
Step 4: Count the paths, not only the times
Now look at the order of events in each case. In Excel, join the activities of each case into one line of text, like "Created > Delivery > Goods issue > Invoice", and count how many cases share each path. The clean path is usually less common than people think. Here only 58% of order lines followed it. The rest had a credit block, a delivery created twice, or an order changed after its delivery already existed. Each of those loops is a small wait that someone, somewhere, is quietly absorbing.
Step 5: Take the worst wait to the people who live it
The data tells you where orders wait. It doesn't tell you why. Take the two worst waits to the people who own those steps and ask one question: what has to happen before this step can start? In this plant, the six-day tail after goods issue was a weekly billing run, kept because someone checked prices by hand once a week. Nobody had ever decided that. It had just grown.
If your order-to-cash runs in SAP, this is also the end-to-end scenario I would test before any go-live; I explained why in SAP implementation: 7 mistakes that derail the project.
Where a first pass in Excel can fool you
Event data is honest, but it is not always accurate. Some timestamps record when the work was done; others record when someone finally typed it in. Month-end bulk postings, documents created by a night job and reversed invoices can each paint a wait that never happened, or hide one that did. Before you act on a number, you need to know which of your dates you can trust.
What I keep for the work itself
What I don't publish is how I clean those timestamps for a specific ERP, and how I tie each long wait to the rule, the role or the data field that creates it, so the fix becomes a decision and not a campaign. That depends on your system and on how you really sell. I do that part with the team, on your own data.
Where are your orders waiting?
If you want to know where your order-to-cash really waits, write to me with the ERP you use and roughly how many orders you handle in a month. I will tell you what to export for a first look, and which wait I would check first in a business like yours.
Contact me Read: Process mining in practice Read: SAP implementation mistakes
Sources
- Process mining rebuilds how a process actually runs from an event log with three basic fields: case ID, activity and timestamp. See W. M. P. van der Aalst, Process Mining: Data Science in Action, Springer, 2016.
- The plant, the story and all numbers in this article are illustrative.
