BeyondERP.Newsletter
Menu

Setup step on the Cost calculation details page · Inventory management

Clean up stored cost calculation details

Run Cost calculation details safely and only when the data is no longer needed.

Used by
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 isA periodic job that cleans up stored cost calculation details.
What you do hereUse this periodic task to remove cost calculation details that are no longer needed.
ExampleFor 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.
Cost calculation details page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processManage data
Menu pathInventory management › Periodic tasks › Clean up › Cost calculation details
Set up firstCosting versions Microsoft Learn
Used next byCosting versions (Cost management) Microsoft Learn
Related pagesInventory settlements cleanup Microsoft Learn
In this process Aggregate zero on-hand rows · Delete transfer order update history
End user · Functional consultant

3How to do it

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 itWhen stored cost calculation details from earlier calculations are no longer needed, and the business has confirmed that.
How oftenOn demand, for example after a costing period is finished. Microsoft gives no fixed interval.
Batch settingsRun it in the background as a batch job when many cost calculations are stored.
What the output showsNo 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.

Source: Microsoft Learn

Setup steps on this page

Clean up stored cost calculation details

Run Cost calculation details safely and only when the data is no longer needed.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > Cost calculation details.
  2. Under Parameters, set Clean up cross costing versions to Yes or No to choose whether cross costing versions are included in the cleanup.
  3. 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.
  4. For each kind you apply, enter the Clean up details before date. Details of calculations from before that date are removed.
  5. Afterwards, open a recent cost calculation of each kind you applied: its details are still there, and only older details are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Clean up cross costing versionsWhether cross costing versions are included in the cleanup.Checked in Dynamics 365No
Apply to sales lineSet to Yes to remove stored details of cost calculations for sales lines.Checked in Dynamics 365Yes
Apply to planned costSet to Yes to remove stored details of planned cost calculations.Checked in Dynamics 365Yes
Apply to standard costSet to Yes to remove stored details of standard cost calculations.Checked in Dynamics 365No
Clean up details beforeFor each kind you apply, details of calculations from before this date are removed.Checked in Dynamics 3651/1/2026

Common errors and fixes

MessageWhat to do
Someone needs the breakdown of an old cost calculation.The stored details can't be restored. Run the cost calculation again to rebuild the breakdown. Microsoft Learn

Test checklist

  1. Open an old and a recent planned cost calculation and note their details.
  2. Run the job in a copy with Apply to planned cost and a date between them.
  3. Check that the old calculation has no stored details.
  4. Check that the recent one still has them.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up stored cost calculation detailsClean 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.Which cost calculation details may be cleaned up?Applying it to standard cost with a recent date, which removes the breakdown behind the active standard costs.Test: Old details removed, recent ones kept

Feature management and licence

Licence or add-inOn the live system, Inventory accountant clerk and Information technology manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job reads and changes only the data of the legal entity you run it in. Checked in Dynamics 365
Can it be undoneIrreversible: 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 laterRemoves 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 itemaction:BOMCalcCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClean up cost calculation detailsBOMCalcCleanUpProcess
  • RoleInventory accountant clerkInventCostCostClerk
    • DutyMaintain cost masterCostingVersionCostMasterMaintain
      • 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 itTo 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
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:BOMCalcCleanUp
Data migrationLoad 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
Everyone

8Sources

To cite this step: IM-JOBA-150, Clean up stored cost calculation details. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-150