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)

What tables and fields are used to connect an AP voucher and check?

(0) ShareShare
ReportReport
Posted on by 20

I'm trying to export AP data from Dynamics SL using SQL.  How do I connect the AP voucher with the check?  What tables are used?  What fields?

Thanks for the help -- Dave

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Dynamics 365 Profile Picture
    on at

    Dear Dave

    I recently had to write some update code for a similar situation.  The APDoc table contains CK records (DocType) that link back to a record in APAdjust using the AdjgRefnbr to Refnbr in APDoc.  In other words the check number.  The voucher refnbr is Adjdrefnbr in APAdjust.  I think that is the link you are looking for.  Be mindful of the fact that there are other DocTypes in APDoc that can also be checks link HC (Hand checks) and in SL 2011 (EP) electronic payments.

    Thanks

    Don

  • Barry Flynn Profile Picture
    3,090 on at

    Can I add a comment to Don's answer.

    In APDoc, RefNbr's for cheque-like documents are not necessarily unique.

    They are unique for a given Bank Acct & Sub.

    When you are joining from an APDoc cheque to APAdjust, I think you need to join on AdjgRefNbr, AdjgDocType, AdjgBank, AdjgSub.

    Barry

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