-- Minimaal vereiste versie waarop dit script gedraaid kan worden is 4.60.8!!!


spool conn#678.log

DROP TABLE tmp;

commit;

CREATE TABLE tmp
(F1                           VARCHAR2(256)
,F2                           VARCHAR2(256)
,F3                           VARCHAR2(256)
,F4                           VARCHAR2(256)
,F5                           VARCHAR2(256)
,F6                           VARCHAR2(256)
,F7                           VARCHAR2(256)
,F8                           VARCHAR2(256)
,F9                           VARCHAR2(256)
,F10                          VARCHAR2(256)
);

set define off;

INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
'x', 'Kostenplaats', 'Budgetcode', '1e fiattuur', 'Persnummer', '2e fiattuur', NULL
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '381 ICT: Algemeen', 'H-381', 'Scheepers, Ron', '5073316', 'Bertrams, Jean'
, NULL, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7002 Almelo', 'OV-7002', 'Makkinga, Jan', '3054780', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7007 Arnhem', 'OV-7007', 'Anholt, Wim van', '3001523', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7006 Amersfoort', 'OV-7006', 'Jeuring, Bert', '1039985', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7009 Bemmel', 'OV-7009', 'Riemersma, Theo', '2159768', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7012 Dedemsvaart', 'OV-7012', 'Vos, Rolf', '400175', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7017 Deventer', 'OV-7017', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7020 Duiven', 'OV-7020', 'Riemersma, Theo', '2159768', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7065 Zwolle', 'OV-7065', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7062 Zeist', 'OV-7062', 'Jeuring, Bert', '1039985', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7059 Wijk bij Duurstede', 'OV-7059', 'Jeuring, Bert', '1039985', 'Bruns, Richard'
, '3014021', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7057 Wageningen', 'OV-7057', 'Riemersma, Theo', '2159768', 'Bruns, Richard'
, '3014021', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7050 Raalte', 'OV-7050', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7048 Oudewater', 'OV-7048', 'Blok, Fred', '2401825', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7046 Ommen', 'OV-7046', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7045 Nieuwegein', 'OV-7045', 'Blok, Fred', '2401825', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7042 Meppel', 'OV-7042', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7030 Hoogeveen', 'OV-7030', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7023 Enschede', 'OV-7023', 'Makkinga, Jan', '3054780', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7022 Emmen', 'OV-7022', 'Vos, Rolf', '2101446', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7018 Dieren', 'OV-7018', 'Riemersma, Theo', '2159768', 'Bruns, Richard', '3014021'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7001 Alkmaar', 'OV-7001', 'Jong, Andre de', '401241', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7004 Almere Haven', 'OV-7004', 'Berge, Frank van den', '2005435', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7026 Haarlem', 'OV-7026', 'Spanje, Ottillie van', '78349', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7032 Huizen', 'OV-7032', 'Jellema, Cees', '1039951', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7061 Zeewolde', 'OV-7061', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7060 Zaandam', 'OV-7060', 'Mulder, Gery', '400718', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7056 Velsen', 'OV-7056', 'Heddema, Klaas', '30365', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7055 Uithoorn', 'OV-7055', 'Vreeling, Lyda', '400175', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7052 Schiphol-Noord', 'OV-7052', 'Hoeben, Hans', '1034206', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7041 Medemblik', 'OV-7041', 'Jong, Andre de', '401241', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7038 Lelystad', 'OV-7038', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7034 Kampen', 'OV-7034', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7033 Joure', 'OV-7033', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7064 Zwartsluis', 'OV-7064', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7031 Hoorn', 'OV-7031', 'Jong, Andre de', '401241', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7029 Hilversum', 'OV-7029', 'Jellema, Cees', '1039951', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7014 Den Burg', 'OV-7014', 'Jong, Andre de', '401241', 'Dijkstra, Harmen', '20432'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7021 Emmeloord', 'OV-7021', 'Roo, Danny de', '2401932', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7016 Den Helder', 'OV-7016', 'Jong, Andre de', '401241', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7003 Almere Buiten', 'OV-7003', 'Berge, Frank van den', '2005435', 'Dijkstra, Harmen'
, '20432', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, 'Servicecentrum HRM', 'H-363', 'Lit Werner van', '400141', 'Hetebrij, Willem'
, '400753', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, 'Servicecentrum FA', 'H-362', 'Hooftman Martin', '400754', 'Hetebrij, Willem'
, '400753', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1000 Directie OV', 'OV-1000', 'Mes, Willem', '401458', 'Holten, Rob van', '5035760'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1900 Directie overig', 'OV-1900', 'Mes, Willem', '401458', 'Holten, Rob van'
, '5035760', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '302 DIR: Public Affairs', 'H-302', 'Lely, Willem', '5051098', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '303 DIR: Juridische Zaken & Riskmanagem.', 'H-303', 'Slijper, Dirk', '5077465'
, 'Janssen, Frank', '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '304 DIR: Interne accountantsdienst', 'H-304', 'Jongejan, Mark', '400143', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '309 DIR: Veiligheid', 'H-309', 'Huizenga, Marcel', '401338', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '312 Medezeggenschap', 'H-312', 'Witte, Peter-Paul', '400669', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '315 Afd. Projectenbureau', 'H-315', 'Stam, Cees', '1079441', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '311 HRM: Algemeen', 'H-311', 'Witte, Peter-Paul', '400669', 'Janssen, Frank'
, '401128', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '3921 VCK 2005 - programmaraad', 'H-3921', 'Stam, Cees', '1079441', 'Kortenhorst, Peter'
, '5046858', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1100 Projectmanagement', 'OV-1100', 'Helfrich, Jurjen', '2101391', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2010 Nationale producten', 'OV-2010', 'Struijk, Leon', '401016', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '3000 Tenderteam', 'OV-3000', 'Jacobi, Arend', '5038491', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4000 Logistiek&Ontwikkeling', 'OV-4000', 'Modderman, Ewoud', '1057505', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2300 Commercie Accountmanagement', 'OV-2300', 'Struijk, Leon', '401016', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8200 Corr.rekening Facilitair Bedrijf', 'OV-8200', 'Kort, Wil de', '401362'
, 'Mes, Willem', '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8100 Corr.rekening Vloot', 'OV-8100', 'Kort, Wil de', '401362', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8000 Corr.rekening loonjournaalpost', 'OV-8000', 'Kort, Wil de', '401362', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6900 Voorzieningen', 'OV-6900', 'Kort, Wil de', '401362', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6800 Overig', 'OV-6800', 'Kort, Wil de', '401362', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6000 Finance & Control', 'OV-6000', 'Kort, Wil de', '401362', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '5900 WAO-ers', 'OV-5900', 'Nieuwenhuyzen, Jurgen van de', '401166', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '5600 HRM Medezeggenschap', 'OV-5600', 'Nieuwenhuyzen, Jurgen van de', '401166'
, 'Mes, Willem', '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '5000 HRM', 'OV-5000', 'Nieuwenhuyzen, Jurgen van de', '401166', 'Mes, Willem'
, '401458', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2000 Commercie', 'OV-2000', 'Struijk, Leon', '401016', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1120 Infofoxx', 'OV-1120', 'Struijk, Leon', '401016', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1110 Chipcard', 'OV-1110', 'Struijk, Leon', '401016', 'Mes, Willem', '401458'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4100 L&O Exploitatieondersteuning', 'OV-4100', 'Gelens, Andre', '1025620', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4200 L&O VOS', 'OV-4200', 'Berg, Rene van den (Hilversum)', '400755', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4310 L&O NS-vervoer', 'OV-4310', 'Houthuijzen, Michiel', '2101487', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4330 L&O Vervoerplanning 1', 'OV-4330', 'Houthuijzen, Michiel', '2101487', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4400 L&O Beleidsontwikkeling&Kwaliteit', 'OV-4400', 'Bruin, Tim de', '5012991'
, 'Modderman, Ewoud', '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4340 L&O Vervoerplanning 2', 'OV-4340', 'Houthuijzen, Michiel', '2101487', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4320 L&O Reisinformatie', 'OV-4320', 'Houthuijzen, Michiel', '2101487', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4300 L&O Productieplanning', 'OV-4300', 'Houthuijzen, Michiel', '2101487', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4130 L&O Haltepalen', 'OV-4130', 'Gelens, Andre', '1025620', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4121 L&O VIC', 'OV-4121', 'Gelens, Andre', '1025620', 'Modderman, Ewoud', '1057505'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4110 L&O CVL', 'OV-4110', 'Gelens, Andre', '1025620', 'Modderman, Ewoud', '1057505'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4120 L&O Sociale Veiligheid', 'OV-4120', 'Gelens, Andre', '1025620', 'Modderman, Ewoud'
, '1057505', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1800 Ontwikkelbureau', 'OV-1800', 'Rippens, Ramon', '5070460', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7053 Schoonhoven', 'OV-7053', 'Laviere, Gijs van', '1050459', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7051 Ridderkerk', 'OV-7051', 'Zandbergen, Ton', '1098292', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7049 Parkshuttle Rivium', 'OV-7049', 'Zandbergen, Ton', '1098292', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7047 Oude Tonge', 'OV-7047', 'Ebbelink, Paul', '400746', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7044 Monster', 'OV-7044', 'Hoeven, Angelo van der', '1034727', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7043 Middelburg', 'OV-7043', 'Raffen, Ad van', '1067978', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7040 Maasland', 'OV-7040', 'Hoeven, Angelo van der', '1034727', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7039 Lisse', 'OV-7039', 'Peschier, Jack', '66070', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7037 Leidschendam', 'OV-7037', 'Wennekes, Wim', '1093553', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7063 Zoetermeer', 'OV-7063', 'Steijn, Jos van', '1080352', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7058 Wemeldinge', 'OV-7058', 'Raffen, Ad van', '1067978', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7054 Spijkenisse', 'OV-7054', 'Jong, Nicola de', '1040450', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7036 Leiden', 'OV-7036', 'Zuidema, Jan', '401409', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7035 Krimpen a/d IJssel', 'OV-7035', 'Zandbergen, Ton', '1098292', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7028 Hellevoetsluis', 'OV-7028', 'Jong, Nicola de', '1040450', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7027 Heinenoord', 'OV-7027', 'Ebbelink, Paul', '400746', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7025 Haamstede', 'OV-7025', 'Raffen, Ad van', '1067978', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7024 Gouda', 'OV-7024', 'Laviere, Gijs van', '1050459', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7019 Draaibrug', 'OV-7019', 'Raffen, Ad van', '1067978', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7015 Den Haag', 'OV-7015', 'Hoeven, Angelo van der', '1034727', 'Oijen, Kees van'
, '1061765', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7013 Delft', 'OV-7013', 'Laviere, Gijs van', '1050459', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7011 Brielle', 'OV-7011', 'Jong, Nicola de', '1040450', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7010 Boskoop', 'OV-7010', 'Steijn, Jos van', '1080352', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7008 Axel', 'OV-7008', 'Raffen, Ad van', '1067978', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '7005 Alphen', 'OV-7005', 'Steijn, Jos van', '1080352', 'Oijen, Kees van', '1061765'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '3922 VCK 2005 -  integratie FA', 'H-3922', 'Hetebrij, Willem', '400753', 'Stam, Cees'
, '1079441', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '3923 VCK 2005 -  integratie HRM', 'H-3923', 'Hetebrij, Willem', '400753', 'Stam, Cees'
, '1079441', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '3924 VCK 2005 -  integratie ICT', 'H-3924', 'Hetebrij, Willem', '400753', 'Stam, Cees'
, '1079441', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2100 Commercie Marketing', 'OV-2100', 'Yntema, Maureen', '400260', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2110 Commercie Ontwikkeling', 'OV-2110', 'Yntema, Maureen', '400260', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2200 Commercie Verkoop&Service', 'OV-2200', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2230 Commercie Vervoerwinkels', 'OV-2230', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2220 Commercie Klantenservice', 'OV-2220', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2210 Commercie Grootverbruik', 'OV-2210', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2130 Commercie Marketingsdesk', 'OV-2130', 'Yntema, Maureen', '400260', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2231 Vervoerwinkel Alkmaar', 'OV-2231', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2242 Vervoerwinkel Zaandam', 'OV-2242', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2241 Vervoerwinkel Utrecht', 'OV-2241', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2240 Vervoerwinkel Lelystad', 'OV-2240', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2239 Vervoerwinkel Leiden', 'OV-2239', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2238 Vervoerwinkel Haarlem', 'OV-2238', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2237 Vervoerwinkel Enschede', 'OV-2237', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2236 Vervoerwinkel Delft', 'OV-2236', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2235 Vervoerwinkel Den Helder', 'OV-2235', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2234 Vervoerwinkel Den Haag', 'OV-2234', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2233 Vervoerwinkel Arnhem', 'OV-2233', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2232 Vervoerwinkel Almere', 'OV-2232', 'Meijs, Helmy', '1057010', 'Struijk, Leon'
, '401016', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1105 Centrale EHV / MSTR', 'CTS-1105', 'Duivesteijn, Theo', '554237', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1116 Eindhoven', 'CTS-1116', 'Duivesteijn, Theo', '554238', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1117 Maastricht', 'CTS-1117', 'Duivesteijn, Theo', '554239', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1317 Nieuwegein', 'CTS-1317', 'Staal, Kees', '7162932', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1319 Gouda', 'CTS-1319', 'Sleyster, Harold', '550501', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1423 Apeldoorn', 'CTS-1423', 'Zeeuw, Rene de', '550568', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1512 Alkmaar', 'CTS-1512', 'Haverkort, Sjaak', '554558', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1516 Haarlem', 'CTS-1516', 'Spijker, Gerrit', '216779', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1818 Rijswijk-Den Haag', 'CTS-1818', 'Peppel, Ron van de', '1064836', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1817 Monster', 'CTS-1817', 'Peppel, Ron van de', '1064836', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1816 Schiedam', 'CTS-1816', 'Boorsma, Albert', '1009930', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1710 G.V.V. Regie', 'CTS-1710', 'Rotterdam, Leo van', '550569', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1520 Amsterdam', 'CTS-1520', 'Calf, Michael', '552302', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1513 Purmerend', 'CTS-1513', 'Tenhaeff, Barbara', '554879', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1421 Lelystad', 'CTS-1421', 'Lommerts, Piet', '552187', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1316 Hilversum', 'CTS-1316', 'Adelaar, Leo', '554559', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1216 Enschede', 'CTS-1216', 'Zeeuw, Rene de', '550568', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2016 Alkmaar', 'CTS-2016', 'Nootebos, John', '710645', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2015 Beverwijk', 'CTS-2015', 'Nootebos, John', '710645', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '2014 Ambu regio', 'CTS-2014', 'Nootebos, John', '710645', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1918 West Brabant', 'CTS-1918', 'Duivesteijn, Theo', '554237', 'Vegter, Theo'
, '2401748', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1917 Goes', 'CTS-1917', 'Bauer, Lisette', '1300190', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1819 Delft', 'CTS-1819', 'Boorsma, Albert', '1009930', 'Vegter, Theo', '2401748'
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1305 L.C. Midden Nederland', 'CTS-1305', 'Ruiter, Michael de', '554545', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4001 Land.Prod regiokantoor', 'CTS-4001', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8510 L.C. & Procesbeheer', 'CTS-8510', 'Bijleveld, Michiel', '5015333', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8506 ICT', 'CTS-8506', 'Selles, Rudy', '5075808', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6007 Landelijke klantenservice', 'CTS-6007', 'Zoeteweij, Bas', '553623', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6006 24 Uurs centrale', 'CTS-6006', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '6005 NCC', 'CTS-6005', 'Zoeteweij, Bas', '553623', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4900 Overige nat. prod.', 'CTS-4900', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4600 OVR Taxi', 'CTS-4600', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4500 ING Vervoer', 'CTS-4500', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4450 Schiphol - Hotel Shuttle', 'CTS-4450', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4400 ZRA', 'CTS-4400', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4350 Schiphol Airport', 'CTS-4350', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '4200 NST', 'CTS-4200', 'Bruin, Edwin de', '550263', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1405 L.C. IJsselland', 'CTS-1405', 'Hogebrug, Erik', '555040', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1605 Centrale Leeuwarden', 'CTS-1605', 'Williams, Edwin', '552776', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1905 L.C. Zeeland', 'CTS-1905', 'Plasse, Ankie van der', '1300073', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1705 L.C. Regie', 'CTS-1705', 'Rotterdam, Leo van', '550569', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1805 L.C. Zuid Holland', 'CTS-1805', 'Ruiter, Michael de', '554545', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1610 Leeuwarden', 'CTS-1610', 'Williams, Edwin', '552777', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '1505 L.C. Noord-Holland', 'CTS-1505', 'Bosgra, Ferry', '555332', 'Wetering, Andre van de'
, '2101392', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8502 F & C', 'CTS-8502', 'Schep, Benno', '2053922', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8508 T & I', 'CTS-8508', 'Vegter, Theo', '2401748', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8511 Future Technology', 'CTS-8511', 'Wetering, Andre van de', '2101392', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8550 Reorganisatie', 'CTS-8550', 'Veerman, Albert', '2101471', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8590 Prevut sociaal plan', 'CTS-8590', 'Veerman, Albert', '2101471', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8580 Ondernemingsraad', 'CTS-8580', 'Veerman, Albert', '2101471', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8503 P & O', 'CTS-8503', 'Veerman, Albert', '2101471', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '8504 Connexxion Catering', 'CTS-8504', 'Elvers, Edward', '2101390', 'Wetering, Jan Willem van de'
, '5094692', NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '356 F&C: Corporate Finance', 'H-356', 'Janssen, Frank', '401128', NULL, NULL
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '355 F&C: Treasury / Cash management', 'H-355', 'Janssen, Frank', '401128', NULL
, NULL, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '352 F&C: Concern Control', 'H-352', 'Janssen, Frank', '401128', NULL, NULL
, NULL, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '351 F&C: Algemeen', 'H-351', 'Janssen, Frank', '401128', NULL, NULL, NULL, NULL
, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '325 COM: New Business', 'H-325', 'Janssen, Frank', '401128', NULL, NULL, NULL
, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '321 COM: Algemeen', 'H-321', 'Janssen, Frank', '401128', NULL, NULL, NULL, NULL
, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, '301 DIR: Algemeen', 'H-301', 'Kortenhorst, Peter', '5046858', NULL, NULL, NULL
, NULL, NULL);
INSERT INTO TMP ( F1, F2, F3, F4, F5, F6, F7, F8, F9, F10 ) VALUES (
NULL, 'Servicecentrum ', 'H-361', 'Hetebrij, Willem', '400753', NULL, NULL, NULL, NULL
, NULL);



