BeyondERP.Newsletter
Menu

Setup step on the On-hand entries aggregation by financial dimensions page · Cost management

Aggregate closed on-hand records

Roll up zero-quantity on-hand records to site level to keep on-hand queries fast.

Used by
Information technology manager
Business process
Manage data
Menu item
action:InventSumSummarize
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, “Values unchanged after aggregation”, 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 rolls up on-hand records with zero quantity and cleans up records that are marked as closed.
What you do hereUse this periodic task to reduce the number of on-hand records and speed up any function that reads them, while inventory value reports still show the same values.
ExampleFor example, BEAT sells batch-managed paint, and each sold batch leaves an on-hand record with zero quantity. The job copies the remaining values of 12,000 such records to the site-level record of the same item and deletes them, and the inventory value per item and site stays the same.
On-hand entries aggregation by financial dimensions 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 pathCost management › Inventory accounting › Clean up › On-hand entries aggregation by financial dimensions
Set up firstInventory dimensions cleanup Microsoft Learn
Used next byInventory value report storage Microsoft Learn
Related pagesInventory and warehouse management parameters Microsoft Learn
In this process Clean up unused inventory dimensions only with a reason · Clean up old cost calculation details
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 on-hand queries slow down because many batch or serial number records with zero quantity remain in the on-hand table.
How oftenOn demand, when the number of closed on-hand records has grown again.
Batch settingsRun it in the background outside business hours; on large item ranges it reads the whole on-hand table.
What the output showsFewer on-hand records. Values from zero-quantity records are rolled up to the site level, so inventory value reports show the same totals. A changed total per item and site after the run points to a problem and should be raised before you continue.

Source: Microsoft Learn

Setup steps on this page

Aggregate closed on-hand records

Roll up zero-quantity on-hand records to site level to keep on-hand queries fast.

Steps from Microsoft

  1. Go to Cost management > Inventory accounting > Clean up > On-hand entries aggregation by financial dimensions.
  2. Before you start, run an inventory value report for a few items with batch or serial numbers, so you have values to compare with afterwards.
  3. Know what the job does: it finds InventSum records with no open quantities, copies their remaining values to the record for the same item and site, and deletes the lower-level record.
  4. Use Records to include to limit the first run to a few items or one item group, then select OK.
  5. Run the same inventory value report again and check that the value per item and site is unchanged while the number of on-hand records has gone down.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Records to includeFilter that limits which items and on-hand records the job processes.Checked in Dynamics 365
Run in the backgroundSends the job to the batch framework with a batch group, recurrence and alerts instead of running it while you wait.Checked in Dynamics 365

Common errors and fixes

MessageWhat to do
A historical or as-of-date report shows less detail for an old periodThe job removed on-hand records with zero quantity. Value totals per item and site stay the same; detail below site level for those records is gone. Limit the run to items where that detail isn't needed. Microsoft Learn

Test checklist

  1. Inventory value per item and site is the same before and after the run.
  2. Items with open quantities still show their on-hand records by batch or serial number.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Aggregate closed on-hand recordsRun it in the background for batch- or serial-tracked items when the on-hand table has grown, after running an inventory value report to compare.The routine keeps the inventory value per item and site the same while it removes records with no open quantity.Which items are included in on-hand aggregation?Running it for all items before comparing values, so a changed total can't be traced.Test: Values unchanged after aggregation

Feature management and licence

Licence or add-inIn this system 1 role can open this page, among them Information technology manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: on-hand records are kept per legal entity, and the job aggregates those of the current legal entity. Microsoft data model
Can it be undoneOne-way: Deleted on-hand records can't be restored.
If you change it laterHistorical and "as of date" reports can show incomplete data for periods where on-hand rows were removed. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventSumSummarize Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClose non-quantitative on-hand entriesInventSumSummarizeProcess
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 itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventSumSummarize
Data migrationLoad order: On-hand entries aggregation by financial dimensions has no data entity in Data management, so it can't be loaded from a file or a configuration template. It rolls up existing on-hand records; nothing is migrated.Checked in Dynamics 365
Everyone

8Sources

To cite this step: CM-CLN-040, Aggregate closed on-hand records. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/CM-CLN-040