End production and use approximate costs (backflush costing) in Dynamics 365 Supply Chain Management
Menu item
LeanCosting
Main table
LeanCosting
Setup steps
1 on this page
How this guide was checked
Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Backflush costing posts the period's variances”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A periodic task page where you run backflush costing for the production flows of lean manufacturing and review the results of each calculation period.
What you do here
Use this page to value the work in progress of production flows at the end of a period and calculate the variances of material, labor and indirect costs.
Example
For example, at the end of November 2026 the BEAT inventory accountant runs backflush costing for production flow BEAT-FLOW-01 with end date 30/11/2026. The run values 120.00 unused units left in the flow and posts the material and labor variances of the month.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Setup steps on this page
Run backflush costing for production flows
Value lean production WIP and post variances at period end.
How to use it
Go to Production control > Periodic tasks > Update costs > Backflush costing calculation.
On the Action Pane, select Production flow period costing.
Select a calculation in the list pane and review its Calculation period and Calculation status.
On the Production flows FastTab, review the Voucher, Calculation status and Log of each production flow, and use Voucher, Standard cost transactions, Unused quantity, WIP balances and Log for more detail.
On the Period statement FastTab, review the Cost classification, Cost amount, Amount, Difference and Posting type of each line.
Source: Checked in Dynamics 365
Fields on the page
Field
What it means
Unused quantity
Shows the quantities that were still unused in the production flow on the date of the costing run.Microsoft Learn
Common errors and fixes
Message
What to do
Transactions can't be posted to a date after backflush costing ran
Backflush costing was run for that end date. Never run it for the current date before the day is over; post the late transactions in the next period. Microsoft Learn
Test checklist
Check every product in the production flow uses a Standard cost item model group and has an active standard cost
Check WIP accounts on the production group and a cost category on each work cell's run time
Run backflush costing with an end date in the past
Open Unused quantities for the run and check the quantities left in the flow
Check the variances were posted to the variance accounts by cost group
Run it once per period, for the last day of the closed period, after all kanban jobs, receipts and subcontracting receipt advices are posted.After the run no transactions can be posted to the end date, so a run for the current day blocks the rest of that day's postings.
On this system 3 roles can run this page, among them Inventory accountant, Inventory accountant clerk and Accounting manager. No Feature management feature needs to be turned on for this page.
Hard to reverse: Learn describes no way to undo a run.
If you change it later
The run values the WIP of the production flows for the period and posts variances; after a run for an end date, no new transactions can be posted to that date. Microsoft Learn
Technical architect
6Technical
Menu item
LeanCostingChecked in Dynamics 365
Form
LeanCostingChecked in Dynamics 365
Table
LeanCostingShown as “BACKFLUSH COSTING CALCULATION” in Record infoChecked in Dynamics 365
Who can open it
3 security roles. Select a role to see its duties and privileges.
RoleAccounting managerLedgerAccountingManager
DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
PrivilegeView calculations for backflush costingLeanCostingView
DutyInquire into the lean costing statusLeanCostingStatusInquire
PrivilegeView calculations for backflush costingLeanCostingView
RoleInventory accountantInventCostAccountant
DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
PrivilegeView calculations for backflush costingLeanCostingView
DutyMaintain lean costingLeanCostingMaintain
PrivilegeMaintain costing transactions for production flowsLeanCostingMaintain
RoleInventory accountant clerkInventCostCostClerk
DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
PrivilegeView calculations for backflush costingLeanCostingView
DutyInquire into the lean costing statusLeanCostingStatusInquire
PrivilegeView calculations for backflush costingLeanCostingView
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use it
To set it up or change itInventory accountant InventCostAccountantTo use itInventory accountant clerk InventCostCostClerkAccounting manager LedgerAccountingManagerGive people one of these roles. On this system, 3 roles can open this page.Checked in Dynamics 365
Actions on the page
(Action Pane without tabs): Production flow period costing, Resume production flow period costing, Time buckets setupChecked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=LeanCosting
Data migration
Load order: Backflush costing calculation has no data entity in Data management; its records are results of the costing run. Run backflush costing in the target environment for the first period after go-live.Checked in Dynamics 365