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 :
Microsoft Dynamics AX (Archived)

Accounts Payable Report with GL Account string included

(0) ShareShare
ReportReport
Posted on by

Hello,

I have been tasked with trying to develop an SQL query that would list all outgoing payments (Check, ACH, EFT, etc.) with the associated GL expense account string.  I do not see any similar reporting available in AX 2012, and have been trying to determine which tables to use and how to build the query.

So far, I am have this:

select  VT.DATAAREAID, VT.ACCOUNTNUM, VT.TRANSDATE, VT.INVOICE, VT.TXT, VT.VOUCHER, VT.DOCUMENTDATE, VT.PAYMREFERENCE, VT.PAYMMODE, GJAE.TRANSACTIONCURRENCYAMOUNT, DAVC.DISPLAYVALUE

FROM

[DynamicsAXProd].[dbo].[VENDTRANS] VT,

[DynamicsAXProd].[dbo].[GENERALJOURNALACCOUNTENTRY] GJAE,

[DynamicsAXProd].[dbo].[DIMENSIONATTRIBUTEVALUECOMBINATION] DAVC

WHERE

VT.CREATEDTRANSACTIONID = GJAE.CREATEDTRANSACTIONID

AND GJAE.LEDGERDIMENSION = DAVC.RECID

AND GJAE.POSTINGTYPE = 14

AND VT.TRANSDATE BETWEEN '04-01-2016' and '04-30-2016'

AND VT.DATAAREAID = '8032'

ORDER BY    VT.DATAAREAID, VT.TRANSDATE, VT.PAYMMODE, VT.PAYMREFERENCE

It gets me close, but I am certain there is a missing piece.  Any help would be appreciated.

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 1 on at

    you can see existing logic and way how it is presented in ax.

    pay a visit to following navigational path

    Accounts payable/Common/Vendor invoices/Open vendor invoices

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans