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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Linking A/P and the G/L

(0) ShareShare
ReportReport
Posted on by 3,530

Hi:

I'm having trouble linking Business Central's Vendor Ledger Entry table to the Gen. Journal Posted Line table.

I'm able to "pull in" data from the Vendor Ledger but not the corresponding debits, credits, and General Ledger data.

I have linked these two tables, as best as I know how, based on Document Number, External Document Number, and Posted Date.  I have tried other linkings, too, but no luck.

So, what am I missing in linking these two tables?

Thanks!

John

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    The entry no. is the link.

    So the corresponding G/L Entry will have the same Entry no. as the Vendor ledger entry.

    Then you can get the correct date and doc.no. to make a better filter.

  • Verified answer
    YUN ZHU Profile Picture
    102,123 Super User 2026 Season 1 on at

    Hi, if you are talking about G/L Entry (17) table, I think your approach is fine, because the standard only uses "Posting Date" and "Document No.", However, there is a one-to-many situation as shown below, you need to take this into account.

    pastedimage1659485511854v3.png

    pastedimage1659485608964v4.png

    And you can choose “Show Amounts” in General Ledger Setup to display Debit and Credit amount.

    More details: https://yzhums.com/4985/

    pastedimage1659485828788v5.png

    pastedimage1659486064736v6.png

    G/L Entry (17)

    pastedimage1659485378256v2.png

    If you are talking about Posted Gen. Journal Line (181) table, as far as I know, you can only link Payments posted in General Journal, Invoice will not show up here.

    pastedimage1659485346980v1.png

    Hope this helps.

    Thanks.

    ZHU

  • john.ellis Profile Picture
    3,530 on at

    Hi Inge:

    I can't find a corresponding Entry No. field in the Vendor Ledger table.  What is it?

    John

  • Alfredo_Iorio Profile Picture
    1,268 on at

    The link is correct. Vendor ledger entry and G/L Entries can be linked through the document number and posting date.

    As Yun says, there is a one-to-many relation that might conflict with your report. For example, if you try to get the total of the G/L entries starting from a Vendor ledger entry, you will always get 0 because the total G/L entried for the document posted will always wash.

    What are you trying to achieve? Do you want to return a list of all the G/L entries?

  • john.ellis Profile Picture
    3,530 on at

    yes, as well as the vendor ledger entries.

  • john.ellis Profile Picture
    3,530 on at

    @YUN:  Thank you!  I was, indeed, using the wrong table!  I should have been using G/L Entry.

    I got it, now!  Again, thanks!

    John

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,496 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 961 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 870 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans