Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Generating Customer Aging Report from multiple companies in NAV

(0) ShareShare
ReportReport
Posted on by 125

Hello All,

I have this one requirement where I have to generate customer aging report from multiple companies. All the customer have same code and name in both of the companies. So, I want to develop the report where it displays the aging details from both of the companies irrespective of which company I run. Is there any suitable way to do this?

*This post is locked for comments

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: Generating Customer Aging Report from multiple companies in NAV

    Hi! You need to use CHANGECOMPANY function:

    docs.microsoft.com/.../changecompany-function--record-

    For example:

    IF Company.FINDFIRST THEN REPEAT
      Customer.CHANGECOMPANY(Company.Name);
      CustomerLedgerEntry.CHANGECOMPANY(Company.Name);
      IF Customer.FINDFIRST THEN REPEAT
        CustomerLedgerEntry.SETRANGE("Customer No.", Customer."No.");
        IF CustomerLedgerEntry.FINDSET THEN
        ....
        UNTIL CustomerLedgerEntry.NEXT = 0;
      UNTIL Customer.NEXT = 0;
    UNTIL Company.NEXT = 0;

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans