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

Notifications

Announcements

No record found.

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,510

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
    Inge M. Bruvik Profile Picture
    1,105 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
    95,329 Super User 2025 Season 2 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,510 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,262 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,510 on at

    yes, as well as the vendor ledger entries.

  • john.ellis Profile Picture
    3,510 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans