I am in the process of setting up Analytical Accounting. I have set up my dimenstion and am ready to put in my codes. I have over 1000 codes so would prefer inserting the records in the databse over entering each one individually through the form.
From what I have gathered so far, I will need to update tables AAG00401, AAG02000, and AAG00102. It appears that AAG00401v is updated when I insert the records into AAG00401. Below I provide an example of system users, AA Dimensions, Codes, and Descriptions. Below that I have provided the SQL I believe I need to run in order to update the database to add the codes and then modify the AAG00102 table in the DYNAMICS Database so that future records will be added with the correct consecutive ID.
Will you please review and let me know if this covers everything or if there are other tables which would need to be updated in order to have AA function properly?
One thing I have not been able to figure out is how the NOTEINDX column should be updated and what other tables it may be related to.
Users - All users will have Distibute and Adjust Access for all codes.
sa
DYNSA
rr000
rr001
AA Dimensions
Codes
Description
Job Codes
RW1-001
Job 1
RW1-002
Job 2
RW1-003
Job 3
Cost Codes
1001
Cost 1
1002
Cost 2
1003
Cost 3
Insert Into AAG00401 Values (1,1,’RW1-001’,’Job 1’,’’,101.00000,0)
Insert Into AAG02000 Values(‘sa’,1,1,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,1,1,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,1,1,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,1,1,0,0,1,1,0,0)
Insert Into AAG00401 Values (1,2,’RW1-002’,’Job 2’,’’,102.00000,0)
Insert Into AAG02000 Values(‘sa’,1,2,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,1,2,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,1,2,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,1,2,0,0,1,1,0,0)
Insert Into AAG00401 Values (1,3,’RW1-003’,’Job 3’,’’,103.00000,0)
Insert Into AAG02000 Values(‘sa’,1,3,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,1,3,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,1,3,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,1,3,0,0,1,1,0,0)
Insert Into AAG00401 Values (2,4,’1001’,’Cost 1’,’’,201.00000,0)
Insert Into AAG02000 Values(‘sa’,2,4,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,2,4,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,2,4,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,2,4,0,0,1,1,0,0)
Insert Into AAG00401 Values (2,5,’1002’,’Cost 2’,’’,202.00000,0)
Insert Into AAG02000 Values(‘sa’,2,5,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,2,5,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,2,5,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,2,5,0,0,1,1,0,0)
Insert Into AAG00401 Values (2,6,’1003’,’Cost 3’,’’,203.00000,0)
Insert Into AAG02000 Values(‘sa’,2,6,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘DYNSA’,2,6,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr000’,2,6,0,0,1,1,0,0)
Insert Into AAG02000 Values(‘rr001’,2,6,0,0,1,1,0,0)
UPDATE DYNAMICS.dbo.AAG00102 SET aaRowID=6 Where aaTableID=401
*This post is locked for comments