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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 3,477

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

I have the same question (0)
  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    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.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    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
    Blue Wang Profile Picture
    on at

    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.

  • NaveenKumar S Profile Picture
    3,477 on at

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

  • NaveenKumar S Profile Picture
    3,477 on at

    Hello Satish, thank you I will try this

  • NaveenKumar S Profile Picture
    3,477 on at

    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
    3,477 on at

    Hello Blue Wang, thank you, will try this

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans