Notifications
Announcements
No record found.
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.
thanks in advance.
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!
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader