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

Notifications

Announcements

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
    96,089 Super User 2025 Season 2 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

News and Announcements

Season of Giving Solutions is Here!

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 1,573

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 773 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 760 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans