web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Custom Reservation Entry on Warehouse Shipment

(4) ShareShare
ReportReport
Posted on by 67
Hi fellow AL developer.

I'd like to ask about custom reservation entry in Warehouse shipment (Sales, Purchase and Transfer Order).
I have create a custom page where people do scan their item with lot no, once all item scanned, there is a button to create custom reservation entry base on the scanned item.
I've successfully created the reservation entry for all the item following Dynamics 365 Business Central: How to create Item Tracking Lines automatically during an inbound transaction (Customization) | Dynamics 365 Lab

The problem is when I create warehouse pick the warehouse activity line is created but not carrying the lot no from reservation entry.
Is there anything that I missed?
 
I tried to compare Reservation Entry created by manual input from item tracking line, but they are already the same.
If I do manual input from item tracking line, when create pick the lot no is carried with no issue.

Thanks.
Alfa
 
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    12,803 Super User 2026 Season 1 on at
    Hello,
     
    Your custom Reservation Entry won’t bring the Lot No. into the Warehouse Pick because BC only pulls item tracking from the source document (Sales/Transfer/Purchase line) — not from warehouse documents.
    So your custom reservation must be applied to the source line item tracking, not directly on table 337.
    If you update item tracking on the source line using standard tracking/ reservation codeunits, the pick will correctly carry the lot, just like manual entry.
     
    Regards,
    Oussama Sabbouh
  • BilalFazrin Profile Picture
    67 on at
    Hello @OussamaSabbouh,

    Thanks for the reply.
    After we create Reservation Entry record, if we open item tracking line and then just close again somehow when create pick the lot no is carried.
    I did run Event Recorded to check what function running while open and close item tracking line page but it's so confusing.

    I found out there is this function in table warehouse shipment line called CreateWhseItemTrackingLines()
    if I call this function after scanning for each warehouse shipment line it is working fine.
    But it became trouble when we successfully do partial pick, then want to use it again on the same warehouse for the remaining pick because it run on again on warehouse shipment line that we already do before.

    "If you update item tracking on the source line using standard tracking/ reservation codeunits, the pick will correctly carry the lot"
    Im still confuse, can you explain more?

    Thanks, 
    Alfa
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,732 Super User 2026 Season 1 on at
    Hello,
     
    Your custom reservation entries work for scanning, but the lot numbers don’t appear in warehouse picks because Business Central relies on Tracking Specification records (not just Reservation Entries) when generating warehouse activity lines.
     
    Manual input creates both Reservation Entries and Tracking Specifications automatically, while your customization likely skips the latter.
     
    To fix this, after creating Reservation Entries, also create linked Tracking Specification records using standard functions like ItemTrackingMgt.CreateTrackingSpecificationFromReservEntry(), ensuring all source references match the original document. This linkage is what carries lot numbers into warehouse picks.
  • BilalFazrin Profile Picture
    67 on at
    Hello @Jainam M. Kothari

    Thanks for the reply.
    I tried create Tracking Specification after reservation entry created, still not carries the lot number to warehouse pick.


    Best Regards,
    Alfa

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans