BeyondERP.Newsletter
Menu

Setup step on the Purchase order clean up page · Landed cost

Clean up purchase orders that aren't on a voyage

Remove purchase orders that were never added to a voyage, to keep transaction counts down.

See how to set it up Back to Landed cost

Used by
Landed cost agent
Business process
Plan inbound transportation loads in Dynamics 365 Supply Chain Management
Menu item
ITMPurchCleanUp
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, “Clean up removes only orders that aren't on a voyage”, 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-task dialog that, in Microsoft's words, deletes purchase orders that haven't been added to a voyage.
What you do hereUse this page to cut down transaction counts and improve performance by removing purchase orders that never went on a voyage. Microsoft doesn't say whether only the Landed cost records or the purchase orders themselves are removed, so test it on a copy first and treat every run as final.
ExampleFor example, an administrator schedules the task monthly so that purchase orders created for Landed cost but never shipped on a voyage do not accumulate.
Purchase order clean up 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

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 purchase orders in Landed cost that were never added to a voyage are no longer needed and are slowing the system down.
How oftenOn demand, or on a recurring schedule as part of regular housekeeping.
Batch settingsRun it as a batch job outside working hours, with a filter that leaves out recent purchase orders that may still be added to a voyage.
What the output showsPurchase orders that aren't on any voyage are deleted, which reduces transaction counts and improves performance. An order you still needed was missing from a voyage when the task ran.

Source: Microsoft Learn

Setup steps on this page

Clean up purchase orders that aren't on a voyage

Remove purchase orders that were never added to a voyage, to keep transaction counts down.

Steps from Microsoft

  1. Go to Landed cost > Periodic tasks > Clean up > Purchase order clean up.
  2. Before you run it, add to a voyage any purchase order that should still go on one. Every purchase order that isn't on a voyage is deleted.
  3. Expand Records to include and select Filter to limit the purchase orders the task checks.
  4. Under Run in the background, set Batch processing to Yes to run the clean up as a batch job, and use Recurrence if it should run on a schedule.
  5. After the run, check that the purchase orders you meant to keep are still there and that orders without a voyage are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
FilterUnder Records to include, the query that limits the purchase orders the task checks.Checked in Dynamics 365Created date before the start of last year

Common errors and fixes

MessageWhat to do
A purchase order you still needed is goneIt wasn't on a voyage when the task ran. Add orders to a voyage before the run, and leave recent orders out of the filter. Microsoft Learn

Test checklist

  1. Purchase orders on voyages are untouched.
  2. Purchase orders without a voyage in the filter are deleted.
  3. Orders outside the filter still exist.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up purchase orders that aren't on a voyageRun it first in a copy of production, then only with a filter that leaves out recent orders, after every order that should travel is on a voyageLearn says the task deletes purchase orders that haven't been added to a voyage, and doesn't describe a way back.Do you run Purchase order clean up at all?Running it in a company that buys both with and without Landed cost, where most purchase orders are never on a voyage.Test: Clean up removes only orders that aren't on a voyage

Feature management and licence

Licence or add-inOn this system the page opens for Landed cost agent. Landed cost fields show on purchase orders, released products and other common pages only when Activate is Yes on the Feature visibility tab of Landed cost parameters; the module's own pages stay available either way.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the task works on the voyages of the legal entity you run it in. When you schedule it, each batch task names the company it runs in (Company accounts), so set it up in every company that uses Landed cost. Microsoft Learn
Can it be undoneNo: Deleted records can't be restored.
If you change it laterMicrosoft says the task deletes purchase orders that haven't been added to a voyage. Any order that should still go on a voyage must be added first, or it is removed. Microsoft Learn
Technical architect

6Technical

Menu itemITMPurchCleanUp 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.

  • RoleLanded cost agentITMAgent
    • DutyPurchase order clean upITMPurchCleanup
      • PrivilegePurchase order clean upITMPurchCleanUpProcess
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 itLanded cost agent ITMAgentGive 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=ITMPurchCleanUp
Data migrationLoad order: Purchase order clean up has no data entity in Data management, so it can't be loaded from a file or a configuration template. It is a task and stores no setup; it only deletes.Checked in Dynamics 365
Everyone

8Sources

To cite this step: LC-JOB-690, Clean up purchase orders that aren't on a voyage. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/LC-JOB-690