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)

Creating cross-Company SSRS Report

(0) ShareShare
ReportReport
Posted on by

Hi, how can I create a ssrs Report that Show cross Company data? I want to extend an existing Report but there I do have the Problem that cross Company is not allowed with tempDB.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    If it's a system report that uses a TempDb table and therefore a data provider (DP) class to generate that data, then it may require some code modifications in order to loop through all companies and insert records from each into the TempDb table.  You may also then be forced to add your own field to the TempDb table, such as Company since you can't add or use DataAreaId, to maintain a reference back to the original company so it can be printed on the report.

    What report is it?

  • Community Member Profile Picture
    on at

    It's the TaxListReport (which has changed in R3). I did something similar in RTM but the Report completely changed in its Development inside R3

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    have a look at Procurement and sourcing>>Reports>>Vendor Requests>>Vendor Requests.

  • Community Member Profile Picture
    on at

    Thanks a lot for the advice but I am still struggling with the TaxList

    It is completely different from creation point of view and I am absolutely not familiar with it.

  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    I've looked at the DP briefly.

    processReport() calls a bunch of instance methods.  First, it calls insertTaxListTaxTmpData() which populated the TempDB table with a query, using an insert_recordset for performance.  Then it calls updateTaxListTaxTmpData() to fill in secondary fields.

    If the approach were simpler, I might suggest turning the query into a cross-company query, but this one looks pretty involved.

    The easiest approach to this report might just be to loop through DataArea in processReport(), do a changeCompany(dataArea.Id), and let the report do what it does inside of each company context.  You'll probably still want to add a Company field of type SelectableDataArea to the TaxListTaxTransTmp table, otherwise all the data will bleed together.

    Does that make sense?

  • Community Member Profile Picture
    on at

    This looping basically sounds great and I just thought about something like this. But I still do have the problem to get a multiselect lookup on the queryform respectively get the Value List into the DP.

    I played around and I have it on the form but therefore having all other Parameters 3 times as well and so on

  • Brandon Wiese Profile Picture
    17,788 on at

    I guess I assumed that your sales tax codes were shared among the companies as well as your chart of accounts.  I'm not sure a cross-company report makes sense if they're not.  Obviously voucher doesn't make sense at all.

  • Community Member Profile Picture
    on at

    yes for sure you are right in these cases but the Users want to create a TaxList for different companies (in one List) by a specific date. For all Tax Codes and basically all vouchers in such a case. for Voucher specific they only use it for one Company

  • Brandon Wiese Profile Picture
    17,788 on at

    That report does not look at all straightforward to turn into cross-company.  Some reports are harder than others to achieve this.

    What is your need here?  To have a single PDF with all the pages together?  To print many companies in one sweep without having to switch companies and print them individually?  How many companies?  To have all the raw data in a single Excel workbook?  Perhaps there's a more inventive approach if what you're trying to achieve is flexible.

  • Community Member Profile Picture
    on at

    Hi

    Exactly. Customer wants to print the data in just one report, grouped by company and Taxcode without changing companies

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans