Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

How to flow custom field from purchase header to Warehouse Receipt Header

(1) ShareShare
ReportReport
Posted on by
Hi all,
 
   I want to flow my custom field from purchase header to warehouse receipt header i am using the event OnAfterPostDataItemPurchaseHeader, but it is not flowing from purchase header to warehouse shipment header can any one help in this , Thanks for your advices.
 

[EventSubscriber(ObjectType::Report, Report::/Get Source Documents/, 'OnAfterPostDataItemPurchaseHeader', '', false, false)]

    local procedure OnAfterPostDataItemPurchaseHeader(var PurchaseHeader: Record /Purchase Header/; var PurchaseLine: Record /Purchase Line/; var WarehouseRequest: Record /Warehouse Request/; var WhseReceiptHeader: Record /Warehouse Receipt Header/)

    begin

        WhseReceiptHeader.Port of Discharge:= PurchaseHeader.Port of Discharge;

        WhseReceiptHeader. Port of Landing := PurchaseHeader.Port of Landing;

    end;

 

Thanks & Regards

Satish.

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,723 Super User 2024 Season 2 on at
    How to flow custom field from purchase header to Warehouse Receipt Header
    Hi, sorry for the late reply, I hope the following information can help you.
    From Purchase Order (50 Purchase header) to Warehouse Receipt (7316 Warehouse Receipt Header)
     
     
    Thanks
    ZHU

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans