Production controlPeriodic tasksKanban job batch processing
action:LeanDocumentServiceCreate
Used by
Production supervisor
Business process
Subcontract services using production in Dynamics 365 Supply Chain Management
Menu item
action:LeanDocumentServiceCreate
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, “Monthly subcontracting documents”, 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 page that creates purchase orders and receipt advices for subcontracted services, based on the kanban jobs of subcontracted production flow activities.
What you do here
Use this page to generate the purchase documents for subcontractors in bulk or on a batch schedule, filtering jobs by production flow, activity, dates and minimum job status, and grouping jobs into purchase lines by day, month or all.
Example
For example, run the job at month end to create one purchase line per service for all jobs of the month and receipt advices for the jobs that were completed.
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 subcontracted kanban jobs exist and the subcontractor's purchase orders or receipt advices must be created for a period.
How often
Per purchasing or invoicing period agreed with the subcontractor, often as a recurring batch job.
Batch settings
Run it as a recurring batch job per production flow so documents for completed jobs are created each period.
What the output shows
Release purchase orders for the subcontracted service based on the kanban jobs, and receipt advices for completed jobs. Missing lines usually mean the jobs are below the minimum job status or outside the date range.
Create purchase orders and receipt advices for subcontracted kanban activities.
Steps from Microsoft
Go to Production control > Periodic tasks > Kanban job batch processing > Subcontracting documents.
Select the Production flow and, if needed, the Plan activity to limit the kanban jobs to one subcontracted activity.
Enter the From date and To date and select the Minimum job status that jobs must have to be included.
Select Release purchase orders and choose in Aggregate purchase lines by whether jobs are grouped into purchase lines per day, per month or all together.
Select Receipt advices to create receipt documents for completed jobs, then review the purchase orders and receipt advices for the subcontractor.
Only jobs at or above the Minimum job status and inside the From date and To date are included. Widen the dates or wait until the jobs reach the status. Microsoft Learn
Test checklist
Purchase order lines exist for the selected jobs.
Lines are grouped as chosen in Aggregate purchase lines by.
Run it per production flow at each invoicing period agreed with the subcontractor, aggregating purchase lines by the same period (day or month), with Receipt advices on for completed jobs.One purchase line per period matches the subcontractor's invoice, and posting receipt advices puts the service value into the flow's WIP for backflush costing.
On this system 1 role can run this page, among them Production supervisor. No Feature management feature needs to be turned on for this page.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company: purchase orders and receipt advices are created in the legal entity of the production flow. Microsoft Learn
Can it be undone
Reversible with effort: Change or delete the documents before posting.
If you change it later
Posting the receipt advices created here books the service value into the WIP accounts of the production flow, which feeds the period's backflush costing. Microsoft Learn
Technical architect
6Technical
Menu item
action:LeanDocumentServiceCreateChecked in Dynamics 365
Form
LeanDocumentServiceCreationChecked in Dynamics 365
Who can open it
1 security role. Select a role to see its duties and privileges.
RoleProduction supervisorProdProductionSupervisor
DutyMaintain service receipts kanban executionKanbanExecutionServiceReceiptsMaintain
PrivilegeMaintain receipt advices for lean manufacturing servicesLeanDocumentReceiptMaintain
PrivilegeMaintain purchase orders for lean manufacturing servicesLeanDocumentPurchaseOrderMaintain
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 itProduction supervisor ProdProductionSupervisorGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Subcontracting documents has no data entity in Data management, because it is a periodic job that changes records that already exist. Open purchase orders for subcontracted services move with the purchasing entities; create new documents for kanban jobs in the target environment.Checked in Dynamics 365