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

Whats the AL code to post warehouse receipt Number for a Purchase Order?

(0) ShareShare
ReportReport
Posted on by 625

Hi All,

I have a requirement where i have create and post a warehouse Receipt number for a Purchase Order using Web Service. I have sucessfully written the code for createing the Receipt Number for a PO, but i am unable to write the code to post it. I checked the code unit WhsePostRcptYesNo which is reponsible to post the receipt number. But i didnt understand much as i am quite new to BC.

Can someone please help with code to Post a Receipt Number?

Thanks to all.

I have the same question (0)
  • Suggested answer
    raelhefn Profile Picture
    Microsoft Employee on at

    Hello,

    currently dynamics community not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

  • Dan Kinsella Profile Picture
    468 on at

    If you have the receipt number, something like this should work:

       local procedure WhseReceiptPost(ReceiptNo: Code[20])

       var

           WhseRcptLine: Record "Warehouse Receipt Line";

           WhsePostReceipt: Codeunit "Whse.-Post Receipt";

       begin

           WhseRcptLine.SetRange("No.", ReceiptNo);

           WhsePostReceipt.Run(WhseRcptLine);

       end;

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 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans