• Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ

Olof Simren - Microsoft Dynamics NAV & 365 Business Central Blog

  • Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ

Batch Creation of Warehouse Shipments

May 10, 2015 Posted by Olof Simren Development, Warehouse No Comments

In one of my previous blog posts about processing shipments I mentioned a batch job I developed many years ago to automatically create warehouse shipments. I have since that post received many requests and questions about this batch job, so here it is!

The objects themselves are available in the downloads section and the details about the functionality is described below. I hope you will find this useful.

In standard Microsoft Dynamics NAV there are two ways to create warehouse shipments; 1. from the order itself using a create warehouse shipment function or 2. by manually create a warehouse shipment and retrieving order lines using pre-configured filters or selecting individual orders. The modification described here provides a third option that allows you to create the warehouse shipments using a batch job that runs through all warehouse requests and automatically create the appropriate warehouse shipments. This is an option that has in many cases been proven superior compared to the two standard methods of creating warehouse shipments.

The main advantage with this modification is that you can have Dynamics NAV to automatically create warehouse shipments that represents shipments to be processed to individual destinations, one destination one warehouse shipment (instead of one warehouse shipment with orders going to different destinations which is the true intention behind the warehouse shipment in Dynamics NAV).

Another great advantage is that it allows Dynamics NAV to combine orders going to the same destination into a single warehouse shipment and in the same time also divide orders with multiple shipment dates into different warehouse shipments.

This modification works both for location that are setup as directed put-away and picks and also without the directed put-away and picks as long as the require shipment functionality is activated.

Sounds great, right? 🙂

Here is how it’s been developed;

Three new fields has been added to the warehouse shipment header; destination type, destination no. and destination sub. no. The new fields indicates where the shipment is going, the destination type is either customer, vendor or location and the destination no. is then either the customer no., vendor no. or location code (same fields as you have in the warehouse request table). The destination sub. no. is in case there is a ship-to code on the sales order or an order address code on the purchase return order.

Warehouse-Shipment-Dynamics-NAV

The new fields will be used by the batch job to combine order lines going to the same destination into one warehouse shipment. The combining of orders in this case is based on the three fields, plus the shipping agent code (which is already a standard field in the warehouse shipment header).

To make it work the destination sub. no. field has also been added to the warehouse request table. The warehouse request table basically sits between the orders and warehouse shipments. Records in the warehouse request table are created when the order is released and based on those records the warehouse shipments are created.

Warehouse-Request-Dynamics-NAV

Then there are some new code added to codeunit 5771 – Whse.-Sales Release and 5772 – Whse.-Purch. Release to populate the new destination sub. no. field in the warehouse request tabled during the release of an order.

Whse-Sales-Release-Code-Dynamics-NAV

The actual batch job that creates the warehouse shipments is then a process only order report (like a typical batch job in Dynamics NAV) based on the warehouse request table.

Create-Warehouse-Shipment-Batch-Job-Dynamics-NAV

In addition to filtering on the warehouse requests it has the following options;

Ending Date – Specifies the horizon for which warehouse shipments should be created. Order lines with shipment dates on this date and earlier will be included when warehouse shipments are created. Note that it looks at the order lines not the headers.

Combine Shipments – This Boolean fields determines if the batch job should combine order lines going to the same destination with the same shipping agent.

Append to Existing Shipment – This option field defines if the batch job should append order lines to existing warehouse shipments or not. It is only enabled if the combine shipment function is used. The options are never, always and if no pick exists.

When the warehouse shipments are created they are automatically released. So, if you are using warehouse shipments in combination with warehouse picks then you can go directly to the warehouse pick creation (through the pick worksheet for example) after this batch job has run.

During the creation of the warehouse shipment we need to make sure the new fields are populated. This is done in report 5753 – Get Source Documents according to below.

Get-Source-Documents-Code-Dynamics-NAV

The typical way to apply the functionality is to have a user run the batch job a couple of times a day with an ending date today or a couple of days forward. New orders that are created and that are due to be shipped within the next couple of days will then be added as warehouse shipment automatically. Orders that are due further out in the future will not be added to any warehouse shipments until it becomes time to process them.

Places that are using this minor modification are really liking it and it has added lots of value.

One additional thing that can be done is to change the functionality on the warehouse shipments that allows users to add additional order lines to an existing warehouse shipment so that it prevents mixing order lines going to different destinations.

The objects are in the downloads area, as always with my objects; use them as you want but use them at your own risk. 🙂

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Related


Discover more from Olof Simren - Microsoft Dynamics NAV & 365 Business Central Blog

Subscribe to get the latest posts sent to your email.

Tags: DevelopmentWarehouseWarehouse Shipment
No Comments
Share
10

About Olof Simren

I am a Microsoft Dynamics NAV and 365 Business Central Expert, I started implementing Microsoft Dynamics NAV in 2002, back then it was called Navision Attain. Throughout the years there has been many exciting implementations in different parts of the world, all of them with different challenges but with one common theme; manufacturing. As a consultant, I bring over 20 years of experience in implementing Microsoft Dynamics NAV and 365 Business Central within manufacturing and distribution companies. The services I offer includes project management, consultation, development and training. Feel free to contact me if you need help with anything related to Microsoft Dynamics NAV or 365 Business Central. I work through my company Naviona where I team up with other skilled Microsoft Dynamics NAV and 365 Business Central Experts.

You also might be interested in

Turn Report Selections into a Selection Dialog

Jun 12, 2014

Here is a small trick that I have used a[...]

Alternative Production BOMs and Routings

Jun 14, 2015

Using alternative production BOMs or routings is quite common in[...]

Custom Business Chart Add-In Example for NAV 2013 R2

May 28, 2014

Here is an example of how to create a custom[...]

Leave a Reply

Your email is safe with us.
Cancel Reply

My Dynamics NAV Partner

Naviona, LLC

Developers Wanted

Naviona is looking for NAV/BC developers. Let me know if you want to work with the best (instead of the rest :-)).

Categories

  • Assembly (3)
  • Development (31)
  • Finance (14)
  • General (26)
  • Inventory (22)
  • Manufacturing (34)
  • Miscellaneous (25)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in Assembly Assembly BOM CAL Capacity Components Consumption Contact Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Items Lot Size Low-Level Code MRP NAV 2015 NAV 2016 Output PDF Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Role Center Routing Sales Sales Order Sales Orders Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment

Recent Posts

  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)
  • Sales Quote without Customer
  • Parallel Routings
  • Add Fields to the Item Tracking Lines
  • Field Level Security using Events in Dynamics NAV 2016
  • Schedule MRP
  • Activate WMS Functionality for Existing Location

Categories

  • Assembly
  • Development
  • Finance
  • General
  • Inventory
  • Manufacturing
  • Miscellaneous
  • Purchase
  • Sales
  • Warehouse

Contact Us

We're currently offline. Send us an email and we'll get back to you, asap.

Send Message

Categories

  • Assembly (3)
  • Development (31)
  • Finance (14)
  • General (26)
  • Inventory (22)
  • Manufacturing (34)
  • Miscellaneous (25)
  • Purchase (9)
  • Sales (11)
  • Warehouse (7)

Tags

.net Add-in Assembly Assembly BOM CAL Capacity Components Consumption Contact Costs Customer Development Dimensions Excel Finance Flushing General Ledger Inventory Item Items Lot Size Low-Level Code MRP NAV 2015 NAV 2016 Output PDF Planning Production Production BOM Production Orders Purchase Orders Receipts Reporting Reports Role Center Routing Sales Sales Order Sales Orders Stockkeeping Unit Subcontracting Task List Warehouse Warehouse Shipment

Recent Posts

  • XML Buffer and CSV Buffer Tables
  • Functionality Improvements in NAV 2017
  • Reversing Production Output and Consumption
  • Return Merchandise Authorization (RMA)
  • Sales Quote without Customer
  • Parallel Routings
  • Add Fields to the Item Tracking Lines
  • Field Level Security using Events in Dynamics NAV 2016
  • Schedule MRP
  • Activate WMS Functionality for Existing Location

Recent Comments

  • Isabel de los Santos on Production Lot Sizes
  • Abdelatif EL HANI on Reversing Production Output and Consumption
  • Roshan on Processing of Receipts
  • kuldeep Nama on Subcontracting Part 1: The Basics
  • Janine on Flushing Methods
  • Nathalie on Activate WMS Functionality for Existing Location
  • Georges W on Bill-to vs. Sell-to Customer
  • Richard L on Subcontracting Part 4: Warehouse Receipts

© 2025 · Olof Simren

  • Home
  • About Me
  • Contact Me
  • Downloads
  • White Papers
  • Web Sites
  • Post List
  • Articles
  • FAQ
Prev Next