Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

SQL querry

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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans