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

Community site session details

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

Post warehouse shipment via AL code

(1) ShareShare
ReportReport
Posted on by 20
Hi all,
 
I have to manage the posting of a warehouse shipment through AL code. I need to find a bulletproof solution that won’t cause issues with possible future Microsoft BC updates.
 
I need to find documentation about this. For example, I’m currently testing by trying to copy Microsoft’s standard action, but I’m getting a problematic result. My warehouse shipment contains lines from two different sales orders, and if one of them fails, my procedure still creates a shipment. However, I want the entire posting process to be blocked if even a single line fails, without creating any posted documents.
 
Where can i find examples about this?
 
Thanks,
Matteo
I have the same question (0)
  • Suggested answer
    Govinda Kumar Profile Picture
    2,225 Moderator on at
    Post warehouse shipment via AL code

    Hi Matteo,

    It will really help if you share your AL code you currently using..
    I also recommend like you did, checking how Microsoft handles in standard posting codeunit 5763 "Whse.-Post Shipment". Properly check the temporary tables and the correct use of Commit which seems to be an issue here..

    For future updates.. I think subscribing to events is safer approach, anyways.. If you share your code.. me (or others here) can help point out what’s missing.

    BR,
    Govinda Kumar

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,683 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,603

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,214

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans