web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Applied to Debits Tables

(0) ShareShare
ReportReport
Posted on by 40

Hi,

How do I find the relation being the credit memo and invoice it was applied against in the database.  I'm able to find both the credit memo doc and the invoice it was applied to, but not sure how I could link the two.  I've posted the screen shot of where in GP I could see this relationship. I want to get to this from the database perspective.

I'm pulling data for invoices from dbo.RM20101.

AppliedToDebit.PNG

thanks in advance.

Categories:
I have the same question (0)
  • Dean Marty Profile Picture
    Microsoft Employee on at

    Good Day

    The applied information in RM is in either the RM20201 or RM30201 ( history ).  In that table you will find both the Invoice and CM doc numbers.

    Thanks!

  • gonchristopher Profile Picture
    40 on at

    I am able to find both documents in RM20201.  I would like to know where I could find the relationship between the CM and the invoice it was applied to.  thanks for your help.

  • Hokuminaria Profile Picture
    2,950 on at

    Hello gonchristopher.

    As Dean had mentioned, this information is stored in the RM20201(Work/Open) and RM30201(history). When you look at these tables, the fields that link the two documents are APTODCNM (Apply to Document Number) and APFRDCNM (Apply From Document Number). You can use these fields to see what they are applied to.

    An easy way to to see this is get into test and create a Debit and Credit Document and apply these together. Then look at the RM20201 and RM30201 to locate your Document Numbers so you can see how the fields look and are able to walk backwards as you know the document numbers.

    I hope this helps!

    Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans