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

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

(0) ShareShare
ReportReport
Posted on by 607

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
    on at
    RE: Whats the AL code to post warehouse receipt Number for a Purchase Order?

    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
    RE: Whats the AL code to post warehouse receipt Number for a Purchase Order?

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,655

#2
Sumit Singh Profile Picture

Sumit Singh 2,579

#3
YUN ZHU Profile Picture

YUN ZHU 2,022 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans