Purchasing · EDIFACT
Orders arrive as EDIFACT.
One message on a single line.
ORDERS, one message, two lines
The problem
Everything fits on one line.
- An apostrophe ends a segment.
- The order is up front, the article further on.
What is not changed
The message stays as it is.
- No EDI translator.
- No conversion first.
The trap
An apostrophe in a label.
- « Bâche d'hiver » is written Bâche d?'hiver.
- Misread, it cuts the segment in two.
What had to be written
split-row: { sep: "'", escape: "?" }One line.
- One segment per row, in order.
- ?' stays an apostrophe.
- A 43-line scenario, two manifests.
The result
PO-7001: 12 and 6.
- Each quantity carries its order.
- And its article's EAN.
The limit
One message per file.
- The lines are a filtered read of the segments.
Try it
The scenario replays locally.
Every step is published with its output.