Searching across multiple entities
ramjet
Member Posts: 3
The organisation I work for has multiple companies setup in Navision. Clients are customers of each company and have the same customer number.
Each company generates its own unique invoices but sometime payments are credited to the wrong company. To find such a payment, we need to view the client's account in each company which can be time consuming.
Is it possible to generate a report that collects a client's transactions from all the companies?
Each company generates its own unique invoices but sometime payments are credited to the wrong company. To find such a payment, we need to view the client's account in each company which can be time consuming.
Is it possible to generate a report that collects a client's transactions from all the companies?
0
Comments
-
Yes, you can use the CHANGECOMPANY-function to change the company in which the record works.
If you combine it with table Company, you can get info from all companies.
An example:recCompany.RESET; recCompany.SETCURRENTKEY(Name); IF recCompany.FINDSET THEN REPEAT IF recPostedSalesInvoice.GET('some Invoice No.) THEN MESSAGE('Invoice exists in Company %1',recCompany.Name); UNTIL recCompany.NEXT = 0;Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
You forgot something Kriki:
recCompany.RESET; recCompany.SETCURRENTKEY(Name); IF recCompany.FINDSET THEN REPEAT recPostedSalesInvoice.CHANGECOMPANY(recCompany.Name); // gotta set the company first IF recPostedSalesInvoice.GET('some Invoice No.) THEN MESSAGE('Invoice exists in Company %1',recCompany.Name); UNTIL recCompany.NEXT = 0;0 -
:oops:Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
-
Thanks for the replies and sorry for the late reply.
I should have added I am quite new to Navision. How do I implement the code? Is it something we users can do or does it need to be set-up by our Navision consultant?
Thanks again.0 -
Everyone has there own way of doing things. I have seen this request quite few times, and to resolve it I developed a "Multi Company" Navigate function. Its an extremely simple task, just needs a new ledger table (shared across all companies) which you add to Navigate, and then just modify the look up forms with a change company, so that Navigate opens in the correct company.
This way its totally invisible to the user, you just hit navigate it searches all companies for any document. Just make sure your partner is careful with locking, since the insert locks all companies at once.
BTW in answer to your other question, how ever you do this, you really do want to involve your partner.David Singleton0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

