Copy Company information from one company to the other

pri_1_ranjan
Member Posts: 67
Can any body please tell me where i can get the objects for the information copying from one company information to the other
Thanks in advance
Thanks in advance
/PDR
0
Comments
-
Hi
The functionality should be in the Setup Checklist in G/L Setup. On the Functions button in that screen is the copy data. It only works if the other comapny is in the same database and as standard a number of tables cannot be coppied. These include the Customer, Item and Vendor tables.
Another way to do it would be to create dataports to export and reimport your data, there are no "standard" ones so you'd need to create your own.
hope this helps
regards
Ian0 -
Here is an example for copying the Item table to the new company :
Create a report with a dataitem for table 27 "Item",
an input field for the new company name in the request form and a record variable Item2 for the Item table.
In the OnAfterGetRecord Trigger write :
Item2.COPY(Item);
Item2.CHANGECOMPANY(NewCompany);
IF NOT Item2.INSERT(TRUE) THEN
Item2.MODIFY(TRUE);
Works similar for all other tables. Existing records will be overwritten.
For the small tables with only a few records you can also use Cut&Paste. Open the database with two clients, one for the old company, one for the new one and just work your way through the tables in the object designer.Kai Kowalewski0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions