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

Customer PO on Statement XML

(0) ShareShare
ReportReport
Posted on by 12

How do I go about adding the customers PO number to a statement? The field I need is "External document number". I am using XML mapping in MS Word to set up the statement template but I cannot find the appropriate field. Thanks!

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    whats the base table of your word report? purchase header? that table contains that field.

    otherwise you need to add that field to your dataitem programmatically.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    If you can't find it, it means you need to create a new report. Duplicate the statement report, and add the field into it.

  • matthew3108 Profile Picture
    12 on at

    Hi Franz,

    Thank you so much for the reply. I'm using the Standard statement report (ID 1316). I don't have the "Purchase Header" fields in the XML mapping pane.

  • matthew3108 Profile Picture
    12 on at

    Hi Teddy,

    Thanks for the reply. Do you mean I should re-export the standard statement template (ID 1316)?

  • Community Member Profile Picture
    on at

    You need the base table in which that field is present.

    You can then add that field to the report using a code sequence.

    Hope this helps!

    Regards.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    in dataitem "Detailed Cust. Ledg. Entry" add a sub-dataitem "sales header", which is linked via "document no." and "document type"=order.

    from dataitem "sales header" you get the "external document no." for usage as "customer po no."

  • matthew3108 Profile Picture
    12 on at

    Hi Franz, can you point me to any resource that explains how to add the sub-dataitem "sales header"?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans