Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: Ledger Entry Report for all Companies

$
0
0
Hi Anirban So you are running this from one of the companies on the Nav database which then runns through the customer list and collects data for the current company and then other companies on the same database? So it does this from the customer list on the company logged into? In which case all you do is set up a global like Cust (which is table 18), get the data for the company logged into, add code Cust.CHANGECOMPANY(NextCompanyName), get data, CHANGECOMPANY again to the next company name and then when finished CHANGECOMPANY back to the original logged into company. Better to do this from a new company which has the common customer list in it and all the companies listed as business units and you can then create a report with Business Unit as the first dataitem with the customer table indented as the 2nd dataitem. Then CHANGECOMPANY OnAfterGetRecord on business unit dataitem. Make sense? Apologies bit of a techie answer. Neil

Viewing all articles
Browse latest Browse all 11285

Trending Articles