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

Getting the GL Account from Purchase Lines AL

(0) ShareShare
ReportReport
Posted on by

Hi all,

I need to get the GL account from each of the existing purchase lines that have TYPE item. With this GL account, I will be able to sum the amount per GL Account.

Any idea in AL?

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,026 Super User 2026 Season 1 on at

    Hi, no GL Account is included on the Item Master. But if you want to get Purch. Account in General Posting Setup, you can get Gen. Bus. Posting Group in Vendor master, and get Gen. Prod. Posting Group in Item Master, then using these two data, you can get the GL account here.

    pastedimage1639957202719v2.png

    Hope this will help.

    Thanks.

    ZHU

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    As Yun noted, I would create a Jet Report to search all Posted Purchase Invoices and report back only those Invoices with Type = Item and then show the Vendors - Gen. Bus. Posting Group and the Items Gen. Prod. Posting Group on the line. Then take the combination and lookup the General Posting Setup for the Purchase Account and show the G/L Account value.

    Hope this helps.

    Thanks,

    Steve

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans