Getting started

Let's walk through two scripts to generate a new item with a bill of materials: one for an assembling process and the other for manufacturing.

We will set up both, item costing and item tracking for these products.

In our company, we want to start producing office chairs. These chairs consist of five wheels, a pedestal, a seat, and two arm rests. We will create these four components as a new item and one new item for the end product.

All the items will have a different costing method to demonstrate the effect of cost changes. The end product will support serial number item tracking with a one year warranty period.

All our chairs will get a serial number with a one year warranty period. This enables us to track all individual chairs when they come back to the factory with issues.

Item tracking

Item tracking in Microsoft Dynamics NAV can be done both on individual Serial numbers and Lot numbers for a group of items.

Serial Numbers and Lot Numbers are fields in the Item Ledger Entry table (32). The consequence of this will be that for each serial number or Lot number, an individual record will be created in the table. When using serial numbers, this can lead to a massive increase in the table size.

The Lot numbers and item numbers are saved in the Reservation Entry table (337) during the document entry process. A reservation entry can be assigned to any table in Microsoft Dynamics NAV, for example, sales lines, item journal lines, or production order.

When a document is posted and the item ledger entry is created, the reservation entry is removed and replaced by a tracking specification record that has the same value in the Entry No. field as the corresponding item ledger entry.

The process of item tracking in Microsoft Dynamics NAV works as drawn in the following schema:

Item tracking

Technically, item tracking in Microsoft Dynamics NAV is very complex and should only be changed by experienced developers after careful analysis.

We will discuss the reservation process in more detail in Chapter 6, Trade.

All the steps we performed in the example can be summarized in this 10 step process diagram:

Summarizing item costing in 10 steps

Let's have a look at the steps briefly:

The assembly management module was added to the Microsoft Dynamics NAV product in Version 2013 and replaced the BOM Journal that existed since the introduction of the Windows version in 1995. Both enable us to create a new item out of other items.

In Version 2.01, Navision introduced the first version of Navision manufacturing. This was a separate product from Navision financials and only available for certified partners because of its complexity.

With Version 3.00, manufacturing became part of the standard Navision attain package and available for all partners. Manufacturing offers Microsoft Dynamics NAV users much more functionality than just creating an item from a bill of materials. Production orders can be scheduled using work centers, machine centers, tools, and a capacity calendar.

The items can be scheduled for production using either a Make-To-Stock or a Make-To-Order policy in a planning run.

The system calculates the required BOM components and can create purchase orders if the inventory is insufficient using a complex demand and supply process. If we put this into a design pattern, it looks like this:

Manufacturing

The Production Order is the center of the process, which is created by items having a Production BOM that are either on sales order or low on inventory.

The Planning Run populates the Planning Worksheet, which is based on the Requisition Line table (246). The planning worksheet can be used to create the production orders and purchase orders.

During the production process, the Consumption Journal is used to record the use of the child items from Production BOM and the Output Journal creates the new item once it is finished. Alternatively, these steps can be combined in the Production Journal.

Let's demonstrate this with the next example using the Production Planner role center (9010).

We will create mahogany English desks using raw materials, machines, and resources.

For the desks, we need mahogany wood, green leather, glue, lacquer, and handles. To create one desk, the carpenter needs four days and one carpentry unit with tools. The painter needs one day to varnish the desk in the paint booth and the assembly department wraps up the components in boxes and needs four hours.

We need the following items for this example:

No.

Description

Base UOM

Replenishment System

Unit Cost

Unit Price

Manufacturing Policy

CHAPTER5-P1

Mahogany English Desk

PCS

Prod. Order

286,25

999

Make-to-Order

CHAPTER5-C1

Mahogany Log

PCS

Purchase

100

 

-

CHAPTER5-C2

Green Leather

PCS

Purchase

60

 

-

CHAPTER5-C3

Glue

CAN

Purchase

15

 

-

CHAPTER5-C4

Mahogany Lacquer

CAN

Purchase

25

 

-

CHAPTER5-C5

English Desk Handles

PCS

Purchase

10

 

-

The following list is for machine centers:

No.

Name

Work Center No.

Capacity

Efficiency

01-CARP

Std. Carpentry Unit w. Tools

400

1

100

02-PAINT

Paint Booth

300

1

100

03-PACK

Packaging Department

200

1

100

There are three ways in Microsoft Dynamics NAV to create a production order. The easiest way is to manually enter them one by one. This can even be a simulation production order to test whether everything is set up as required.

Manual order entry is very time-consuming and is not often used by manufacturing companies. Most of them use MRP programs to plan the orders. When this is done using an external application, the interface will then create the production orders.

The MRP algorithm in Microsoft Dynamics NAV supports two policies, Make-To-Stock and Make-To-Order.

The code unit in this image in the standard Microsoft Dynamics NAV application is a perfect example of atomic coding, also known as workflow coding. With this style of programming, you break down the code into functions that have functional naming and leave out any programming while calling the functions one by one. This makes your code easier to read for others and cheaper to maintain.

Let's look at the functions in this code unit:

The last production methodology we discussed at the beginning of the chapter is specialized production.

These are items produced in small numbers or items that have very different specifications each time they go into production. For these companies, creating a bill of materials each time an item changes is just too much work compared to the extra information they would get.