DEV Community
•
2026-08-15 09:20
A 36% margin became 6% at month-end, and nothing was posted wrong
I built a small manufacturing company end-to-end inside an SAP S/4HANA sandbox — one plant, one product, one month — specifically to watch what the month-end close does to a margin that looks healthy at billing time. Every number below comes from an actual document in that system.
At billing, the month looked good
Revenue
20,000
COGS at standard
12,800
Margin
7,200 = 36%
...