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

How do I reference an AP Check to the Voucher in a Sql query?

(0) ShareShare
ReportReport
Posted on by 4

I can't believe that I can figure this out. 

I need a query of AP Vouchers and their related checks.  I am expecting to see a reference in either the APDoc or APTran table of the Check record that references the Voucher RefNbr.  ApplyRefNbr seemed like a likely candidate but it always seems to be the same as RefNbr.  Clearly some kind of reference exists because the check screen displays the voucher information and I can drill down to the voucher.

What am I missing?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mark E Profile Picture
    6,451 on at

    You have to link in the APAdjust table.  The AdjgRefNbr field is the AP Check, the AdjdRefNbr is the Voucher(s) it paid.

  • Mark Schurmann Profile Picture
    4 on at

    That got it.  Thanks for the assist.

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 > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans