Skip to main content
Microsoft Dynamics GP forum

Applied to Debits Tables

editSubscribe (0) ShareShare
Posted on by 40


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.


thanks in advance.

  • Hokuminaria Profile Picture
    Hokuminaria 2,950 on at
    RE: Applied to Debits Tables

    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!

  • gonchristopher Profile Picture
    gonchristopher 40 on at
    RE: Applied to Debits Tables

    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.

  • Dean Marty Profile Picture
    Dean Marty on at
    RE: Applied to Debits Tables

    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.


Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 282,978 Super User

Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans