Information technology manager, Inventory accountant clerk
Business process
Manage data
Menu item
action:BOMCalcCleanUp
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, “Old details removed, recent ones kept”, 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 job that cleans up stored cost calculation details.
What you do here
Use this periodic task to remove cost calculation details that are no longer needed.
Example
For example, BEAT keeps cost calculations for 2,300 manufactured items. After the 2025 standard costs are replaced, BEAT sets Apply to planned cost and Apply to sales line to Yes with Clean up details before 1/1/2026, and keeps all standard cost details.
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.
When to run it
When to run it
When stored cost calculation details from earlier calculations are no longer needed, and the business has confirmed that.
How often
On demand, for example after a costing period is finished. Microsoft gives no fixed interval.
Batch settings
Run it in the background as a batch job when many cost calculations are stored.
What the output shows
No report. Stored details of the cost calculations you applied, from before each date, are removed. If someone later needs the breakdown of an old calculation, it has to be calculated again.
Run Cost calculation details safely and only when the data is no longer needed.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Clean up > Cost calculation details.
Under Parameters, set Clean up cross costing versions to Yes or No to choose whether cross costing versions are included in the cleanup.
Set Apply to sales line, Apply to planned cost and Apply to standard cost to Yes for each kind of cost calculation whose stored details you want to remove.
For each kind you apply, enter the Clean up details before date. Details of calculations from before that date are removed.
Afterwards, open a recent cost calculation of each kind you applied: its details are still there, and only older details are gone.
Clean up planned cost and sales line calculations after a costing period ends, and keep standard cost details for as long as auditors need them.Microsoft describes the routine only as cleaning up cost calculation details; the breakdown of an old calculation is lost with them.
On the live system, Inventory accountant clerk and Information technology manager use this page.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company: the job reads and changes only the data of the legal entity you run it in. Checked in Dynamics 365
Can it be undone
Irreversible: Stored details of the cost calculations you applied, from before each date, are deleted and can't be restored. Run it first in a copy of production, such as a sandbox refreshed from production, and give the privilege only to the people who own the cleanup.
If you change it later
Removes stored details of old cost calculations for sales lines, planned cost and standard cost, so their breakdown can no longer be opened. Microsoft Learn
Technical architect
6Technical
Menu item
action:BOMCalcCleanUpChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
2 security roles. Select a role to see its duties and privileges.
PrivilegeClean up cost calculation detailsBOMCalcCleanUpProcess
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 use itInventory accountant clerk InventCostCostClerkInformation technology manager SysServerITManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Load order: Cost calculation details has no data entity in Data management. Cost calculations are run again in the new system; their details aren't migrated.Checked in Dynamics 365