COMMIT;

--set echo on

DECLARE

  CURSOR c_cursor
     IS
        SELECT  *
        FROM    tmp
        WHERE   F1 is null
        ORDER BY 1,2,3,4,5,6,7,8,9;

  CURSOR c_cursor2 (pKostenplaats_omschrijving IN VARCHAR2)
     IS
        SELECT  kpn.prs_kostenplaats_key
        FROM    prs_kostenplaats kpn
        WHERE   INSTR (kpn.prs_kostenplaats_upper,UPPER(TRIM(pKostenplaats_omschrijving))) > 0
        AND     kpn.prs_kostenplaats_verwijder IS NULL;

  next_record                   c_cursor%ROWTYPE;
  next_record2                  c_cursor2%ROWTYPE;

  oracle_err_num                NUMBER;
  oracle_err_mes                VARCHAR2 (200);

  kostenplaatsgrp_key           NUMBER(10);
  kostenplaatsgrp_oms           VARCHAR2 (60);
  perslid_key                   NUMBER(10);

  v_errormsg                    VARCHAR2 (1024);
  v_errorhint                   VARCHAR2 (1024);
  v_count                       NUMBER;
  v_teller                      NUMBER(10);


BEGIN

  DELETE FROM imp_log WHERE imp_log_applicatie = 'CONN#678';

  v_teller := 0;

  FOR next_record IN c_cursor LOOP

    BEGIN -- >> doorloop alle records tmp

      v_teller := v_teller + 1;
      v_errorhint := ' <teller = '||to_char(v_teller)||'>';
      v_errormsg := 'INIT';
      v_errorhint := '';
      perslid_key := -1;
      kostenplaatsgrp_key := -1;
      kostenplaatsgrp_oms := '';

      v_errormsg := 'Eindverantwoordelijk oftwel 2-de fiatteur';
      IF (next_record.F7 IS NOT NULL) THEN

        v_errormsg := 'Bepalen Eindverantwoordelijk oftwel 2-de fiatteur';
        select p.prs_perslid_key, substr(LPAD(next_record.F7,7,'0') || ' - ' || p.prs_perslid_naam,1,60)
        into   perslid_key, kostenplaatsgrp_oms
        from   prs_perslid p
        where  p.prs_perslid_verwijder is null
        and    p.prs_perslid_nr = LPAD(next_record.F7,7,'0');

      END IF;

      v_errormsg := 'Bestaat de kostenplaats-groep?';

      select  count(*)
      into    v_count
      from    prs_kostenplaatsgrp
      where   upper(trim(prs_kostenplaatsgrp_oms)) = upper(trim(kostenplaatsgrp_oms));

      IF ((v_count = 0) and (next_record.F7 IS NOT NULL)) THEN

        v_errormsg := 'Kostenplaats-groep met omschrijving <' || kostenplaatsgrp_oms || '> toevoegen';

        INSERT INTO prs_kostenplaatsgrp
        (prs_kostenplaatsgrp_oms
        ,prs_perslid_key)
        VALUES
        (kostenplaatsgrp_oms
        ,perslid_key);

      END IF;

      IF (next_record.F7 IS NOT NULL) THEN

        v_errormsg := 'Bepalen prs_kostenplaatsgrp_key';

        select  prs_kostenplaatsgrp_key
        into    kostenplaatsgrp_key
        from    prs_kostenplaatsgrp
        where   upper(trim(prs_kostenplaatsgrp_oms)) = upper(trim(kostenplaatsgrp_oms));

      END IF;

      v_errormsg := 'FOR next_record2 IN c_cursor2(next_record.F3) LOOP';
      FOR next_record2 IN c_cursor2(next_record.F3) LOOP

            v_errormsg := 'Tabel prs_kostenplaats bijwerken ... maw budgethouder vastleggen';

            BEGIN

              v_errormsg := 'Bepalen Eindverantwoordelijk oftwel 2-de fiatteur';
              select p.prs_perslid_key
              into   perslid_key
              from   prs_perslid p
              where  p.prs_perslid_verwijder is null
              and    p.prs_perslid_nr = LPAD(next_record.F5,7,'0');

              v_errormsg := 'update  prs_kostenplaats';
              update  prs_kostenplaats
              set     prs_perslid_key = perslid_key
              ,       prs_kostenplaats_omschrijving = next_record.F2
              ,       prs_kostenplaatsgrp_key = DECODE(kostenplaatsgrp_key,-1,TO_NUMBER(NULL),kostenplaatsgrp_key)
              where   prs_kostenplaats_key = next_record2.prs_kostenplaats_key;

              EXCEPTION
                   WHEN OTHERS
                   THEN
                      oracle_err_num := SQLCODE;
                      oracle_err_mes := SUBSTR (SQLERRM, 1, 100);
                      v_errormsg :=
                         '(ORACLE error ' || oracle_err_num || '/' || oracle_err_mes
                         || ')';
            END;

      END LOOP;

      COMMIT; -- Geen fouten opgetreden, even comitten

      EXCEPTION WHEN OTHERS THEN

        rollback;

        oracle_err_num := SQLCODE;
        oracle_err_mes := SUBSTR (SQLERRM, 1, 100);
        v_errorhint := v_errorhint || ' {' || v_errormsg || '}';
        v_errormsg :=
           '(ORACLE error ' || to_char(oracle_err_num) || '/' || oracle_err_mes
           || ')';
        fac.imp_writelog ('CONN#678',
                          next_record.F5,
                          'E',
                          v_errormsg,
                          v_errorhint
                         );

        commit; -- Commit logging

    END; -- >> doorloop alle records tmp

  END LOOP;

  commit;

END;
/

-- show errors


commit;

spool off
