Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX2012 R3 combine data of two legal entites data into one report

(0) ShareShare
ReportReport
Posted on by 3,352

Hello, 

please let me know if we can design a report which can fetch data from two legal entities and display. Like we have posted general journals in two legal entities and now in a custom report I want to fetch the amount and voucher in two columns respectively, is it possible

*This post is locked for comments

  • NaveenKumar S Profile Picture
    NaveenKumar S 3,352 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Blue Wang, thank you, will try this

  • NaveenKumar S Profile Picture
    NaveenKumar S 3,352 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Dr. Ludwig, I want to get the monthly expenses posted in two entities using general journals. the two legal entities have the same COA and the report should show the expense. But these cannot be treated as operating units or using dimension, they have to be separate entities

  • NaveenKumar S Profile Picture
    NaveenKumar S 3,352 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Satish, thank you I will try this

  • NaveenKumar S Profile Picture
    NaveenKumar S 3,352 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hello Dr. Ludwig, thank you, I will try in MR

  • Verified answer
    Blue Wang Profile Picture
    Blue Wang on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi  Naveen,

    You can refer : https://docs.microsoft.com/en-us/dynamicsax-2012/developer/cross-company-reports-in-the-aot

    Such as cross Legal Entites to run vendor ageing reports, you should use ChangeCompany in the VendAgingReportDP class method processReport.

       CompanyName nameOfCompany;
       TableName contractCompany;
       ;
    
        while select contractCompany
        {
            if (contractCompany.dataAreaId == 'xxx')
            {
                changecompany(contractCompany.LegalEntity)
                {
                    nameOfCompany = curext();
                    info(strFmt("Name : %1",nameOfCompany));
                }
            }
        }


    I hope it will help you.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi Naveen,

    Can you specify what kind of data you want to have analyzed together across companies?

    Are these accounting related data or some other data?

    Would be great if you could clarify.

    Many thanks and best regards,

    Ludwig

  • Verified answer
    Satish Panwar Profile Picture
    Satish Panwar 14,645 on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Valid scenario. You can take a look at report below that shows how to fetch data from multiple companies..

    InterCompanyGoodsInTransitTotals

    You just need to use the keyword "changecompany(... dataAreaId)" to get data from other company.

  • Verified answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: AX2012 R3 combine data of two legal entites data into one report

    Hi Naveen,

    You can combine data from two or even all of your companies in a Management reporter report.

    There are a  couple of default reports available in the MR. Please check them to get an impression of how your report can be designed.

    Please let us know if this answered your question resp solved your issue.

    Best regards

    Ludwig

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans