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 :
Finance | Project Operations, Human Resources, ...
Unanswered

SQL querry

(0) ShareShare
ReportReport
Posted on by
Hi everyone,
 
*Expert advise please*
 
 
Whenever I am putting SQL query. It is picking up only Invoice data only which is AP. However, I need the data from GL (Manual jornals) and AR (negative data) as well.
 
Following is the query I am using.
 
SELECT aualtran.trn_num, aualtran.des_acc, aualtran.pst_per, aualtran.trn_cde, aualtran.src_acc, av_ap_creditor_details.CreditorName, aualtran.trn_ref, aualtran.act_val, aualtdes.trn_dsc, aupcacct.acc_lv1, aupcacct.acc_lv2, aupcacct.acc_lv3, aupcacct.acc_lv4, aupcbals.bgt_p12
FROM authlive.dbo.aualtdes aualtdes, authlive.dbo.aualtran aualtran, authlive.dbo.aupcacct aupcacct, authlive.dbo.aupcbals aupcbals, authlive.dbo.av_ap_creditor_details av_ap_creditor_details
WHERE aualtran.src_acc = av_ap_creditor_details.CreditorFormattedAccount AND aualtran.trn_num = aualtdes.trn_num AND aualtran.des_acc = aupcacct.lgr_acc AND aupcacct.lgr_acc = aupcbals.lgr_acc AND ((aualtdes.trn_lin=0) AND (aualtdes.seq_num=0) AND (aualtran.pst_yer=2023) AND (aupcbals.pst_yer=2023) AND (aualtran.src_mdu='AP') AND (aualtran.des_acc Like '%.4384.0568'))
ORDER BY aualtran.trn_ref
 
Just wondering if anybody can help.
 
Thanks.
I have the same question (0)

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans