--
-- $Id$
--
-- Korte beschrijving wat het script doet
-- Kenmerkveld Klant kostenplaats (key 181) moet gevuld worden vanuit planon.
--
DEFINE thisfile = 'YASK#63182.SQL'
DEFINE dbuser   = '^YASK'

SET ECHO ON
SET DEFINE ON
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
WHENEVER SQLERROR CONTINUE;
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
SPOOL &fcltlogfile
WHENEVER SQLERROR EXIT;
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
WHENEVER SQLERROR CONTINUE;
PROMPT &fcltcusterr
SET DEFINE OFF

------ payload begin ------

DECLARE
BEGIN
    MLD.upsertmeldingkenmerk (181, 100, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 150, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 155, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 156, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 159, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 161, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 169, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 182, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 183, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 184, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 194, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 195, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 199, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 2, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 208, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 211, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 215, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 227, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 228, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 231, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 232, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 233, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 235, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 236, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 242, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 245, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 246, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 251, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 264, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 363, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 4, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 412, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 432, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 437, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 457, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 461, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 490, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 5, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 516, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 518, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 539, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 6, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 633, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 639, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 643, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 644, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 647, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 655, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 657, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 658, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 660, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 662, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 663, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 665, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 668, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 674, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 7, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 9, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 420, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 632, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 637, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 646, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 648, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 649, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 650, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 651, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 652, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 653, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 661, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 766, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 107, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 109, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 110, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 115, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 119, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 146, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 147, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 152, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 154, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 158, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 160, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 162, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 163, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 164, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 165, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 166, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 170, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 171, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 174, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 177, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 179, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 181, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 186, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 187, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 192, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 200, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 204, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 206, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 207, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 210, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 216, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 219, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 221, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 222, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 223, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 224, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 225, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 229, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 230, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 239, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 241, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 243, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 248, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 3, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 377, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 385, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 390, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 421, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 422, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 424, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 425, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 43, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 430, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 434, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 435, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 439, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 450, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 455, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 48, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 488, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 498, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 504, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 507, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 515, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 519, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 520, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 528, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 544, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 548, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 559, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 59, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 634, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 678, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 679, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 682, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 690, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 691, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 692, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 693, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 733, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 758, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 769, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 770, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 771, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 79, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 8, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 83, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 86, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 87, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 88, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 95, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 96, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 98, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 105, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 120, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 157, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 167, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 168, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 172, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 173, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 176, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 178, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 180, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 189, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 190, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 202, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 203, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 209, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 212, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 214, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 226, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 237, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 244, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 250, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 37, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 39, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 442, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 50, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 529, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 551, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 556, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 670, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 69, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 70, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 74, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 75, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 82, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 89, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 92, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 387, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 389, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 524, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 525, 'B1 - Regulier');
    MLD.upsertmeldingkenmerk (181, 247, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 218, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 765, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 213, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 10, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 238, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 642, 'B3 - Demand');
    MLD.upsertmeldingkenmerk (181, 249, 'B2 - Sorteer');
END;
/

CREATE TABLE yask_imp_opslag
(
    imp_opslag_key           NUMBER (10),
    alg_locatie_key          NUMBER (10),
    ins_srtdiscipline_key    NUMBER (10),
    ins_discipline_key       NUMBER (10),
    prs_kostensoort_key      NUMBER (10),
    opslag                   NUMBER (8, 4),
    ingangsdatum             DATE,
    einddatum                DATE,
    imp_opslag_aanmaak       DATE,
    imp_opslag_verwijder     DATE
);

------ payload end   ------

SET DEFINE OFF
BEGIN adm.systrackscriptId ('$Id$', 1); END;
/

COMMIT;
SET ECHO OFF
SPOOL OFF
SET DEFINE ON
PROMPT Logfile of this upgrade is: &fcltlogfile
