Add Bucket 1 CMS→pipekit modules (41 tables)

Full-reload modules for the CMS/DB2 tables migrated off /opt/sync, landing
in cms.*. Columns introspected fresh from DB2 (QSYS2.SYSCOLUMNS). Three large
tables use incremental merge ported from the legacy sync instead of full
reload: iprcctn/iprccto (date watermark on t8date/t7date), ffpdglr1 (fiscal-
period watermark via rprh join, keyed on btid).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Paul Trowbridge 2026-07-27 12:33:48 -04:00
parent c073e70114
commit 6a3ac0e436
82 changed files with 16338 additions and 0 deletions

162
config/modules/adrs.json Normal file
View File

@ -0,0 +1,162 @@
{
"name": "adrs",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.adrs",
"staging_table": "pipekit_staging.adrs",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Address Master 6.0",
"columns": [
{
"source_name": "QZADR",
"source_type": "NUMERIC(8,0)",
"dest_name": "qzadr",
"dest_type": "numeric(8,0)",
"description": "Address Number"
},
{
"source_name": "QZNAME",
"source_type": "CHAR(30)",
"dest_name": "qzname",
"dest_type": "text",
"description": "Name"
},
{
"source_name": "QZADR1",
"source_type": "CHAR(35)",
"dest_name": "qzadr1",
"dest_type": "text",
"description": "Address 1"
},
{
"source_name": "QZADR2",
"source_type": "CHAR(35)",
"dest_name": "qzadr2",
"dest_type": "text",
"description": "Address 2"
},
{
"source_name": "QZADR3",
"source_type": "CHAR(35)",
"dest_name": "qzadr3",
"dest_type": "text",
"description": "Address 3"
},
{
"source_name": "QZADR4",
"source_type": "CHAR(35)",
"dest_name": "qzadr4",
"dest_type": "text",
"description": "Address 4"
},
{
"source_name": "QZADR5",
"source_type": "CHAR(35)",
"dest_name": "qzadr5",
"dest_type": "text",
"description": "Address 5"
},
{
"source_name": "QZADR6",
"source_type": "CHAR(35)",
"dest_name": "qzadr6",
"dest_type": "text",
"description": "Address 6"
},
{
"source_name": "QZADR7",
"source_type": "CHAR(35)",
"dest_name": "qzadr7",
"dest_type": "text",
"description": "Address 7"
},
{
"source_name": "QZADR8",
"source_type": "CHAR(35)",
"dest_name": "qzadr8",
"dest_type": "text",
"description": "Address 8"
},
{
"source_name": "QZADR9",
"source_type": "CHAR(35)",
"dest_name": "qzadr9",
"dest_type": "text",
"description": "Address 9"
},
{
"source_name": "QZADR10",
"source_type": "CHAR(35)",
"dest_name": "qzadr10",
"dest_type": "text",
"description": "Address 10"
},
{
"source_name": "QZCITY",
"source_type": "CHAR(30)",
"dest_name": "qzcity",
"dest_type": "text",
"description": "City"
},
{
"source_name": "QZPROV",
"source_type": "CHAR(3)",
"dest_name": "qzprov",
"dest_type": "text",
"description": "Province /State Code"
},
{
"source_name": "QZPOST",
"source_type": "CHAR(10)",
"dest_name": "qzpost",
"dest_type": "text",
"description": "Postal Code/ZIP"
},
{
"source_name": "QZCRYC",
"source_type": "CHAR(3)",
"dest_name": "qzcryc",
"dest_type": "text",
"description": "Country Code"
},
{
"source_name": "QZCTRY",
"source_type": "CHAR(15)",
"dest_name": "qzctry",
"dest_type": "text",
"description": "Obsoleted"
},
{
"source_name": "QZPOOL",
"source_type": "CHAR(15)",
"dest_name": "qzpool",
"dest_type": "text",
"description": "Pool Point"
},
{
"source_name": "QZPHON",
"source_type": "CHAR(15)",
"dest_name": "qzphon",
"dest_type": "text",
"description": "Phone Number"
},
{
"source_name": "QZFAX",
"source_type": "CHAR(15)",
"dest_name": "qzfax",
"dest_type": "text",
"description": "Fax Number"
},
{
"source_name": "QZEMAIL",
"source_type": "CHAR(253)",
"dest_name": "qzemail",
"dest_type": "text",
"description": "Email Address"
}
],
"watermarks": [],
"hooks": []
}

23
config/modules/adrs.sql Normal file
View File

@ -0,0 +1,23 @@
SELECT
QZADR AS qzadr,
RTRIM(QZNAME) AS qzname,
RTRIM(QZADR1) AS qzadr1,
RTRIM(QZADR2) AS qzadr2,
RTRIM(QZADR3) AS qzadr3,
RTRIM(QZADR4) AS qzadr4,
RTRIM(QZADR5) AS qzadr5,
RTRIM(QZADR6) AS qzadr6,
RTRIM(QZADR7) AS qzadr7,
RTRIM(QZADR8) AS qzadr8,
RTRIM(QZADR9) AS qzadr9,
RTRIM(QZADR10) AS qzadr10,
RTRIM(QZCITY) AS qzcity,
RTRIM(QZPROV) AS qzprov,
RTRIM(QZPOST) AS qzpost,
RTRIM(QZCRYC) AS qzcryc,
RTRIM(QZCTRY) AS qzctry,
RTRIM(QZPOOL) AS qzpool,
RTRIM(QZPHON) AS qzphon,
RTRIM(QZFAX) AS qzfax,
RTRIM(QZEMAIL) AS qzemail
FROM LGDAT.ADRS

92
config/modules/color.json Normal file
View File

@ -0,0 +1,92 @@
{
"name": "color",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.color",
"staging_table": "pipekit_staging.color",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "color descriptions",
"columns": [
{
"source_name": "COLCODE",
"source_type": "CHAR(3)",
"dest_name": "colcode",
"dest_type": "text",
"description": "COLCODE"
},
{
"source_name": "COLDESC",
"source_type": "CHAR(20)",
"dest_name": "coldesc",
"dest_type": "text",
"description": "COLDESC"
},
{
"source_name": "COLPANT",
"source_type": "CHAR(10)",
"dest_name": "colpant",
"dest_type": "text",
"description": "COLPANT"
},
{
"source_name": "COLOREF",
"source_type": "CHAR(20)",
"dest_name": "coloref",
"dest_type": "text",
"description": "COLOREF"
},
{
"source_name": "COLFTRN",
"source_type": "CHAR(15)",
"dest_name": "colftrn",
"dest_type": "text",
"description": "COLFTRN"
},
{
"source_name": "COLSTAT",
"source_type": "CHAR(1)",
"dest_name": "colstat",
"dest_type": "text",
"description": "COLSTAT"
},
{
"source_name": "COLTIER",
"source_type": "CHAR(1)",
"dest_name": "coltier",
"dest_type": "text",
"description": "COLTIER"
},
{
"source_name": "COLGRP",
"source_type": "CHAR(1)",
"dest_name": "colgrp",
"dest_type": "text",
"description": "COLGRP"
},
{
"source_name": "COLRETL",
"source_type": "CHAR(1)",
"dest_name": "colretl",
"dest_type": "text",
"description": "COLRETL"
},
{
"source_name": "COLRGB",
"source_type": "CHAR(15)",
"dest_name": "colrgb",
"dest_type": "text",
"description": "COLRGB"
},
{
"source_name": "COLRHX",
"source_type": "CHAR(15)",
"dest_name": "colrhx",
"dest_type": "text",
"description": "COLRHX"
}
],
"watermarks": [],
"hooks": []
}

13
config/modules/color.sql Normal file
View File

@ -0,0 +1,13 @@
SELECT
RTRIM(COLCODE) AS colcode,
RTRIM(COLDESC) AS coldesc,
RTRIM(COLPANT) AS colpant,
RTRIM(COLOREF) AS coloref,
RTRIM(COLFTRN) AS colftrn,
RTRIM(COLSTAT) AS colstat,
RTRIM(COLTIER) AS coltier,
RTRIM(COLGRP) AS colgrp,
RTRIM(COLRETL) AS colretl,
RTRIM(COLRGB) AS colrgb,
RTRIM(COLRHX) AS colrhx
FROM "CMS.CUSLG".COLOR

View File

@ -0,0 +1,50 @@
{
"name": "colorb",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.colorb",
"staging_table": "pipekit_staging.colorb",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Used in UPDblendr",
"columns": [
{
"source_name": "CLPLNT",
"source_type": "CHAR(3)",
"dest_name": "clplnt",
"dest_type": "text",
"description": "CLPLNT"
},
{
"source_name": "CLCOLOR",
"source_type": "CHAR(3)",
"dest_name": "clcolor",
"dest_type": "text",
"description": "CLCOLOR"
},
{
"source_name": "CLDEPT",
"source_type": "CHAR(5)",
"dest_name": "cldept",
"dest_type": "text",
"description": "CLDEPT"
},
{
"source_name": "CLPART",
"source_type": "CHAR(20)",
"dest_name": "clpart",
"dest_type": "text",
"description": "CLPART"
},
{
"source_name": "CLPERC",
"source_type": "DECIMAL(2,0)",
"dest_name": "clperc",
"dest_type": "numeric(2,0)",
"description": "CLPERC"
}
],
"watermarks": [],
"hooks": []
}

View File

@ -0,0 +1,7 @@
SELECT
RTRIM(CLPLNT) AS clplnt,
RTRIM(CLCOLOR) AS clcolor,
RTRIM(CLDEPT) AS cldept,
RTRIM(CLPART) AS clpart,
CLPERC AS clperc
FROM "CMS.CUSLG".COLORB

View File

@ -0,0 +1,29 @@
{
"name": "colortier",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.colortier",
"staging_table": "pipekit_staging.colortier",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Color Tier",
"columns": [
{
"source_name": "CLTIER",
"source_type": "CHAR(1)",
"dest_name": "cltier",
"dest_type": "text",
"description": "CLTIER"
},
{
"source_name": "CLDESC",
"source_type": "CHAR(30)",
"dest_name": "cldesc",
"dest_type": "text",
"description": "CLDESC"
}
],
"watermarks": [],
"hooks": []
}

View File

@ -0,0 +1,4 @@
SELECT
RTRIM(CLTIER) AS cltier,
RTRIM(CLDESC) AS cldesc
FROM "CMS.CUSLG".COLORTIER

211
config/modules/cret.json Normal file
View File

@ -0,0 +1,211 @@
{
"name": "cret",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.cret",
"staging_table": "pipekit_staging.cret",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Currency Exchange Master 6.0",
"columns": [
{
"source_name": "B86COMN",
"source_type": "NUMERIC(2,0)",
"dest_name": "b86comn",
"dest_type": "numeric(2,0)",
"description": "Company Number"
},
{
"source_name": "B86CURC",
"source_type": "CHAR(2)",
"dest_name": "b86curc",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "B86RTTY",
"source_type": "CHAR(1)",
"dest_name": "b86rtty",
"dest_type": "text",
"description": "Rate Type"
},
{
"source_name": "B86EFYY",
"source_type": "NUMERIC(4,0)",
"dest_name": "b86efyy",
"dest_type": "numeric(4,0)",
"description": "Effective From Fiscal Year"
},
{
"source_name": "B86EFPP",
"source_type": "NUMERIC(2,0)",
"dest_name": "b86efpp",
"dest_type": "numeric(2,0)",
"description": "Effective From Fiscal Period"
},
{
"source_name": "B86EDAT",
"source_type": "DATE",
"dest_name": "b86edat",
"dest_type": "date",
"description": "Effective From Calendar Date"
},
{
"source_name": "B86SRTE",
"source_type": "NUMERIC(11,6)",
"dest_name": "b86srte",
"dest_type": "numeric(11,6)",
"description": "Currency Exchange Rate"
},
{
"source_name": "B86CUSR",
"source_type": "CHAR(10)",
"dest_name": "b86cusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "B86CDAT",
"source_type": "DATE",
"dest_name": "b86cdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "B86CTME",
"source_type": "TIME",
"dest_name": "b86ctme",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "B86UUSR",
"source_type": "CHAR(10)",
"dest_name": "b86uusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "B86UDAT",
"source_type": "DATE",
"dest_name": "b86udat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "B86UTME",
"source_type": "TIME",
"dest_name": "b86utme",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "B86FUT1",
"source_type": "CHAR(3)",
"dest_name": "b86fut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT2",
"source_type": "CHAR(3)",
"dest_name": "b86fut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT3",
"source_type": "CHAR(10)",
"dest_name": "b86fut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT4",
"source_type": "CHAR(10)",
"dest_name": "b86fut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT5",
"source_type": "CHAR(20)",
"dest_name": "b86fut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT6",
"source_type": "CHAR(20)",
"dest_name": "b86fut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FUT7",
"source_type": "NUMERIC(15,5)",
"dest_name": "b86fut7",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "B86FUT8",
"source_type": "NUMERIC(15,5)",
"dest_name": "b86fut8",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "B86FUT9",
"source_type": "NUMERIC(11,6)",
"dest_name": "b86fut9",
"dest_type": "numeric(11,6)",
"description": "Future Use"
},
{
"source_name": "B86FUTA",
"source_type": "NUMERIC(11,6)",
"dest_name": "b86futa",
"dest_type": "numeric(11,6)",
"description": "Future Use"
},
{
"source_name": "B86FLG1",
"source_type": "CHAR(1)",
"dest_name": "b86flg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FLG2",
"source_type": "CHAR(1)",
"dest_name": "b86flg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FLG3",
"source_type": "CHAR(1)",
"dest_name": "b86flg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FLG4",
"source_type": "CHAR(1)",
"dest_name": "b86flg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "B86FLG5",
"source_type": "CHAR(1)",
"dest_name": "b86flg5",
"dest_type": "text",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

30
config/modules/cret.sql Normal file
View File

@ -0,0 +1,30 @@
SELECT
B86COMN AS b86comn,
RTRIM(B86CURC) AS b86curc,
RTRIM(B86RTTY) AS b86rtty,
B86EFYY AS b86efyy,
B86EFPP AS b86efpp,
CASE WHEN B86EDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86EDAT END AS b86edat,
B86SRTE AS b86srte,
RTRIM(B86CUSR) AS b86cusr,
CASE WHEN B86CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86CDAT END AS b86cdat,
B86CTME AS b86ctme,
RTRIM(B86UUSR) AS b86uusr,
CASE WHEN B86UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE B86UDAT END AS b86udat,
B86UTME AS b86utme,
RTRIM(B86FUT1) AS b86fut1,
RTRIM(B86FUT2) AS b86fut2,
RTRIM(B86FUT3) AS b86fut3,
RTRIM(B86FUT4) AS b86fut4,
RTRIM(B86FUT5) AS b86fut5,
RTRIM(B86FUT6) AS b86fut6,
B86FUT7 AS b86fut7,
B86FUT8 AS b86fut8,
B86FUT9 AS b86fut9,
B86FUTA AS b86futa,
RTRIM(B86FLG1) AS b86flg1,
RTRIM(B86FLG2) AS b86flg2,
RTRIM(B86FLG3) AS b86flg3,
RTRIM(B86FLG4) AS b86flg4,
RTRIM(B86FLG5) AS b86flg5
FROM LGDAT.CRET

309
config/modules/depts.json Normal file
View File

@ -0,0 +1,309 @@
{
"name": "depts",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.depts",
"staging_table": "pipekit_staging.depts",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Department Master File 6.1",
"columns": [
{
"source_name": "AADEPT",
"source_type": "CHAR(5)",
"dest_name": "aadept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "AABLNK",
"source_type": "CHAR(8)",
"dest_name": "aablnk",
"dest_type": "text",
"description": "AABLNK"
},
{
"source_name": "AADNME",
"source_type": "CHAR(25)",
"dest_name": "aadnme",
"dest_type": "text",
"description": "Department Name"
},
{
"source_name": "AASTDR",
"source_type": "NUMERIC(8,2)",
"dest_name": "aastdr",
"dest_type": "numeric(8,2)",
"description": "Default Labour Rate"
},
{
"source_name": "AABRDR",
"source_type": "NUMERIC(8,2)",
"dest_name": "aabrdr",
"dest_type": "numeric(8,2)",
"description": "Default Fixed Burden Rate"
},
{
"source_name": "AAMACH",
"source_type": "NUMERIC(2,0)",
"dest_name": "aamach",
"dest_type": "numeric(2,0)",
"description": "Default # of Mach."
},
{
"source_name": "AABRDP",
"source_type": "NUMERIC(4,0)",
"dest_name": "aabrdp",
"dest_type": "numeric(4,0)",
"description": "Default Fixed Burden %"
},
{
"source_name": "AADFTC",
"source_type": "NUMERIC(4,2)",
"dest_name": "aadftc",
"dest_type": "numeric(4,2)",
"description": "Default Capacity"
},
{
"source_name": "AASTIM",
"source_type": "TIME",
"dest_name": "aastim",
"dest_type": "time",
"description": "Starting Time"
},
{
"source_name": "AAVBRD",
"source_type": "NUMERIC(8,2)",
"dest_name": "aavbrd",
"dest_type": "numeric(8,2)",
"description": "Default Variable Burden Rate"
},
{
"source_name": "AAFRML",
"source_type": "CHAR(6)",
"dest_name": "aafrml",
"dest_type": "text",
"description": "Draw Loc."
},
{
"source_name": "AARCVL",
"source_type": "CHAR(6)",
"dest_name": "aarcvl",
"dest_type": "text",
"description": "Receive Loc."
},
{
"source_name": "AAINSP",
"source_type": "CHAR(5)",
"dest_name": "aainsp",
"dest_type": "text",
"description": "Default Inspector Code"
},
{
"source_name": "AAPLNT",
"source_type": "CHAR(3)",
"dest_name": "aaplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "AAOSRV",
"source_type": "CHAR(1)",
"dest_name": "aaosrv",
"dest_type": "text",
"description": "Outside Service"
},
{
"source_name": "AAVBRP",
"source_type": "NUMERIC(4,0)",
"dest_name": "aavbrp",
"dest_type": "numeric(4,0)",
"description": "Default Variable Burden %"
},
{
"source_name": "AAWPDR",
"source_type": "CHAR(6)",
"dest_name": "aawpdr",
"dest_type": "text",
"description": "WIP Draw From"
},
{
"source_name": "AAWPRV",
"source_type": "CHAR(6)",
"dest_name": "aawprv",
"dest_type": "text",
"description": "WIP Receive To"
},
{
"source_name": "AAMAXH",
"source_type": "NUMERIC(3,0)",
"dest_name": "aamaxh",
"dest_type": "numeric(3,0)",
"description": "Maximum Hours /Day"
},
{
"source_name": "AAUSLF",
"source_type": "CHAR(1)",
"dest_name": "aauslf",
"dest_type": "text",
"description": "Use Labour Fixed"
},
{
"source_name": "AAUSLV",
"source_type": "CHAR(1)",
"dest_name": "aauslv",
"dest_type": "text",
"description": "Use Labour Variable"
},
{
"source_name": "AACUSR",
"source_type": "CHAR(10)",
"dest_name": "aacusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "AACDAT",
"source_type": "DATE",
"dest_name": "aacdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "AACTIM",
"source_type": "TIME",
"dest_name": "aactim",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "AAUUSR",
"source_type": "CHAR(10)",
"dest_name": "aauusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "AAUDAT",
"source_type": "DATE",
"dest_name": "aaudat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "AAUTIM",
"source_type": "TIME",
"dest_name": "aautim",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "AAFUT1",
"source_type": "CHAR(3)",
"dest_name": "aafut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFUT2",
"source_type": "CHAR(3)",
"dest_name": "aafut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFUT3",
"source_type": "CHAR(10)",
"dest_name": "aafut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFUT4",
"source_type": "CHAR(10)",
"dest_name": "aafut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFUT5",
"source_type": "CHAR(20)",
"dest_name": "aafut5",
"dest_type": "text",
"description": "Mattec Dept code"
},
{
"source_name": "AAFUT6",
"source_type": "CHAR(20)",
"dest_name": "aafut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFUT7",
"source_type": "NUMERIC(15,5)",
"dest_name": "aafut7",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "AAFLG1",
"source_type": "CHAR(1)",
"dest_name": "aaflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFLG2",
"source_type": "CHAR(1)",
"dest_name": "aaflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFLG3",
"source_type": "CHAR(1)",
"dest_name": "aaflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFLG4",
"source_type": "CHAR(1)",
"dest_name": "aaflg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAFLG5",
"source_type": "CHAR(1)",
"dest_name": "aaflg5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AAVCOD",
"source_type": "CHAR(2)",
"dest_name": "aavcod",
"dest_type": "text",
"description": "Visible Dept"
},
{
"source_name": "AALBPST",
"source_type": "CHAR(1)",
"dest_name": "aalbpst",
"dest_type": "text",
"description": "Auto Post Labour centric Batches"
},
{
"source_name": "AAVRPR",
"source_type": "CHAR(1)",
"dest_name": "aavrpr",
"dest_type": "text",
"description": "Vendor Reports Prod."
}
],
"watermarks": [],
"hooks": []
}

44
config/modules/depts.sql Normal file
View File

@ -0,0 +1,44 @@
SELECT
RTRIM(AADEPT) AS aadept,
RTRIM(AABLNK) AS aablnk,
RTRIM(AADNME) AS aadnme,
AASTDR AS aastdr,
AABRDR AS aabrdr,
AAMACH AS aamach,
AABRDP AS aabrdp,
AADFTC AS aadftc,
AASTIM AS aastim,
AAVBRD AS aavbrd,
RTRIM(AAFRML) AS aafrml,
RTRIM(AARCVL) AS aarcvl,
RTRIM(AAINSP) AS aainsp,
RTRIM(AAPLNT) AS aaplnt,
RTRIM(AAOSRV) AS aaosrv,
AAVBRP AS aavbrp,
RTRIM(AAWPDR) AS aawpdr,
RTRIM(AAWPRV) AS aawprv,
AAMAXH AS aamaxh,
RTRIM(AAUSLF) AS aauslf,
RTRIM(AAUSLV) AS aauslv,
RTRIM(AACUSR) AS aacusr,
CASE WHEN AACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AACDAT END AS aacdat,
AACTIM AS aactim,
RTRIM(AAUUSR) AS aauusr,
CASE WHEN AAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AAUDAT END AS aaudat,
AAUTIM AS aautim,
RTRIM(AAFUT1) AS aafut1,
RTRIM(AAFUT2) AS aafut2,
RTRIM(AAFUT3) AS aafut3,
RTRIM(AAFUT4) AS aafut4,
RTRIM(AAFUT5) AS aafut5,
RTRIM(AAFUT6) AS aafut6,
AAFUT7 AS aafut7,
RTRIM(AAFLG1) AS aaflg1,
RTRIM(AAFLG2) AS aaflg2,
RTRIM(AAFLG3) AS aaflg3,
RTRIM(AAFLG4) AS aaflg4,
RTRIM(AAFLG5) AS aaflg5,
RTRIM(AAVCOD) AS aavcod,
RTRIM(AALBPST) AS aalbpst,
RTRIM(AAVRPR) AS aavrpr
FROM LGDAT.DEPTS

View File

@ -0,0 +1,162 @@
{
"name": "ffpdglr1",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ffpdglr1",
"staging_table": "pipekit_staging.ffpdglr1",
"merge_strategy": "incremental",
"merge_key": "btid",
"enabled": 1,
"dest_description": "",
"columns": [
{
"source_name": "SRCE",
"source_type": "CHAR(4)",
"dest_name": "srce",
"dest_type": "text",
"description": "SRCE"
},
{
"source_name": "WRKO",
"source_type": "VARCHAR(10)",
"dest_name": "wrko",
"dest_type": "text",
"description": "WRKO"
},
{
"source_name": "BTID",
"source_type": "INTEGER",
"dest_name": "btid",
"dest_type": "integer",
"description": "BTID"
},
{
"source_name": "ENT#",
"source_type": "INTEGER",
"dest_name": "ent#",
"dest_type": "integer",
"description": "ENT#"
},
{
"source_name": "SEQ#",
"source_type": "INTEGER",
"dest_name": "seq#",
"dest_type": "integer",
"description": "SEQ#"
},
{
"source_name": "PART",
"source_type": "VARCHAR(20)",
"dest_name": "part",
"dest_type": "text",
"description": "PART"
},
{
"source_name": "RPLN",
"source_type": "CHAR(1)",
"dest_name": "rpln",
"dest_type": "text",
"description": "RPLN"
},
{
"source_name": "PQTY",
"source_type": "DECIMAL(20,5)",
"dest_name": "pqty",
"dest_type": "numeric(20,5)",
"description": "PQTY"
},
{
"source_name": "ARSC",
"source_type": "VARCHAR(5)",
"dest_name": "arsc",
"dest_type": "text",
"description": "ARSC"
},
{
"source_name": "ADEP",
"source_type": "VARCHAR(5)",
"dest_name": "adep",
"dest_type": "text",
"description": "ADEP"
},
{
"source_name": "ACTN",
"source_type": "VARCHAR(10)",
"dest_name": "actn",
"dest_type": "text",
"description": "ACTN"
},
{
"source_name": "ACCT",
"source_type": "CHAR(12)",
"dest_name": "acct",
"dest_type": "text",
"description": "ACCT"
},
{
"source_name": "AMNT",
"source_type": "DECIMAL(20,2)",
"dest_name": "amnt",
"dest_type": "numeric(20,2)",
"description": "AMNT"
},
{
"source_name": "SRSC",
"source_type": "VARCHAR(5)",
"dest_name": "srsc",
"dest_type": "text",
"description": "SRSC"
},
{
"source_name": "RHRS",
"source_type": "DECIMAL(20,5)",
"dest_name": "rhrs",
"dest_type": "numeric(20,5)",
"description": "RHRS"
},
{
"source_name": "RCRW",
"source_type": "DECIMAL(20,5)",
"dest_name": "rcrw",
"dest_type": "numeric(20,5)",
"description": "RCRW"
},
{
"source_name": "SHRS",
"source_type": "DECIMAL(20,5)",
"dest_name": "shrs",
"dest_type": "numeric(20,5)",
"description": "SHRS"
},
{
"source_name": "SCRW",
"source_type": "DECIMAL(20,5)",
"dest_name": "scrw",
"dest_type": "numeric(20,5)",
"description": "SCRW"
},
{
"source_name": "RRAT",
"source_type": "DECIMAL(20,5)",
"dest_name": "rrat",
"dest_type": "numeric(20,5)",
"description": "RRAT"
},
{
"source_name": "RSIZ",
"source_type": "DECIMAL(20,5)",
"dest_name": "rsiz",
"dest_type": "numeric(20,5)",
"description": "RSIZ"
}
],
"watermarks": [
{
"name": "ffpdglr1_wm",
"connection": "usmidsap02",
"resolver_sql": "SELECT COALESCE(format('%L', MAX(to_char(nwfsyy,'00FM')||to_char(nwfspp,'00FM'))), '''1501''') FROM cms.rprh",
"default_value": "'1501'"
}
],
"hooks": []
}

View File

@ -0,0 +1,24 @@
SELECT
RTRIM(SRCE) AS srce,
RTRIM(WRKO) AS wrko,
BTID AS btid,
"ENT#" AS "ent#",
"SEQ#" AS "seq#",
RTRIM(PART) AS part,
RTRIM(RPLN) AS rpln,
PQTY AS pqty,
RTRIM(ARSC) AS arsc,
RTRIM(ADEP) AS adep,
RTRIM(ACTN) AS actn,
RTRIM(ACCT) AS acct,
AMNT AS amnt,
RTRIM(SRSC) AS srsc,
RHRS AS rhrs,
RCRW AS rcrw,
SHRS AS shrs,
SCRW AS scrw,
RRAT AS rrat,
RSIZ AS rsiz
FROM FANALDEV.FFPDGLR1
INNER JOIN LGDAT.RPRH ON NWBTID = BTID
WHERE DIGITS(NWFSYY)||DIGITS(NWFSPP) >= {ffpdglr1_wm}

225
config/modules/fresre.json Normal file
View File

@ -0,0 +1,225 @@
{
"name": "fresre",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.fresre",
"staging_table": "pipekit_staging.fresre",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Resource equipment Master-Future costs 6.1",
"columns": [
{
"source_name": "R9DEPT",
"source_type": "CHAR(5)",
"dest_name": "r9dept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "R9RESC",
"source_type": "CHAR(5)",
"dest_name": "r9resc",
"dest_type": "text",
"description": "Resource Code"
},
{
"source_name": "R9BRDR",
"source_type": "NUMERIC(8,2)",
"dest_name": "r9brdr",
"dest_type": "numeric(8,2)",
"description": "Fixed Burden Rate"
},
{
"source_name": "R9CREW",
"source_type": "NUMERIC(2,0)",
"dest_name": "r9crew",
"dest_type": "numeric(2,0)",
"description": "Default Crew Size"
},
{
"source_name": "R9BRDP",
"source_type": "NUMERIC(4,0)",
"dest_name": "r9brdp",
"dest_type": "numeric(4,0)",
"description": "Fixed Burden %"
},
{
"source_name": "R9LABS",
"source_type": "NUMERIC(8,2)",
"dest_name": "r9labs",
"dest_type": "numeric(8,2)",
"description": "Set-up Labour Rate"
},
{
"source_name": "R9LABR",
"source_type": "NUMERIC(8,2)",
"dest_name": "r9labr",
"dest_type": "numeric(8,2)",
"description": "Run Labour Rate"
},
{
"source_name": "R9VBRD",
"source_type": "NUMERIC(8,2)",
"dest_name": "r9vbrd",
"dest_type": "numeric(8,2)",
"description": "Variable Burden Rate"
},
{
"source_name": "R9BDVP",
"source_type": "NUMERIC(4,0)",
"dest_name": "r9bdvp",
"dest_type": "numeric(4,0)",
"description": "Variable Burden %"
},
{
"source_name": "R9CDRC",
"source_type": "CHAR(10)",
"dest_name": "r9cdrc",
"dest_type": "text",
"description": "Burden Cost Driver Code"
},
{
"source_name": "R9CDRF",
"source_type": "NUMERIC(15,5)",
"dest_name": "r9cdrf",
"dest_type": "numeric(15,5)",
"description": "Driver Rate Fixed Burden"
},
{
"source_name": "R9CDRV",
"source_type": "NUMERIC(15,5)",
"dest_name": "r9cdrv",
"dest_type": "numeric(15,5)",
"description": "Driver Rate Variable Burden"
},
{
"source_name": "R9CDUM",
"source_type": "CHAR(3)",
"dest_name": "r9cdum",
"dest_type": "text",
"description": "Driver Rate Unit"
},
{
"source_name": "R9USLF",
"source_type": "CHAR(1)",
"dest_name": "r9uslf",
"dest_type": "text",
"description": "Use Labour Fixed"
},
{
"source_name": "R9USLV",
"source_type": "CHAR(1)",
"dest_name": "r9uslv",
"dest_type": "text",
"description": "Use Labour Variable"
},
{
"source_name": "R9PLNT",
"source_type": "CHAR(3)",
"dest_name": "r9plnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "R9FUT1",
"source_type": "CHAR(10)",
"dest_name": "r9fut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT2",
"source_type": "CHAR(10)",
"dest_name": "r9fut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT3",
"source_type": "CHAR(10)",
"dest_name": "r9fut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT4",
"source_type": "CHAR(20)",
"dest_name": "r9fut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT5",
"source_type": "CHAR(30)",
"dest_name": "r9fut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT6",
"source_type": "NUMERIC(15,5)",
"dest_name": "r9fut6",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "R9FUT7",
"source_type": "CHAR(3)",
"dest_name": "r9fut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT8",
"source_type": "CHAR(1)",
"dest_name": "r9fut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUT9",
"source_type": "CHAR(1)",
"dest_name": "r9fut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUTA",
"source_type": "CHAR(1)",
"dest_name": "r9futa",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUTB",
"source_type": "CHAR(1)",
"dest_name": "r9futb",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9FUTC",
"source_type": "CHAR(1)",
"dest_name": "r9futc",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "R9VKTR",
"source_type": "CHAR(10)",
"dest_name": "r9vktr",
"dest_type": "text",
"description": "Virtual Kanban Time-On-Hand Range Code"
},
{
"source_name": "R9VKTY",
"source_type": "CHAR(1)",
"dest_name": "r9vkty",
"dest_type": "text",
"description": "Virtual Kanban Type"
}
],
"watermarks": [],
"hooks": []
}

32
config/modules/fresre.sql Normal file
View File

@ -0,0 +1,32 @@
SELECT
RTRIM(R9DEPT) AS r9dept,
RTRIM(R9RESC) AS r9resc,
R9BRDR AS r9brdr,
R9CREW AS r9crew,
R9BRDP AS r9brdp,
R9LABS AS r9labs,
R9LABR AS r9labr,
R9VBRD AS r9vbrd,
R9BDVP AS r9bdvp,
RTRIM(R9CDRC) AS r9cdrc,
R9CDRF AS r9cdrf,
R9CDRV AS r9cdrv,
RTRIM(R9CDUM) AS r9cdum,
RTRIM(R9USLF) AS r9uslf,
RTRIM(R9USLV) AS r9uslv,
RTRIM(R9PLNT) AS r9plnt,
RTRIM(R9FUT1) AS r9fut1,
RTRIM(R9FUT2) AS r9fut2,
RTRIM(R9FUT3) AS r9fut3,
RTRIM(R9FUT4) AS r9fut4,
RTRIM(R9FUT5) AS r9fut5,
R9FUT6 AS r9fut6,
RTRIM(R9FUT7) AS r9fut7,
RTRIM(R9FUT8) AS r9fut8,
RTRIM(R9FUT9) AS r9fut9,
RTRIM(R9FUTA) AS r9futa,
RTRIM(R9FUTB) AS r9futb,
RTRIM(R9FUTC) AS r9futc,
RTRIM(R9VKTR) AS r9vktr,
RTRIM(R9VKTY) AS r9vkty
FROM LGDAT.FRESRE

267
config/modules/ftcstm.json Normal file
View File

@ -0,0 +1,267 @@
{
"name": "ftcstm",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ftcstm",
"staging_table": "pipekit_staging.ftcstm",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Future Inventory Cost - manufactured 6.0",
"columns": [
{
"source_name": "CNPART",
"source_type": "CHAR(20)",
"dest_name": "cnpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "CNLABS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnlabs",
"dest_type": "numeric(13,5)",
"description": "Labour Standard"
},
{
"source_name": "CNMATS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnmats",
"dest_type": "numeric(13,5)",
"description": "Material Standard"
},
{
"source_name": "CNBURS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnburs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard"
},
{
"source_name": "CNLABA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnlaba",
"dest_type": "numeric(13,5)",
"description": "Labour Actual"
},
{
"source_name": "CNMATA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnmata",
"dest_type": "numeric(13,5)",
"description": "Material Actual"
},
{
"source_name": "CNBURA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbura",
"dest_type": "numeric(13,5)",
"description": "Burden Actual"
},
{
"source_name": "CNLABV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnlabv",
"dest_type": "numeric(13,5)",
"description": "Labour Average"
},
{
"source_name": "CNMATV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnmatv",
"dest_type": "numeric(13,5)",
"description": "Material Average"
},
{
"source_name": "CNBURV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnburv",
"dest_type": "numeric(13,5)",
"description": "Burden Average"
},
{
"source_name": "CNTPTD",
"source_type": "DECIMAL(11,0)",
"dest_name": "cntptd",
"dest_type": "numeric(11,0)",
"description": "Total Prod. To Date"
},
{
"source_name": "CNSDAT",
"source_type": "DATE",
"dest_name": "cnsdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "CNSTCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnstcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "CNACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnaccs",
"dest_type": "numeric(13,5)",
"description": "Actual Cost"
},
{
"source_name": "CNAVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnavcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "CNSTOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnstoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Standard)"
},
{
"source_name": "CNACOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnacoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Actual)"
},
{
"source_name": "CNAVOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnavoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Average)"
},
{
"source_name": "CNSQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cnsqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "CNAQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cnaqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "CNPTYP",
"source_type": "CHAR(1)",
"dest_name": "cnptyp",
"dest_type": "text",
"description": "Part Type M"
},
{
"source_name": "CNBRFS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrfs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard (Fixed)"
},
{
"source_name": "CNBRVS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrvs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard (Var)"
},
{
"source_name": "CNBRFA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrfa",
"dest_type": "numeric(13,5)",
"description": "Burden Actual (Fixed)"
},
{
"source_name": "CNBRVA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrva",
"dest_type": "numeric(13,5)",
"description": "Burden Actual (Var)"
},
{
"source_name": "CNBRFV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrfv",
"dest_type": "numeric(13,5)",
"description": "Burden Average (Fixed)"
},
{
"source_name": "CNBRVV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cnbrvv",
"dest_type": "numeric(13,5)",
"description": "Burden Average (Var)"
},
{
"source_name": "CNPLNT",
"source_type": "CHAR(3)",
"dest_name": "cnplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "CNFUT1",
"source_type": "CHAR(3)",
"dest_name": "cnfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CNFUT2",
"source_type": "CHAR(10)",
"dest_name": "cnfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CNFUT3",
"source_type": "CHAR(20)",
"dest_name": "cnfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CNFUT4",
"source_type": "NUMERIC(15,0)",
"dest_name": "cnfut4",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CNFUT5",
"source_type": "NUMERIC(15,0)",
"dest_name": "cnfut5",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CNFLG1",
"source_type": "CHAR(1)",
"dest_name": "cnflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CNFLG2",
"source_type": "CHAR(1)",
"dest_name": "cnflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CNFLG3",
"source_type": "CHAR(1)",
"dest_name": "cnflg3",
"dest_type": "text",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

38
config/modules/ftcstm.sql Normal file
View File

@ -0,0 +1,38 @@
SELECT
RTRIM(CNPART) AS cnpart,
CNLABS AS cnlabs,
CNMATS AS cnmats,
CNBURS AS cnburs,
CNLABA AS cnlaba,
CNMATA AS cnmata,
CNBURA AS cnbura,
CNLABV AS cnlabv,
CNMATV AS cnmatv,
CNBURV AS cnburv,
CNTPTD AS cntptd,
CASE WHEN CNSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CNSDAT END AS cnsdat,
CNSTCS AS cnstcs,
CNACCS AS cnaccs,
CNAVCS AS cnavcs,
CNSTOC AS cnstoc,
CNACOC AS cnacoc,
CNAVOC AS cnavoc,
CNSQTY AS cnsqty,
CNAQTY AS cnaqty,
RTRIM(CNPTYP) AS cnptyp,
CNBRFS AS cnbrfs,
CNBRVS AS cnbrvs,
CNBRFA AS cnbrfa,
CNBRVA AS cnbrva,
CNBRFV AS cnbrfv,
CNBRVV AS cnbrvv,
RTRIM(CNPLNT) AS cnplnt,
RTRIM(CNFUT1) AS cnfut1,
RTRIM(CNFUT2) AS cnfut2,
RTRIM(CNFUT3) AS cnfut3,
CNFUT4 AS cnfut4,
CNFUT5 AS cnfut5,
RTRIM(CNFLG1) AS cnflg1,
RTRIM(CNFLG2) AS cnflg2,
RTRIM(CNFLG3) AS cnflg3
FROM LGDAT.FTCSTM

358
config/modules/ftcstp.json Normal file
View File

@ -0,0 +1,358 @@
{
"name": "ftcstp",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ftcstp",
"staging_table": "pipekit_staging.ftcstp",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Future Inventory Cost - Purchased Parts 6.0",
"columns": [
{
"source_name": "COPART",
"source_type": "CHAR(20)",
"dest_name": "copart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "COLUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coluc",
"dest_type": "numeric(13,5)",
"description": "Last Unit Cost"
},
{
"source_name": "COLCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "colcc",
"dest_type": "numeric(13,5)",
"description": "Last Currency Cost"
},
{
"source_name": "COLFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "colfc",
"dest_type": "numeric(13,5)",
"description": "Last Freight Cost"
},
{
"source_name": "COLDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coldc",
"dest_type": "numeric(13,5)",
"description": "Last Duty Cost"
},
{
"source_name": "COL1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "col1c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-1 Cost"
},
{
"source_name": "COL2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "col2c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-2 Cost"
},
{
"source_name": "COSUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosuc",
"dest_type": "numeric(13,5)",
"description": "Standard Unit Cost"
},
{
"source_name": "COSCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coscc",
"dest_type": "numeric(13,5)",
"description": "Standard Currency Cost"
},
{
"source_name": "COSFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosfc",
"dest_type": "numeric(13,5)",
"description": "Standard Freight Cost"
},
{
"source_name": "COSDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cosdc",
"dest_type": "numeric(13,5)",
"description": "Standard Duty Cost"
},
{
"source_name": "COS1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "cos1c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-1 Cost"
},
{
"source_name": "COS2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "cos2c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-2 Cost"
},
{
"source_name": "COSCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "coscr",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "COLCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "colcr",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "COSDAT",
"source_type": "DATE",
"dest_name": "cosdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "COSTCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "costcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "COACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "coaccs",
"dest_type": "numeric(13,5)",
"description": "Last Actual Cost"
},
{
"source_name": "COAVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "COSDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "cosdr",
"dest_type": "numeric(8,4)",
"description": "Standard Duty Rate"
},
{
"source_name": "COS1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "cos1r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-1 Rate"
},
{
"source_name": "COS2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "cos2r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-2 Rate"
},
{
"source_name": "COLDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "coldr",
"dest_type": "numeric(8,4)",
"description": "Last Duty Rate"
},
{
"source_name": "COL1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "col1r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-1 Rate"
},
{
"source_name": "COL2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "col2r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-2 Rate"
},
{
"source_name": "COSQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cosqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "COAQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "coaqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "COTYPE",
"source_type": "CHAR(1)",
"dest_name": "cotype",
"dest_type": "text",
"description": "Part Type R"
},
{
"source_name": "COCURR",
"source_type": "CHAR(3)",
"dest_name": "cocurr",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "COPLNT",
"source_type": "CHAR(3)",
"dest_name": "coplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "COAVUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavuc",
"dest_type": "numeric(13,5)",
"description": "Average Unit cost"
},
{
"source_name": "COAVXC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavxc",
"dest_type": "numeric(13,5)",
"description": "Average Xchg cost"
},
{
"source_name": "COAVDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavdc",
"dest_type": "numeric(13,5)",
"description": "Average Duty cost"
},
{
"source_name": "COAV1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "coav1c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-1 Cost"
},
{
"source_name": "COAV2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "coav2c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-2 Cost"
},
{
"source_name": "COAVFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "coavfc",
"dest_type": "numeric(13,5)",
"description": "Average Freight cost"
},
{
"source_name": "COFUT1",
"source_type": "CHAR(3)",
"dest_name": "cofut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT2",
"source_type": "CHAR(10)",
"dest_name": "cofut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT3",
"source_type": "CHAR(20)",
"dest_name": "cofut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFUT4",
"source_type": "NUMERIC(15,0)",
"dest_name": "cofut4",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "COFUT5",
"source_type": "NUMERIC(15,0)",
"dest_name": "cofut5",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "COFLG1",
"source_type": "CHAR(1)",
"dest_name": "coflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG2",
"source_type": "CHAR(1)",
"dest_name": "coflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG3",
"source_type": "CHAR(1)",
"dest_name": "coflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG4",
"source_type": "CHAR(1)",
"dest_name": "coflg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG5",
"source_type": "CHAR(1)",
"dest_name": "coflg5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG6",
"source_type": "CHAR(1)",
"dest_name": "coflg6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COFLG7",
"source_type": "CHAR(1)",
"dest_name": "coflg7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "COCRCD",
"source_type": "CHAR(3)",
"dest_name": "cocrcd",
"dest_type": "text",
"description": "Last Actual Currency"
}
],
"watermarks": [],
"hooks": []
}

51
config/modules/ftcstp.sql Normal file
View File

@ -0,0 +1,51 @@
SELECT
RTRIM(COPART) AS copart,
COLUC AS coluc,
COLCC AS colcc,
COLFC AS colfc,
COLDC AS coldc,
COL1C AS col1c,
COL2C AS col2c,
COSUC AS cosuc,
COSCC AS coscc,
COSFC AS cosfc,
COSDC AS cosdc,
COS1C AS cos1c,
COS2C AS cos2c,
COSCR AS coscr,
COLCR AS colcr,
CASE WHEN COSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE COSDAT END AS cosdat,
COSTCS AS costcs,
COACCS AS coaccs,
COAVCS AS coavcs,
COSDR AS cosdr,
COS1R AS cos1r,
COS2R AS cos2r,
COLDR AS coldr,
COL1R AS col1r,
COL2R AS col2r,
COSQTY AS cosqty,
COAQTY AS coaqty,
RTRIM(COTYPE) AS cotype,
RTRIM(COCURR) AS cocurr,
RTRIM(COPLNT) AS coplnt,
COAVUC AS coavuc,
COAVXC AS coavxc,
COAVDC AS coavdc,
COAV1C AS coav1c,
COAV2C AS coav2c,
COAVFC AS coavfc,
RTRIM(COFUT1) AS cofut1,
RTRIM(COFUT2) AS cofut2,
RTRIM(COFUT3) AS cofut3,
COFUT4 AS cofut4,
COFUT5 AS cofut5,
RTRIM(COFLG1) AS coflg1,
RTRIM(COFLG2) AS coflg2,
RTRIM(COFLG3) AS coflg3,
RTRIM(COFLG4) AS coflg4,
RTRIM(COFLG5) AS coflg5,
RTRIM(COFLG6) AS coflg6,
RTRIM(COFLG7) AS coflg7,
RTRIM(COCRCD) AS cocrcd
FROM LGDAT.FTCSTP

330
config/modules/ftcstr.json Normal file
View File

@ -0,0 +1,330 @@
{
"name": "ftcstr",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.ftcstr",
"staging_table": "pipekit_staging.ftcstr",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Future Cost Master - Transferred Parts 6.0",
"columns": [
{
"source_name": "Y3PART",
"source_type": "CHAR(20)",
"dest_name": "y3part",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "Y3PLNT",
"source_type": "CHAR(3)",
"dest_name": "y3plnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "Y3STCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3stcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "Y3ACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3accs",
"dest_type": "numeric(13,5)",
"description": "Last Actual Cost"
},
{
"source_name": "Y3AVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3avcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "Y3SUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3suc",
"dest_type": "numeric(13,5)",
"description": "Standard Unit Cost"
},
{
"source_name": "Y3SSHR",
"source_type": "DECIMAL(9,5)",
"dest_name": "y3sshr",
"dest_type": "numeric(9,5)",
"description": "Standard S & H Rate"
},
{
"source_name": "Y3SSHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3sshc",
"dest_type": "numeric(13,5)",
"description": "Standard S & H Cost"
},
{
"source_name": "Y3SOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3soc",
"dest_type": "numeric(13,5)",
"description": "Standard Currency Cost"
},
{
"source_name": "Y3SDAT",
"source_type": "DATE",
"dest_name": "y3sdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "Y3SQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "y3sqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "Y3LUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3luc",
"dest_type": "numeric(13,5)",
"description": "Last Unit Cost"
},
{
"source_name": "Y3LSHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3lshc",
"dest_type": "numeric(13,5)",
"description": "Last S & H Cost"
},
{
"source_name": "Y3LOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3loc",
"dest_type": "numeric(13,5)",
"description": "Last Currency Cost"
},
{
"source_name": "Y3AQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "y3aqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "Y3TYPE",
"source_type": "CHAR(1)",
"dest_name": "y3type",
"dest_type": "text",
"description": "Part Type T"
},
{
"source_name": "Y3SMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3smat",
"dest_type": "numeric(13,5)",
"description": "Standard Material Cost"
},
{
"source_name": "Y3SLAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3slab",
"dest_type": "numeric(13,5)",
"description": "Standard Labour Cost"
},
{
"source_name": "Y3SVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3svbr",
"dest_type": "numeric(13,5)",
"description": "Standard Variable Burden Cost"
},
{
"source_name": "Y3SFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3sfbr",
"dest_type": "numeric(13,5)",
"description": "Standard Fixed Burden Cost"
},
{
"source_name": "Y3SOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3sotc",
"dest_type": "numeric(13,5)",
"description": "Standard Other Cost"
},
{
"source_name": "Y3LMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3lmat",
"dest_type": "numeric(13,5)",
"description": "Last Actual Material Cost"
},
{
"source_name": "Y3LLAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3llab",
"dest_type": "numeric(13,5)",
"description": "Last Actual Labour Cost"
},
{
"source_name": "Y3LVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3lvbr",
"dest_type": "numeric(13,5)",
"description": "Last Actual Variable Burden Cost"
},
{
"source_name": "Y3LFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3lfbr",
"dest_type": "numeric(13,5)",
"description": "Last Actual Fixed Burden Cost"
},
{
"source_name": "Y3LOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3lotc",
"dest_type": "numeric(13,5)",
"description": "Last Actual Other Cost"
},
{
"source_name": "Y3AMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3amat",
"dest_type": "numeric(13,5)",
"description": "Average Material Cost"
},
{
"source_name": "Y3ALAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3alab",
"dest_type": "numeric(13,5)",
"description": "Average Labour Cost"
},
{
"source_name": "Y3AVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3avbr",
"dest_type": "numeric(13,5)",
"description": "Average Variable Burden Cost"
},
{
"source_name": "Y3AFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3afbr",
"dest_type": "numeric(13,5)",
"description": "Average Fixed Burden Cost"
},
{
"source_name": "Y3AOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3aotc",
"dest_type": "numeric(13,5)",
"description": "Average Other Cost"
},
{
"source_name": "Y3AUNC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3aunc",
"dest_type": "numeric(13,5)",
"description": "Average Unit Cost"
},
{
"source_name": "Y3ASHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3ashc",
"dest_type": "numeric(13,5)",
"description": "Average S & H Cost"
},
{
"source_name": "Y3ACRC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y3acrc",
"dest_type": "numeric(13,5)",
"description": "Average Currency Cost"
},
{
"source_name": "Y3FUT1",
"source_type": "CHAR(3)",
"dest_name": "y3fut1",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "Y3FUT2",
"source_type": "CHAR(10)",
"dest_name": "y3fut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y3FUT3",
"source_type": "CHAR(20)",
"dest_name": "y3fut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y3FUT4",
"source_type": "NUMERIC(11,6)",
"dest_name": "y3fut4",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "Y3FUT5",
"source_type": "NUMERIC(11,6)",
"dest_name": "y3fut5",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "Y3FLG1",
"source_type": "CHAR(1)",
"dest_name": "y3flg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y3FLG2",
"source_type": "CHAR(1)",
"dest_name": "y3flg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y3FLG3",
"source_type": "CHAR(1)",
"dest_name": "y3flg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y3CRCD",
"source_type": "CHAR(2)",
"dest_name": "y3crcd",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "Y3STCR",
"source_type": "NUMERIC(11,6)",
"dest_name": "y3stcr",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "Y3LSCR",
"source_type": "NUMERIC(11,6)",
"dest_name": "y3lscr",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
}
],
"watermarks": [],
"hooks": []
}

47
config/modules/ftcstr.sql Normal file
View File

@ -0,0 +1,47 @@
SELECT
RTRIM(Y3PART) AS y3part,
RTRIM(Y3PLNT) AS y3plnt,
Y3STCS AS y3stcs,
Y3ACCS AS y3accs,
Y3AVCS AS y3avcs,
Y3SUC AS y3suc,
Y3SSHR AS y3sshr,
Y3SSHC AS y3sshc,
Y3SOC AS y3soc,
CASE WHEN Y3SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y3SDAT END AS y3sdat,
Y3SQTY AS y3sqty,
Y3LUC AS y3luc,
Y3LSHC AS y3lshc,
Y3LOC AS y3loc,
Y3AQTY AS y3aqty,
RTRIM(Y3TYPE) AS y3type,
Y3SMAT AS y3smat,
Y3SLAB AS y3slab,
Y3SVBR AS y3svbr,
Y3SFBR AS y3sfbr,
Y3SOTC AS y3sotc,
Y3LMAT AS y3lmat,
Y3LLAB AS y3llab,
Y3LVBR AS y3lvbr,
Y3LFBR AS y3lfbr,
Y3LOTC AS y3lotc,
Y3AMAT AS y3amat,
Y3ALAB AS y3alab,
Y3AVBR AS y3avbr,
Y3AFBR AS y3afbr,
Y3AOTC AS y3aotc,
Y3AUNC AS y3aunc,
Y3ASHC AS y3ashc,
Y3ACRC AS y3acrc,
RTRIM(Y3FUT1) AS y3fut1,
RTRIM(Y3FUT2) AS y3fut2,
RTRIM(Y3FUT3) AS y3fut3,
Y3FUT4 AS y3fut4,
Y3FUT5 AS y3fut5,
RTRIM(Y3FLG1) AS y3flg1,
RTRIM(Y3FLG2) AS y3flg2,
RTRIM(Y3FLG3) AS y3flg3,
RTRIM(Y3CRCD) AS y3crcd,
Y3STCR AS y3stcr,
Y3LSCR AS y3lscr
FROM LGDAT.FTCSTR

281
config/modules/glie.json Normal file
View File

@ -0,0 +1,281 @@
{
"name": "glie",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.glie",
"staging_table": "pipekit_staging.glie",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "G/L Inventory Expense Accounts 6.1",
"columns": [
{
"source_name": "Y1PLNT",
"source_type": "CHAR(3)",
"dest_name": "y1plnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "Y1GLEC",
"source_type": "CHAR(3)",
"dest_name": "y1glec",
"dest_type": "text",
"description": "G/L Expense Code"
},
{
"source_name": "Y1INVA",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1inva",
"dest_type": "numeric(10,0)",
"description": "G/L Inventory Account"
},
{
"source_name": "Y1PRVR",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1prvr",
"dest_type": "numeric(10,0)",
"description": "G/L Price Variance"
},
{
"source_name": "Y1USVR",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1usvr",
"dest_type": "numeric(10,0)",
"description": "G/L Usage Variance"
},
{
"source_name": "Y1PADJ",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1padj",
"dest_type": "numeric(10,0)",
"description": "G/L Physical Adjustment"
},
{
"source_name": "Y1RVAL",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1rval",
"dest_type": "numeric(10,0)",
"description": "G/L Inventory Revaluation"
},
{
"source_name": "Y1INTP",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1intp",
"dest_type": "numeric(10,0)",
"description": "G/L Interplant Variance"
},
{
"source_name": "Y1FUT1",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut1",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1FUT2",
"source_type": "CHAR(3)",
"dest_name": "y1fut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FUT3",
"source_type": "CHAR(10)",
"dest_name": "y1fut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FUT4",
"source_type": "CHAR(20)",
"dest_name": "y1fut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FUT5",
"source_type": "NUMERIC(15,5)",
"dest_name": "y1fut5",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "Y1FUT6",
"source_type": "NUMERIC(15,5)",
"dest_name": "y1fut6",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "Y1FLG1",
"source_type": "CHAR(1)",
"dest_name": "y1flg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FLG2",
"source_type": "CHAR(1)",
"dest_name": "y1flg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FLG3",
"source_type": "CHAR(1)",
"dest_name": "y1flg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y1FREX",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1frex",
"dest_type": "numeric(10,0)",
"description": "BOL Freight Expense Acct#"
},
{
"source_name": "Y1SREX",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1srex",
"dest_type": "numeric(10,0)",
"description": "BOL Freight Sur- charge Expense Acc#"
},
{
"source_name": "Y1FRVR",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1frvr",
"dest_type": "numeric(10,0)",
"description": "BOL Freight Variance Acct#"
},
{
"source_name": "Y1SRVR",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1srvr",
"dest_type": "numeric(10,0)",
"description": "BOL Freight Sur- charge Variance Acc#"
},
{
"source_name": "Y1NEGA",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1nega",
"dest_type": "numeric(10,0)",
"description": "Negative Inventory Adjustment"
},
{
"source_name": "Y1RPIR",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1rpir",
"dest_type": "numeric(10,0)",
"description": "Repair GL Account"
},
{
"source_name": "Y1GLM1",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1glm1",
"dest_type": "numeric(10,0)",
"description": "G/L Clearing Account for Multiplier-1"
},
{
"source_name": "Y1GLM2",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1glm2",
"dest_type": "numeric(10,0)",
"description": "G/L Clearing Account for Multiplier-2"
},
{
"source_name": "Y1CLAC",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1clac",
"dest_type": "numeric(10,0)",
"description": "Work Order Option Clearing"
},
{
"source_name": "Y1FUT7",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut7",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1FUT8",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut8",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1FUT9",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut9",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1FUT10",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut10",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1FUT11",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1fut11",
"dest_type": "numeric(10,0)",
"description": "Future Use"
},
{
"source_name": "Y1SAAC",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1saac",
"dest_type": "numeric(10,0)",
"description": "Month-End Option Serial Adj"
},
{
"source_name": "Y1BHCL",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1bhcl",
"dest_type": "numeric(10,0)",
"description": "Bill-And-Hold Clearing"
},
{
"source_name": "Y1CBMX",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1cbmx",
"dest_type": "numeric(10,0)",
"description": "Container BOM Part Expense"
},
{
"source_name": "Y1UVLB",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1uvlb",
"dest_type": "numeric(10,0)",
"description": "G/L Usage Variance Labour"
},
{
"source_name": "Y1UVFB",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1uvfb",
"dest_type": "numeric(10,0)",
"description": "G/L Usage Variance Fix Burden"
},
{
"source_name": "Y1UVVB",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1uvvb",
"dest_type": "numeric(10,0)",
"description": "G/L Usage Variance Var Burden"
},
{
"source_name": "Y1UVOTH",
"source_type": "NUMERIC(10,0)",
"dest_name": "y1uvoth",
"dest_type": "numeric(10,0)",
"description": "G/L Usage Variance Other"
}
],
"watermarks": [],
"hooks": []
}

40
config/modules/glie.sql Normal file
View File

@ -0,0 +1,40 @@
SELECT
RTRIM(Y1PLNT) AS y1plnt,
RTRIM(Y1GLEC) AS y1glec,
Y1INVA AS y1inva,
Y1PRVR AS y1prvr,
Y1USVR AS y1usvr,
Y1PADJ AS y1padj,
Y1RVAL AS y1rval,
Y1INTP AS y1intp,
Y1FUT1 AS y1fut1,
RTRIM(Y1FUT2) AS y1fut2,
RTRIM(Y1FUT3) AS y1fut3,
RTRIM(Y1FUT4) AS y1fut4,
Y1FUT5 AS y1fut5,
Y1FUT6 AS y1fut6,
RTRIM(Y1FLG1) AS y1flg1,
RTRIM(Y1FLG2) AS y1flg2,
RTRIM(Y1FLG3) AS y1flg3,
Y1FREX AS y1frex,
Y1SREX AS y1srex,
Y1FRVR AS y1frvr,
Y1SRVR AS y1srvr,
Y1NEGA AS y1nega,
Y1RPIR AS y1rpir,
Y1GLM1 AS y1glm1,
Y1GLM2 AS y1glm2,
Y1CLAC AS y1clac,
Y1FUT7 AS y1fut7,
Y1FUT8 AS y1fut8,
Y1FUT9 AS y1fut9,
Y1FUT10 AS y1fut10,
Y1FUT11 AS y1fut11,
Y1SAAC AS y1saac,
Y1BHCL AS y1bhcl,
Y1CBMX AS y1cbmx,
Y1UVLB AS y1uvlb,
Y1UVFB AS y1uvfb,
Y1UVVB AS y1uvvb,
Y1UVOTH AS y1uvoth
FROM LGDAT.GLIE

351
config/modules/icstm.json Normal file
View File

@ -0,0 +1,351 @@
{
"name": "icstm",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.icstm",
"staging_table": "pipekit_staging.icstm",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Inventory Costs - Manufactured parts 6.1",
"columns": [
{
"source_name": "CGPART",
"source_type": "CHAR(20)",
"dest_name": "cgpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "CGLABS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cglabs",
"dest_type": "numeric(13,5)",
"description": "Labour Standard"
},
{
"source_name": "CGMATS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgmats",
"dest_type": "numeric(13,5)",
"description": "Material Standard"
},
{
"source_name": "CGBURS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgburs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard"
},
{
"source_name": "CGLABA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cglaba",
"dest_type": "numeric(13,5)",
"description": "Labour Actual"
},
{
"source_name": "CGMATA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgmata",
"dest_type": "numeric(13,5)",
"description": "Material Actual"
},
{
"source_name": "CGBURA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbura",
"dest_type": "numeric(13,5)",
"description": "Burden Actual"
},
{
"source_name": "CGLABV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cglabv",
"dest_type": "numeric(13,5)",
"description": "Labour Average"
},
{
"source_name": "CGMATV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgmatv",
"dest_type": "numeric(13,5)",
"description": "Material Average"
},
{
"source_name": "CGBURV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgburv",
"dest_type": "numeric(13,5)",
"description": "Burden Average"
},
{
"source_name": "CGTPTD",
"source_type": "DECIMAL(11,0)",
"dest_name": "cgtptd",
"dest_type": "numeric(11,0)",
"description": "Total Prod. To Date"
},
{
"source_name": "CGSDAT",
"source_type": "DATE",
"dest_name": "cgsdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "CGSTCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgstcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "CGACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgaccs",
"dest_type": "numeric(13,5)",
"description": "Actual Cost"
},
{
"source_name": "CGAVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgavcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "CGSTOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgstoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Standard)"
},
{
"source_name": "CGACOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgacoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Actual)"
},
{
"source_name": "CGAVOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgavoc",
"dest_type": "numeric(13,5)",
"description": "Other Costs (Average)"
},
{
"source_name": "CGSQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cgsqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "CGAQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "cgaqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "CGTYPE",
"source_type": "CHAR(1)",
"dest_name": "cgtype",
"dest_type": "text",
"description": "Part Type M"
},
{
"source_name": "CGBRFS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrfs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard Fixed"
},
{
"source_name": "CGBRVS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrvs",
"dest_type": "numeric(13,5)",
"description": "Burden Standard Variable"
},
{
"source_name": "CGBRFA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrfa",
"dest_type": "numeric(13,5)",
"description": "Burden Actual Fixed"
},
{
"source_name": "CGBRVA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrva",
"dest_type": "numeric(13,5)",
"description": "Burden Actual Variable"
},
{
"source_name": "CGBRFV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrfv",
"dest_type": "numeric(13,5)",
"description": "Burden Average Fixed"
},
{
"source_name": "CGBRVV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgbrvv",
"dest_type": "numeric(13,5)",
"description": "Burden Average Variable"
},
{
"source_name": "CGFUTS",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgfuts",
"dest_type": "numeric(13,5)",
"description": "Future Standard"
},
{
"source_name": "CGFUTA",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgfuta",
"dest_type": "numeric(13,5)",
"description": "Future Actual"
},
{
"source_name": "CGFUTV",
"source_type": "NUMERIC(13,5)",
"dest_name": "cgfutv",
"dest_type": "numeric(13,5)",
"description": "Future Average"
},
{
"source_name": "CGPLNT",
"source_type": "CHAR(3)",
"dest_name": "cgplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "CGFUT1",
"source_type": "CHAR(3)",
"dest_name": "cgfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT2",
"source_type": "CHAR(10)",
"dest_name": "cgfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT3",
"source_type": "CHAR(20)",
"dest_name": "cgfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT4",
"source_type": "NUMERIC(15,0)",
"dest_name": "cgfut4",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CGFUT5",
"source_type": "NUMERIC(15,0)",
"dest_name": "cgfut5",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CGFLG1",
"source_type": "CHAR(1)",
"dest_name": "cgflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFLG2",
"source_type": "CHAR(1)",
"dest_name": "cgflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFLG3",
"source_type": "CHAR(1)",
"dest_name": "cgflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT6",
"source_type": "CHAR(10)",
"dest_name": "cgfut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT7",
"source_type": "CHAR(10)",
"dest_name": "cgfut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT8",
"source_type": "CHAR(20)",
"dest_name": "cgfut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT9",
"source_type": "CHAR(20)",
"dest_name": "cgfut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT10",
"source_type": "CHAR(30)",
"dest_name": "cgfut10",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT11",
"source_type": "CHAR(30)",
"dest_name": "cgfut11",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CGFUT12",
"source_type": "NUMERIC(15,5)",
"dest_name": "cgfut12",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "CGFUT13",
"source_type": "NUMERIC(15,5)",
"dest_name": "cgfut13",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "CGFUT14",
"source_type": "NUMERIC(15,5)",
"dest_name": "cgfut14",
"dest_type": "numeric(15,5)",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

50
config/modules/icstm.sql Normal file
View File

@ -0,0 +1,50 @@
SELECT
RTRIM(CGPART) AS cgpart,
CGLABS AS cglabs,
CGMATS AS cgmats,
CGBURS AS cgburs,
CGLABA AS cglaba,
CGMATA AS cgmata,
CGBURA AS cgbura,
CGLABV AS cglabv,
CGMATV AS cgmatv,
CGBURV AS cgburv,
CGTPTD AS cgtptd,
CASE WHEN CGSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CGSDAT END AS cgsdat,
CGSTCS AS cgstcs,
CGACCS AS cgaccs,
CGAVCS AS cgavcs,
CGSTOC AS cgstoc,
CGACOC AS cgacoc,
CGAVOC AS cgavoc,
CGSQTY AS cgsqty,
CGAQTY AS cgaqty,
RTRIM(CGTYPE) AS cgtype,
CGBRFS AS cgbrfs,
CGBRVS AS cgbrvs,
CGBRFA AS cgbrfa,
CGBRVA AS cgbrva,
CGBRFV AS cgbrfv,
CGBRVV AS cgbrvv,
CGFUTS AS cgfuts,
CGFUTA AS cgfuta,
CGFUTV AS cgfutv,
RTRIM(CGPLNT) AS cgplnt,
RTRIM(CGFUT1) AS cgfut1,
RTRIM(CGFUT2) AS cgfut2,
RTRIM(CGFUT3) AS cgfut3,
CGFUT4 AS cgfut4,
CGFUT5 AS cgfut5,
RTRIM(CGFLG1) AS cgflg1,
RTRIM(CGFLG2) AS cgflg2,
RTRIM(CGFLG3) AS cgflg3,
RTRIM(CGFUT6) AS cgfut6,
RTRIM(CGFUT7) AS cgfut7,
RTRIM(CGFUT8) AS cgfut8,
RTRIM(CGFUT9) AS cgfut9,
RTRIM(CGFUT10) AS cgfut10,
RTRIM(CGFUT11) AS cgfut11,
CGFUT12 AS cgfut12,
CGFUT13 AS cgfut13,
CGFUT14 AS cgfut14
FROM LGDAT.ICSTM

435
config/modules/icstp.json Normal file
View File

@ -0,0 +1,435 @@
{
"name": "icstp",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.icstp",
"staging_table": "pipekit_staging.icstp",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Inventory Cost Master - Purchased Parts 6.1",
"columns": [
{
"source_name": "CHPART",
"source_type": "CHAR(20)",
"dest_name": "chpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "CHLUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chluc",
"dest_type": "numeric(13,5)",
"description": "Last Unit Cost"
},
{
"source_name": "CHLCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chlcc",
"dest_type": "numeric(13,5)",
"description": "Last Currency Cost"
},
{
"source_name": "CHLFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chlfc",
"dest_type": "numeric(13,5)",
"description": "Last Freight Cost"
},
{
"source_name": "CHLDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chldc",
"dest_type": "numeric(13,5)",
"description": "Last Duty Cost"
},
{
"source_name": "CHL1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chl1c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-1 Cost"
},
{
"source_name": "CHL2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chl2c",
"dest_type": "numeric(13,5)",
"description": "Last Multiplier-2 Cost"
},
{
"source_name": "CHSUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chsuc",
"dest_type": "numeric(13,5)",
"description": "Standard Unit Cost"
},
{
"source_name": "CHSCC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chscc",
"dest_type": "numeric(13,5)",
"description": "Standard Currency Cost"
},
{
"source_name": "CHSFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chsfc",
"dest_type": "numeric(13,5)",
"description": "Standard Freight Cost"
},
{
"source_name": "CHSDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chsdc",
"dest_type": "numeric(13,5)",
"description": "Standard Duty Cost"
},
{
"source_name": "CHS1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chs1c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-1 Cost"
},
{
"source_name": "CHS2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chs2c",
"dest_type": "numeric(13,5)",
"description": "Standard Multiplier-2 Cost"
},
{
"source_name": "CHSCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "chscr",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "CHLCR",
"source_type": "DECIMAL(11,6)",
"dest_name": "chlcr",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "CHSDAT",
"source_type": "DATE",
"dest_name": "chsdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "CHSTCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "chstcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "CHACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "chaccs",
"dest_type": "numeric(13,5)",
"description": "Last Actual Cost"
},
{
"source_name": "CHAVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "chavcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "CHSDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "chsdr",
"dest_type": "numeric(8,4)",
"description": "Standard Duty Rate"
},
{
"source_name": "CHS1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "chs1r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-1"
},
{
"source_name": "CHS2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "chs2r",
"dest_type": "numeric(8,4)",
"description": "Standard Multiplier-2"
},
{
"source_name": "CHLDR",
"source_type": "NUMERIC(8,4)",
"dest_name": "chldr",
"dest_type": "numeric(8,4)",
"description": "Last Duty Rate"
},
{
"source_name": "CHL1R",
"source_type": "NUMERIC(8,4)",
"dest_name": "chl1r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-1"
},
{
"source_name": "CHL2R",
"source_type": "NUMERIC(8,4)",
"dest_name": "chl2r",
"dest_type": "numeric(8,4)",
"description": "Last Multiplier-2"
},
{
"source_name": "CHSQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "chsqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "CHAQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "chaqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "CHTYPE",
"source_type": "CHAR(1)",
"dest_name": "chtype",
"dest_type": "text",
"description": "Part Type R"
},
{
"source_name": "CHCURR",
"source_type": "CHAR(3)",
"dest_name": "chcurr",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "CHSDWC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chsdwc",
"dest_type": "numeric(13,5)",
"description": "Standard Warehouse Cha rge"
},
{
"source_name": "CHACWC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chacwc",
"dest_type": "numeric(13,5)",
"description": "Last Warehouse Charge"
},
{
"source_name": "CHPLNT",
"source_type": "CHAR(3)",
"dest_name": "chplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "CHAVUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chavuc",
"dest_type": "numeric(13,5)",
"description": "Average Unit cost"
},
{
"source_name": "CHAVXC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chavxc",
"dest_type": "numeric(13,5)",
"description": "Average Xchg cost"
},
{
"source_name": "CHAVDC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chavdc",
"dest_type": "numeric(13,5)",
"description": "Average Duty cost"
},
{
"source_name": "CHAV1C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chav1c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-1 Cost"
},
{
"source_name": "CHAV2C",
"source_type": "NUMERIC(13,5)",
"dest_name": "chav2c",
"dest_type": "numeric(13,5)",
"description": "Average Multiplier-2 Cost"
},
{
"source_name": "CHAVFC",
"source_type": "NUMERIC(13,5)",
"dest_name": "chavfc",
"dest_type": "numeric(13,5)",
"description": "Average Freight cost"
},
{
"source_name": "CHFUT1",
"source_type": "CHAR(3)",
"dest_name": "chfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT2",
"source_type": "CHAR(10)",
"dest_name": "chfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT3",
"source_type": "CHAR(20)",
"dest_name": "chfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT4",
"source_type": "NUMERIC(15,0)",
"dest_name": "chfut4",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CHFUT5",
"source_type": "NUMERIC(15,0)",
"dest_name": "chfut5",
"dest_type": "numeric(15,0)",
"description": "Future Use"
},
{
"source_name": "CHFLG1",
"source_type": "CHAR(1)",
"dest_name": "chflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG2",
"source_type": "CHAR(1)",
"dest_name": "chflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG3",
"source_type": "CHAR(1)",
"dest_name": "chflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG4",
"source_type": "CHAR(1)",
"dest_name": "chflg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG5",
"source_type": "CHAR(1)",
"dest_name": "chflg5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG6",
"source_type": "CHAR(1)",
"dest_name": "chflg6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFLG7",
"source_type": "CHAR(1)",
"dest_name": "chflg7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHCRCD",
"source_type": "CHAR(3)",
"dest_name": "chcrcd",
"dest_type": "text",
"description": "Last Actual Currency"
},
{
"source_name": "CHFUT6",
"source_type": "CHAR(10)",
"dest_name": "chfut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT7",
"source_type": "CHAR(10)",
"dest_name": "chfut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT8",
"source_type": "CHAR(20)",
"dest_name": "chfut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT9",
"source_type": "CHAR(20)",
"dest_name": "chfut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT10",
"source_type": "CHAR(30)",
"dest_name": "chfut10",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT11",
"source_type": "CHAR(30)",
"dest_name": "chfut11",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "CHFUT12",
"source_type": "NUMERIC(15,5)",
"dest_name": "chfut12",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "CHFUT13",
"source_type": "NUMERIC(15,5)",
"dest_name": "chfut13",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "CHFUT14",
"source_type": "NUMERIC(15,5)",
"dest_name": "chfut14",
"dest_type": "numeric(15,5)",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

62
config/modules/icstp.sql Normal file
View File

@ -0,0 +1,62 @@
SELECT
RTRIM(CHPART) AS chpart,
CHLUC AS chluc,
CHLCC AS chlcc,
CHLFC AS chlfc,
CHLDC AS chldc,
CHL1C AS chl1c,
CHL2C AS chl2c,
CHSUC AS chsuc,
CHSCC AS chscc,
CHSFC AS chsfc,
CHSDC AS chsdc,
CHS1C AS chs1c,
CHS2C AS chs2c,
CHSCR AS chscr,
CHLCR AS chlcr,
CASE WHEN CHSDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE CHSDAT END AS chsdat,
CHSTCS AS chstcs,
CHACCS AS chaccs,
CHAVCS AS chavcs,
CHSDR AS chsdr,
CHS1R AS chs1r,
CHS2R AS chs2r,
CHLDR AS chldr,
CHL1R AS chl1r,
CHL2R AS chl2r,
CHSQTY AS chsqty,
CHAQTY AS chaqty,
RTRIM(CHTYPE) AS chtype,
RTRIM(CHCURR) AS chcurr,
CHSDWC AS chsdwc,
CHACWC AS chacwc,
RTRIM(CHPLNT) AS chplnt,
CHAVUC AS chavuc,
CHAVXC AS chavxc,
CHAVDC AS chavdc,
CHAV1C AS chav1c,
CHAV2C AS chav2c,
CHAVFC AS chavfc,
RTRIM(CHFUT1) AS chfut1,
RTRIM(CHFUT2) AS chfut2,
RTRIM(CHFUT3) AS chfut3,
CHFUT4 AS chfut4,
CHFUT5 AS chfut5,
RTRIM(CHFLG1) AS chflg1,
RTRIM(CHFLG2) AS chflg2,
RTRIM(CHFLG3) AS chflg3,
RTRIM(CHFLG4) AS chflg4,
RTRIM(CHFLG5) AS chflg5,
RTRIM(CHFLG6) AS chflg6,
RTRIM(CHFLG7) AS chflg7,
RTRIM(CHCRCD) AS chcrcd,
RTRIM(CHFUT6) AS chfut6,
RTRIM(CHFUT7) AS chfut7,
RTRIM(CHFUT8) AS chfut8,
RTRIM(CHFUT9) AS chfut9,
RTRIM(CHFUT10) AS chfut10,
RTRIM(CHFUT11) AS chfut11,
CHFUT12 AS chfut12,
CHFUT13 AS chfut13,
CHFUT14 AS chfut14
FROM LGDAT.ICSTP

393
config/modules/icstr.json Normal file
View File

@ -0,0 +1,393 @@
{
"name": "icstr",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.icstr",
"staging_table": "pipekit_staging.icstr",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Inventory Cost Master-Transferred Parts6.1",
"columns": [
{
"source_name": "Y0PART",
"source_type": "CHAR(20)",
"dest_name": "y0part",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "Y0PLNT",
"source_type": "CHAR(3)",
"dest_name": "y0plnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "Y0STCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0stcs",
"dest_type": "numeric(13,5)",
"description": "Standard Cost"
},
{
"source_name": "Y0ACCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0accs",
"dest_type": "numeric(13,5)",
"description": "Last Actual Cost"
},
{
"source_name": "Y0AVCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0avcs",
"dest_type": "numeric(13,5)",
"description": "Average Cost"
},
{
"source_name": "Y0SUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0suc",
"dest_type": "numeric(13,5)",
"description": "Standard Unit Cost"
},
{
"source_name": "Y0SSHR",
"source_type": "DECIMAL(9,5)",
"dest_name": "y0sshr",
"dest_type": "numeric(9,5)",
"description": "Standard S & H Rate"
},
{
"source_name": "Y0SSHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0sshc",
"dest_type": "numeric(13,5)",
"description": "Standard S & H Cost"
},
{
"source_name": "Y0SOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0soc",
"dest_type": "numeric(13,5)",
"description": "Standard Currency Cost"
},
{
"source_name": "Y0SDAT",
"source_type": "DATE",
"dest_name": "y0sdat",
"dest_type": "date",
"description": "Standard Date"
},
{
"source_name": "Y0SQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "y0sqty",
"dest_type": "numeric(8,0)",
"description": "Standard Quantity"
},
{
"source_name": "Y0LUC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0luc",
"dest_type": "numeric(13,5)",
"description": "Last Unit Cost"
},
{
"source_name": "Y0LSHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0lshc",
"dest_type": "numeric(13,5)",
"description": "Last S & H Cost"
},
{
"source_name": "Y0LOC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0loc",
"dest_type": "numeric(13,5)",
"description": "Last Currency Cost"
},
{
"source_name": "Y0AQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "y0aqty",
"dest_type": "numeric(8,0)",
"description": "Actual Quantity"
},
{
"source_name": "Y0TYPE",
"source_type": "CHAR(1)",
"dest_name": "y0type",
"dest_type": "text",
"description": "Part Type T"
},
{
"source_name": "Y0SMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0smat",
"dest_type": "numeric(13,5)",
"description": "Standard Material Cost"
},
{
"source_name": "Y0SLAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0slab",
"dest_type": "numeric(13,5)",
"description": "Standard Labour Cost"
},
{
"source_name": "Y0SVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0svbr",
"dest_type": "numeric(13,5)",
"description": "Standard Variable Burden Cost"
},
{
"source_name": "Y0SFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0sfbr",
"dest_type": "numeric(13,5)",
"description": "Standard Fixed Burden Cost"
},
{
"source_name": "Y0SOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0sotc",
"dest_type": "numeric(13,5)",
"description": "Standard Other Cost"
},
{
"source_name": "Y0LMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0lmat",
"dest_type": "numeric(13,5)",
"description": "Last Actual Material Cost"
},
{
"source_name": "Y0LLAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0llab",
"dest_type": "numeric(13,5)",
"description": "Last Actual Labour Cost"
},
{
"source_name": "Y0LVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0lvbr",
"dest_type": "numeric(13,5)",
"description": "Last Actual Variable Burden Cost"
},
{
"source_name": "Y0LFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0lfbr",
"dest_type": "numeric(13,5)",
"description": "Last Actual Fixed Burden Cost"
},
{
"source_name": "Y0LOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0lotc",
"dest_type": "numeric(13,5)",
"description": "Last Actual Other Cost"
},
{
"source_name": "Y0AMAT",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0amat",
"dest_type": "numeric(13,5)",
"description": "Average Material Cost"
},
{
"source_name": "Y0ALAB",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0alab",
"dest_type": "numeric(13,5)",
"description": "Average Labour Cost"
},
{
"source_name": "Y0AVBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0avbr",
"dest_type": "numeric(13,5)",
"description": "Average Variable Burden Cost"
},
{
"source_name": "Y0AFBR",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0afbr",
"dest_type": "numeric(13,5)",
"description": "Average Fixed Burden Cost"
},
{
"source_name": "Y0AOTC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0aotc",
"dest_type": "numeric(13,5)",
"description": "Average Other Cost"
},
{
"source_name": "Y0AUNC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0aunc",
"dest_type": "numeric(13,5)",
"description": "Average Unit Cost"
},
{
"source_name": "Y0ASHC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0ashc",
"dest_type": "numeric(13,5)",
"description": "Average S & H Cost"
},
{
"source_name": "Y0ACRC",
"source_type": "NUMERIC(13,5)",
"dest_name": "y0acrc",
"dest_type": "numeric(13,5)",
"description": "Average Currency Cost"
},
{
"source_name": "Y0FUT1",
"source_type": "CHAR(3)",
"dest_name": "y0fut1",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "Y0FUT2",
"source_type": "CHAR(10)",
"dest_name": "y0fut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT3",
"source_type": "CHAR(20)",
"dest_name": "y0fut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT4",
"source_type": "NUMERIC(11,6)",
"dest_name": "y0fut4",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "Y0FUT5",
"source_type": "NUMERIC(11,6)",
"dest_name": "y0fut5",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "Y0FLG1",
"source_type": "CHAR(1)",
"dest_name": "y0flg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FLG2",
"source_type": "CHAR(1)",
"dest_name": "y0flg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FLG3",
"source_type": "CHAR(1)",
"dest_name": "y0flg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0CRCD",
"source_type": "CHAR(3)",
"dest_name": "y0crcd",
"dest_type": "text",
"description": "Currency Code"
},
{
"source_name": "Y0STCR",
"source_type": "NUMERIC(11,6)",
"dest_name": "y0stcr",
"dest_type": "numeric(11,6)",
"description": "Standard Currency Rate"
},
{
"source_name": "Y0LSCR",
"source_type": "NUMERIC(11,6)",
"dest_name": "y0lscr",
"dest_type": "numeric(11,6)",
"description": "Last Currency Rate"
},
{
"source_name": "Y0FUT6",
"source_type": "CHAR(10)",
"dest_name": "y0fut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT7",
"source_type": "CHAR(10)",
"dest_name": "y0fut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT8",
"source_type": "CHAR(20)",
"dest_name": "y0fut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT9",
"source_type": "CHAR(20)",
"dest_name": "y0fut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT10",
"source_type": "CHAR(30)",
"dest_name": "y0fut10",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT11",
"source_type": "CHAR(30)",
"dest_name": "y0fut11",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "Y0FUT12",
"source_type": "NUMERIC(15,5)",
"dest_name": "y0fut12",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "Y0FUT13",
"source_type": "NUMERIC(15,5)",
"dest_name": "y0fut13",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "Y0FUT14",
"source_type": "NUMERIC(15,5)",
"dest_name": "y0fut14",
"dest_type": "numeric(15,5)",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

56
config/modules/icstr.sql Normal file
View File

@ -0,0 +1,56 @@
SELECT
RTRIM(Y0PART) AS y0part,
RTRIM(Y0PLNT) AS y0plnt,
Y0STCS AS y0stcs,
Y0ACCS AS y0accs,
Y0AVCS AS y0avcs,
Y0SUC AS y0suc,
Y0SSHR AS y0sshr,
Y0SSHC AS y0sshc,
Y0SOC AS y0soc,
CASE WHEN Y0SDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE Y0SDAT END AS y0sdat,
Y0SQTY AS y0sqty,
Y0LUC AS y0luc,
Y0LSHC AS y0lshc,
Y0LOC AS y0loc,
Y0AQTY AS y0aqty,
RTRIM(Y0TYPE) AS y0type,
Y0SMAT AS y0smat,
Y0SLAB AS y0slab,
Y0SVBR AS y0svbr,
Y0SFBR AS y0sfbr,
Y0SOTC AS y0sotc,
Y0LMAT AS y0lmat,
Y0LLAB AS y0llab,
Y0LVBR AS y0lvbr,
Y0LFBR AS y0lfbr,
Y0LOTC AS y0lotc,
Y0AMAT AS y0amat,
Y0ALAB AS y0alab,
Y0AVBR AS y0avbr,
Y0AFBR AS y0afbr,
Y0AOTC AS y0aotc,
Y0AUNC AS y0aunc,
Y0ASHC AS y0ashc,
Y0ACRC AS y0acrc,
RTRIM(Y0FUT1) AS y0fut1,
RTRIM(Y0FUT2) AS y0fut2,
RTRIM(Y0FUT3) AS y0fut3,
Y0FUT4 AS y0fut4,
Y0FUT5 AS y0fut5,
RTRIM(Y0FLG1) AS y0flg1,
RTRIM(Y0FLG2) AS y0flg2,
RTRIM(Y0FLG3) AS y0flg3,
RTRIM(Y0CRCD) AS y0crcd,
Y0STCR AS y0stcr,
Y0LSCR AS y0lscr,
RTRIM(Y0FUT6) AS y0fut6,
RTRIM(Y0FUT7) AS y0fut7,
RTRIM(Y0FUT8) AS y0fut8,
RTRIM(Y0FUT9) AS y0fut9,
RTRIM(Y0FUT10) AS y0fut10,
RTRIM(Y0FUT11) AS y0fut11,
Y0FUT12 AS y0fut12,
Y0FUT13 AS y0fut13,
Y0FUT14 AS y0fut14
FROM LGDAT.ICSTR

183
config/modules/iprca.json Normal file
View File

@ -0,0 +1,183 @@
{
"name": "iprca",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprca",
"staging_table": "pipekit_staging.iprca",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Pricing - Price List Code Description 6.1",
"columns": [
{
"source_name": "JAPLCD",
"source_type": "CHAR(5)",
"dest_name": "japlcd",
"dest_type": "text",
"description": "Price List"
},
{
"source_name": "JAPLDS",
"source_type": "CHAR(30)",
"dest_name": "japlds",
"dest_type": "text",
"description": "Price List Description"
},
{
"source_name": "JAPLD1",
"source_type": "CHAR(30)",
"dest_name": "japld1",
"dest_type": "text",
"description": "Price List Description"
},
{
"source_name": "JAPLD2",
"source_type": "CHAR(30)",
"dest_name": "japld2",
"dest_type": "text",
"description": "Price List Description"
},
{
"source_name": "JABQTP",
"source_type": "CHAR(1)",
"dest_name": "jabqtp",
"dest_type": "text",
"description": "Best Quantity Pricing"
},
{
"source_name": "JABQGN",
"source_type": "CHAR(1)",
"dest_name": "jabqgn",
"dest_type": "text",
"description": "Allow Global Re-Price"
},
{
"source_name": "JABQUN",
"source_type": "NUMERIC(10,0)",
"dest_name": "jabqun",
"dest_type": "numeric(10,0)",
"description": "Last Global Re-Price Run Date"
},
{
"source_name": "JAPLNT",
"source_type": "CHAR(3)",
"dest_name": "japlnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "JABQUT",
"source_type": "NUMERIC(6,0)",
"dest_name": "jabqut",
"dest_type": "numeric(6,0)",
"description": "Last Global Re-Price Run Time"
},
{
"source_name": "JALQUN",
"source_type": "NUMERIC(10,0)",
"dest_name": "jalqun",
"dest_type": "numeric(10,0)",
"description": "Last Global Re-Run Run Date"
},
{
"source_name": "JALQUT",
"source_type": "NUMERIC(6,0)",
"dest_name": "jalqut",
"dest_type": "numeric(6,0)",
"description": "Last Global Re-Run Run Time"
},
{
"source_name": "JAADISC",
"source_type": "CHAR(1)",
"dest_name": "jaadisc",
"dest_type": "text",
"description": "Apply Disc/Charge to Standard Sales Order"
},
{
"source_name": "JAHREAS",
"source_type": "CHAR(2)",
"dest_name": "jahreas",
"dest_type": "text",
"description": "Hold Reason"
},
{
"source_name": "JAFUT1",
"source_type": "CHAR(1)",
"dest_name": "jafut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT2",
"source_type": "CHAR(1)",
"dest_name": "jafut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT3",
"source_type": "CHAR(1)",
"dest_name": "jafut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT4",
"source_type": "CHAR(1)",
"dest_name": "jafut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT5",
"source_type": "CHAR(1)",
"dest_name": "jafut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT6",
"source_type": "CHAR(10)",
"dest_name": "jafut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT7",
"source_type": "CHAR(10)",
"dest_name": "jafut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT8",
"source_type": "CHAR(20)",
"dest_name": "jafut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT9",
"source_type": "CHAR(20)",
"dest_name": "jafut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "JAFUT10",
"source_type": "NUMERIC(15,5)",
"dest_name": "jafut10",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "JAFUT11",
"source_type": "NUMERIC(15,5)",
"dest_name": "jafut11",
"dest_type": "numeric(15,5)",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

26
config/modules/iprca.sql Normal file
View File

@ -0,0 +1,26 @@
SELECT
RTRIM(JAPLCD) AS japlcd,
RTRIM(JAPLDS) AS japlds,
RTRIM(JAPLD1) AS japld1,
RTRIM(JAPLD2) AS japld2,
RTRIM(JABQTP) AS jabqtp,
RTRIM(JABQGN) AS jabqgn,
JABQUN AS jabqun,
RTRIM(JAPLNT) AS japlnt,
JABQUT AS jabqut,
JALQUN AS jalqun,
JALQUT AS jalqut,
RTRIM(JAADISC) AS jaadisc,
RTRIM(JAHREAS) AS jahreas,
RTRIM(JAFUT1) AS jafut1,
RTRIM(JAFUT2) AS jafut2,
RTRIM(JAFUT3) AS jafut3,
RTRIM(JAFUT4) AS jafut4,
RTRIM(JAFUT5) AS jafut5,
RTRIM(JAFUT6) AS jafut6,
RTRIM(JAFUT7) AS jafut7,
RTRIM(JAFUT8) AS jafut8,
RTRIM(JAFUT9) AS jafut9,
JAFUT10 AS jafut10,
JAFUT11 AS jafut11
FROM LGDAT.IPRCA

351
config/modules/iprcb.json Normal file
View File

@ -0,0 +1,351 @@
{
"name": "iprcb",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprcb",
"staging_table": "pipekit_staging.iprcb",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Pricing - PriceLlist Assignment",
"columns": [
{
"source_name": "JBTYPE",
"source_type": "CHAR(1)",
"dest_name": "jbtype",
"dest_type": "text",
"description": "Assignment Type"
},
{
"source_name": "JBCODE",
"source_type": "CHAR(8)",
"dest_name": "jbcode",
"dest_type": "text",
"description": "Customer /Class"
},
{
"source_name": "JBPLCD",
"source_type": "CHAR(5)",
"dest_name": "jbplcd",
"dest_type": "text",
"description": "Price List"
},
{
"source_name": "JBFDAT",
"source_type": "DATE",
"dest_name": "jbfdat",
"dest_type": "date",
"description": "Valid from"
},
{
"source_name": "JBTDAT",
"source_type": "DATE",
"dest_name": "jbtdat",
"dest_type": "date",
"description": "Valid to"
},
{
"source_name": "JBDISC",
"source_type": "CHAR(3)",
"dest_name": "jbdisc",
"dest_type": "text",
"description": "Discount Code"
},
{
"source_name": "JBDIST",
"source_type": "CHAR(1)",
"dest_name": "jbdist",
"dest_type": "text",
"description": "Discount Type"
},
{
"source_name": "JBUSEG",
"source_type": "CHAR(1)",
"dest_name": "jbuseg",
"dest_type": "text",
"description": "Assignment Usage"
},
{
"source_name": "JBFLG1",
"source_type": "CHAR(1)",
"dest_name": "jbflg1",
"dest_type": "text",
"description": "Future Flag 1"
},
{
"source_name": "JBFLG2",
"source_type": "CHAR(1)",
"dest_name": "jbflg2",
"dest_type": "text",
"description": "Future Flag 2"
},
{
"source_name": "JBFLG3",
"source_type": "CHAR(1)",
"dest_name": "jbflg3",
"dest_type": "text",
"description": "Future Flag 3"
},
{
"source_name": "JBFLG4",
"source_type": "CHAR(1)",
"dest_name": "jbflg4",
"dest_type": "text",
"description": "Future Flag 4"
},
{
"source_name": "JBFLG5",
"source_type": "CHAR(1)",
"dest_name": "jbflg5",
"dest_type": "text",
"description": "Future Flag 5"
},
{
"source_name": "JBFUT1",
"source_type": "CHAR(3)",
"dest_name": "jbfut1",
"dest_type": "text",
"description": "Future Use 1"
},
{
"source_name": "JBFUT2",
"source_type": "CHAR(3)",
"dest_name": "jbfut2",
"dest_type": "text",
"description": "Future Use 2"
},
{
"source_name": "JBFUT3",
"source_type": "CHAR(3)",
"dest_name": "jbfut3",
"dest_type": "text",
"description": "Future Use 3"
},
{
"source_name": "JBFUT4",
"source_type": "CHAR(3)",
"dest_name": "jbfut4",
"dest_type": "text",
"description": "Future Use 4"
},
{
"source_name": "JBFUT5",
"source_type": "CHAR(3)",
"dest_name": "jbfut5",
"dest_type": "text",
"description": "Future Use 5"
},
{
"source_name": "JBFUT6",
"source_type": "CHAR(5)",
"dest_name": "jbfut6",
"dest_type": "text",
"description": "Future Use 6"
},
{
"source_name": "JBFUT7",
"source_type": "CHAR(5)",
"dest_name": "jbfut7",
"dest_type": "text",
"description": "Future Use 7"
},
{
"source_name": "JBFUT8",
"source_type": "CHAR(5)",
"dest_name": "jbfut8",
"dest_type": "text",
"description": "Future Use 8"
},
{
"source_name": "JBFUT9",
"source_type": "CHAR(5)",
"dest_name": "jbfut9",
"dest_type": "text",
"description": "Future Use 9"
},
{
"source_name": "JBFUT10",
"source_type": "CHAR(5)",
"dest_name": "jbfut10",
"dest_type": "text",
"description": "Future Use 10"
},
{
"source_name": "JBFUT11",
"source_type": "CHAR(10)",
"dest_name": "jbfut11",
"dest_type": "text",
"description": "Last Update Date"
},
{
"source_name": "JBFUT12",
"source_type": "CHAR(10)",
"dest_name": "jbfut12",
"dest_type": "text",
"description": "Update By User ID"
},
{
"source_name": "JBFUT13",
"source_type": "CHAR(10)",
"dest_name": "jbfut13",
"dest_type": "text",
"description": "Future Use 13"
},
{
"source_name": "JBFUT14",
"source_type": "CHAR(10)",
"dest_name": "jbfut14",
"dest_type": "text",
"description": "Future Use 14"
},
{
"source_name": "JBFUT15",
"source_type": "CHAR(10)",
"dest_name": "jbfut15",
"dest_type": "text",
"description": "Future Use 15"
},
{
"source_name": "JBFUT16",
"source_type": "CHAR(20)",
"dest_name": "jbfut16",
"dest_type": "text",
"description": "Future Use 16"
},
{
"source_name": "JBFUT17",
"source_type": "CHAR(20)",
"dest_name": "jbfut17",
"dest_type": "text",
"description": "Future Use 17"
},
{
"source_name": "JBFUT18",
"source_type": "CHAR(20)",
"dest_name": "jbfut18",
"dest_type": "text",
"description": "Future Use 18"
},
{
"source_name": "JBFUT19",
"source_type": "CHAR(20)",
"dest_name": "jbfut19",
"dest_type": "text",
"description": "Future Use 19"
},
{
"source_name": "JBFUT20",
"source_type": "CHAR(20)",
"dest_name": "jbfut20",
"dest_type": "text",
"description": "Future Use 20"
},
{
"source_name": "JBFUT21",
"source_type": "CHAR(30)",
"dest_name": "jbfut21",
"dest_type": "text",
"description": "Future Use 21"
},
{
"source_name": "JBFUT22",
"source_type": "CHAR(30)",
"dest_name": "jbfut22",
"dest_type": "text",
"description": "Future Use 22"
},
{
"source_name": "JBFUT23",
"source_type": "CHAR(30)",
"dest_name": "jbfut23",
"dest_type": "text",
"description": "Future Use 23"
},
{
"source_name": "JBFUT24",
"source_type": "CHAR(30)",
"dest_name": "jbfut24",
"dest_type": "text",
"description": "Future Use 24"
},
{
"source_name": "JBFUT25",
"source_type": "CHAR(30)",
"dest_name": "jbfut25",
"dest_type": "text",
"description": "Future Use 25"
},
{
"source_name": "JBFUT26",
"source_type": "NUMERIC(10,0)",
"dest_name": "jbfut26",
"dest_type": "numeric(10,0)",
"description": "Future Use 26"
},
{
"source_name": "JBFUT27",
"source_type": "NUMERIC(10,0)",
"dest_name": "jbfut27",
"dest_type": "numeric(10,0)",
"description": "Future Use 27"
},
{
"source_name": "JBFUT28",
"source_type": "NUMERIC(10,0)",
"dest_name": "jbfut28",
"dest_type": "numeric(10,0)",
"description": "Future Use 28"
},
{
"source_name": "JBFUT29",
"source_type": "NUMERIC(10,0)",
"dest_name": "jbfut29",
"dest_type": "numeric(10,0)",
"description": "Future Use 29"
},
{
"source_name": "JBFUT30",
"source_type": "NUMERIC(10,0)",
"dest_name": "jbfut30",
"dest_type": "numeric(10,0)",
"description": "Future Use 30"
},
{
"source_name": "JBFUT31",
"source_type": "NUMERIC(15,5)",
"dest_name": "jbfut31",
"dest_type": "numeric(15,5)",
"description": "Future Use 31"
},
{
"source_name": "JBFUT32",
"source_type": "NUMERIC(15,5)",
"dest_name": "jbfut32",
"dest_type": "numeric(15,5)",
"description": "Future Use 32"
},
{
"source_name": "JBFUT33",
"source_type": "NUMERIC(15,5)",
"dest_name": "jbfut33",
"dest_type": "numeric(15,5)",
"description": "Future Use 33"
},
{
"source_name": "JBFUT34",
"source_type": "NUMERIC(15,5)",
"dest_name": "jbfut34",
"dest_type": "numeric(15,5)",
"description": "Future Use 34"
},
{
"source_name": "JBFUT35",
"source_type": "NUMERIC(15,5)",
"dest_name": "jbfut35",
"dest_type": "numeric(15,5)",
"description": "Future Use 35"
}
],
"watermarks": [],
"hooks": []
}

50
config/modules/iprcb.sql Normal file
View File

@ -0,0 +1,50 @@
SELECT
RTRIM(JBTYPE) AS jbtype,
RTRIM(JBCODE) AS jbcode,
RTRIM(JBPLCD) AS jbplcd,
CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat,
CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat,
RTRIM(JBDISC) AS jbdisc,
RTRIM(JBDIST) AS jbdist,
RTRIM(JBUSEG) AS jbuseg,
RTRIM(JBFLG1) AS jbflg1,
RTRIM(JBFLG2) AS jbflg2,
RTRIM(JBFLG3) AS jbflg3,
RTRIM(JBFLG4) AS jbflg4,
RTRIM(JBFLG5) AS jbflg5,
RTRIM(JBFUT1) AS jbfut1,
RTRIM(JBFUT2) AS jbfut2,
RTRIM(JBFUT3) AS jbfut3,
RTRIM(JBFUT4) AS jbfut4,
RTRIM(JBFUT5) AS jbfut5,
RTRIM(JBFUT6) AS jbfut6,
RTRIM(JBFUT7) AS jbfut7,
RTRIM(JBFUT8) AS jbfut8,
RTRIM(JBFUT9) AS jbfut9,
RTRIM(JBFUT10) AS jbfut10,
RTRIM(JBFUT11) AS jbfut11,
RTRIM(JBFUT12) AS jbfut12,
RTRIM(JBFUT13) AS jbfut13,
RTRIM(JBFUT14) AS jbfut14,
RTRIM(JBFUT15) AS jbfut15,
RTRIM(JBFUT16) AS jbfut16,
RTRIM(JBFUT17) AS jbfut17,
RTRIM(JBFUT18) AS jbfut18,
RTRIM(JBFUT19) AS jbfut19,
RTRIM(JBFUT20) AS jbfut20,
RTRIM(JBFUT21) AS jbfut21,
RTRIM(JBFUT22) AS jbfut22,
RTRIM(JBFUT23) AS jbfut23,
RTRIM(JBFUT24) AS jbfut24,
RTRIM(JBFUT25) AS jbfut25,
JBFUT26 AS jbfut26,
JBFUT27 AS jbfut27,
JBFUT28 AS jbfut28,
JBFUT29 AS jbfut29,
JBFUT30 AS jbfut30,
JBFUT31 AS jbfut31,
JBFUT32 AS jbfut32,
JBFUT33 AS jbfut33,
JBFUT34 AS jbfut34,
JBFUT35 AS jbfut35
FROM LGDAT.IPRCB

View File

@ -0,0 +1,64 @@
{
"name": "iprcbhc",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprcbhc",
"staging_table": "pipekit_staging.iprcbhc",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "HC Modified Price List Assignment",
"columns": [
{
"source_name": "JBPLVL",
"source_type": "CHAR(10)",
"dest_name": "jbplvl",
"dest_type": "text",
"description": "Price Level"
},
{
"source_name": "JBPLCD",
"source_type": "CHAR(5)",
"dest_name": "jbplcd",
"dest_type": "text",
"description": "Price List"
},
{
"source_name": "JBFDAT",
"source_type": "DATE",
"dest_name": "jbfdat",
"dest_type": "date",
"description": "Valid from"
},
{
"source_name": "JBTDAT",
"source_type": "DATE",
"dest_name": "jbtdat",
"dest_type": "date",
"description": "Valid to"
},
{
"source_name": "JBDISC",
"source_type": "DECIMAL(6,5)",
"dest_name": "jbdisc",
"dest_type": "numeric(6,5)",
"description": "Discount %"
},
{
"source_name": "JBMDAT",
"source_type": "DATE",
"dest_name": "jbmdat",
"dest_type": "date",
"description": "Last Maintained"
},
{
"source_name": "JBMUSR",
"source_type": "CHAR(10)",
"dest_name": "jbmusr",
"dest_type": "text",
"description": "Last Maintained By"
}
],
"watermarks": [],
"hooks": []
}

View File

@ -0,0 +1,9 @@
SELECT
RTRIM(JBPLVL) AS jbplvl,
RTRIM(JBPLCD) AS jbplcd,
CASE WHEN JBFDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBFDAT END AS jbfdat,
CASE WHEN JBTDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBTDAT END AS jbtdat,
JBDISC AS jbdisc,
CASE WHEN JBMDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE JBMDAT END AS jbmdat,
RTRIM(JBMUSR) AS jbmusr
FROM "CMS.CUSLG".IPRCBHC

148
config/modules/iprcc.json Normal file
View File

@ -0,0 +1,148 @@
{
"name": "iprcc",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprcc",
"staging_table": "pipekit_staging.iprcc",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Price list file 6.0",
"columns": [
{
"source_name": "JCPLCD",
"source_type": "CHAR(5)",
"dest_name": "jcplcd",
"dest_type": "text",
"description": "Price List Code"
},
{
"source_name": "JCPART",
"source_type": "CHAR(20)",
"dest_name": "jcpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "JCUNIT",
"source_type": "CHAR(3)",
"dest_name": "jcunit",
"dest_type": "text",
"description": "Pricing Unit"
},
{
"source_name": "JCVOLL",
"source_type": "DECIMAL(12,5)",
"dest_name": "jcvoll",
"dest_type": "numeric(12,5)",
"description": "Volume"
},
{
"source_name": "JCPRIC",
"source_type": "DECIMAL(12,5)",
"dest_name": "jcpric",
"dest_type": "numeric(12,5)",
"description": "Price"
},
{
"source_name": "JCDISC",
"source_type": "CHAR(3)",
"dest_name": "jcdisc",
"dest_type": "text",
"description": "Discount Code"
},
{
"source_name": "JCDISF",
"source_type": "CHAR(1)",
"dest_name": "jcdisf",
"dest_type": "text",
"description": "Discount Flag"
},
{
"source_name": "JCCPCT",
"source_type": "NUMERIC(4,2)",
"dest_name": "jccpct",
"dest_type": "numeric(4,2)",
"description": "Commission %"
},
{
"source_name": "JCCRAT",
"source_type": "NUMERIC(5,2)",
"dest_name": "jccrat",
"dest_type": "numeric(5,2)",
"description": "Commission Rate"
},
{
"source_name": "JCF0CM",
"source_type": "CHAR(1)",
"dest_name": "jcf0cm",
"dest_type": "text",
"description": "Force 0 Commission Flag"
},
{
"source_name": "JCFUT1",
"source_type": "CHAR(1)",
"dest_name": "jcfut1",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT2",
"source_type": "CHAR(1)",
"dest_name": "jcfut2",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT3",
"source_type": "CHAR(1)",
"dest_name": "jcfut3",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT4",
"source_type": "CHAR(5)",
"dest_name": "jcfut4",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT5",
"source_type": "CHAR(5)",
"dest_name": "jcfut5",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT6",
"source_type": "CHAR(10)",
"dest_name": "jcfut6",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT7",
"source_type": "CHAR(10)",
"dest_name": "jcfut7",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT8",
"source_type": "CHAR(20)",
"dest_name": "jcfut8",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "JCFUT9",
"source_type": "CHAR(30)",
"dest_name": "jcfut9",
"dest_type": "text",
"description": "Future Field"
}
],
"watermarks": [],
"hooks": []
}

21
config/modules/iprcc.sql Normal file
View File

@ -0,0 +1,21 @@
SELECT
RTRIM(JCPLCD) AS jcplcd,
RTRIM(JCPART) AS jcpart,
RTRIM(JCUNIT) AS jcunit,
JCVOLL AS jcvoll,
JCPRIC AS jcpric,
RTRIM(JCDISC) AS jcdisc,
RTRIM(JCDISF) AS jcdisf,
JCCPCT AS jccpct,
JCCRAT AS jccrat,
RTRIM(JCF0CM) AS jcf0cm,
RTRIM(JCFUT1) AS jcfut1,
RTRIM(JCFUT2) AS jcfut2,
RTRIM(JCFUT3) AS jcfut3,
RTRIM(JCFUT4) AS jcfut4,
RTRIM(JCFUT5) AS jcfut5,
RTRIM(JCFUT6) AS jcfut6,
RTRIM(JCFUT7) AS jcfut7,
RTRIM(JCFUT8) AS jcfut8,
RTRIM(JCFUT9) AS jcfut9
FROM LGDAT.IPRCC

169
config/modules/iprcctn.json Normal file
View File

@ -0,0 +1,169 @@
{
"name": "iprcctn",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprcctn",
"staging_table": "pipekit_staging.iprcctn",
"merge_strategy": "incremental",
"merge_key": "t8date",
"enabled": 1,
"dest_description": "Price List Trans New Price Detail 6.0",
"columns": [
{
"source_name": "T8PLCD",
"source_type": "CHAR(5)",
"dest_name": "t8plcd",
"dest_type": "text",
"description": "Price List Code"
},
{
"source_name": "T8PART",
"source_type": "CHAR(20)",
"dest_name": "t8part",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "T8UNIT",
"source_type": "CHAR(3)",
"dest_name": "t8unit",
"dest_type": "text",
"description": "Pricing Unit"
},
{
"source_name": "T8DATE",
"source_type": "DATE",
"dest_name": "t8date",
"dest_type": "date",
"description": "Transaction Date"
},
{
"source_name": "T8TIME",
"source_type": "TIME",
"dest_name": "t8time",
"dest_type": "time",
"description": "Transaction Time"
},
{
"source_name": "T8VOLL",
"source_type": "DECIMAL(12,5)",
"dest_name": "t8voll",
"dest_type": "numeric(12,5)",
"description": "New Volume"
},
{
"source_name": "T8PRIC",
"source_type": "DECIMAL(12,5)",
"dest_name": "t8pric",
"dest_type": "numeric(12,5)",
"description": "New Price"
},
{
"source_name": "T8DISC",
"source_type": "CHAR(3)",
"dest_name": "t8disc",
"dest_type": "text",
"description": "New Discount Code"
},
{
"source_name": "T8DISF",
"source_type": "CHAR(1)",
"dest_name": "t8disf",
"dest_type": "text",
"description": "New Discount Flag"
},
{
"source_name": "T8CPCT",
"source_type": "NUMERIC(4,2)",
"dest_name": "t8cpct",
"dest_type": "numeric(4,2)",
"description": "New Commission %"
},
{
"source_name": "T8CRAT",
"source_type": "NUMERIC(5,2)",
"dest_name": "t8crat",
"dest_type": "numeric(5,2)",
"description": "New Comm. Rate"
},
{
"source_name": "T8F0CM",
"source_type": "CHAR(1)",
"dest_name": "t8f0cm",
"dest_type": "text",
"description": "New Force 0 Commission Flag"
},
{
"source_name": "T8FUT1",
"source_type": "CHAR(1)",
"dest_name": "t8fut1",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT2",
"source_type": "CHAR(1)",
"dest_name": "t8fut2",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT3",
"source_type": "CHAR(1)",
"dest_name": "t8fut3",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT4",
"source_type": "CHAR(5)",
"dest_name": "t8fut4",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT5",
"source_type": "CHAR(5)",
"dest_name": "t8fut5",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT6",
"source_type": "CHAR(10)",
"dest_name": "t8fut6",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT7",
"source_type": "CHAR(10)",
"dest_name": "t8fut7",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT8",
"source_type": "CHAR(20)",
"dest_name": "t8fut8",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T8FUT9",
"source_type": "CHAR(30)",
"dest_name": "t8fut9",
"dest_type": "text",
"description": "Future Field"
}
],
"watermarks": [
{
"name": "iprcctn_wm",
"connection": "usmidsap02",
"resolver_sql": "SELECT COALESCE(MAX(t8date), DATE '2000-01-01') FROM cms.iprcctn",
"default_value": null
}
],
"hooks": []
}

View File

@ -0,0 +1,24 @@
SELECT
RTRIM(T8PLCD) AS t8plcd,
RTRIM(T8PART) AS t8part,
RTRIM(T8UNIT) AS t8unit,
CASE WHEN T8DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T8DATE END AS t8date,
T8TIME AS t8time,
T8VOLL AS t8voll,
T8PRIC AS t8pric,
RTRIM(T8DISC) AS t8disc,
RTRIM(T8DISF) AS t8disf,
T8CPCT AS t8cpct,
T8CRAT AS t8crat,
RTRIM(T8F0CM) AS t8f0cm,
RTRIM(T8FUT1) AS t8fut1,
RTRIM(T8FUT2) AS t8fut2,
RTRIM(T8FUT3) AS t8fut3,
RTRIM(T8FUT4) AS t8fut4,
RTRIM(T8FUT5) AS t8fut5,
RTRIM(T8FUT6) AS t8fut6,
RTRIM(T8FUT7) AS t8fut7,
RTRIM(T8FUT8) AS t8fut8,
RTRIM(T8FUT9) AS t8fut9
FROM LGDAT.IPRCCTN
WHERE T8DATE >= '{iprcctn_wm}'

169
config/modules/iprccto.json Normal file
View File

@ -0,0 +1,169 @@
{
"name": "iprccto",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.iprccto",
"staging_table": "pipekit_staging.iprccto",
"merge_strategy": "incremental",
"merge_key": "t7date",
"enabled": 1,
"dest_description": "Price List Old Price Details 6.0",
"columns": [
{
"source_name": "T7PLCD",
"source_type": "CHAR(5)",
"dest_name": "t7plcd",
"dest_type": "text",
"description": "Price List Code"
},
{
"source_name": "T7PART",
"source_type": "CHAR(20)",
"dest_name": "t7part",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "T7UNIT",
"source_type": "CHAR(3)",
"dest_name": "t7unit",
"dest_type": "text",
"description": "Pricing Unit"
},
{
"source_name": "T7DATE",
"source_type": "DATE",
"dest_name": "t7date",
"dest_type": "date",
"description": "Transaction Date"
},
{
"source_name": "T7TIME",
"source_type": "TIME",
"dest_name": "t7time",
"dest_type": "time",
"description": "Transaction Time"
},
{
"source_name": "T7VOLL",
"source_type": "DECIMAL(12,5)",
"dest_name": "t7voll",
"dest_type": "numeric(12,5)",
"description": "Old Volume"
},
{
"source_name": "T7PRIC",
"source_type": "DECIMAL(12,5)",
"dest_name": "t7pric",
"dest_type": "numeric(12,5)",
"description": "Old Price"
},
{
"source_name": "T7DISC",
"source_type": "CHAR(3)",
"dest_name": "t7disc",
"dest_type": "text",
"description": "Old Discount Code"
},
{
"source_name": "T7DISF",
"source_type": "CHAR(1)",
"dest_name": "t7disf",
"dest_type": "text",
"description": "Old Discount Flag"
},
{
"source_name": "T7CPCT",
"source_type": "NUMERIC(4,2)",
"dest_name": "t7cpct",
"dest_type": "numeric(4,2)",
"description": "Old Commission %"
},
{
"source_name": "T7CRAT",
"source_type": "NUMERIC(5,2)",
"dest_name": "t7crat",
"dest_type": "numeric(5,2)",
"description": "Old Comm. Rate"
},
{
"source_name": "T7F0CM",
"source_type": "CHAR(1)",
"dest_name": "t7f0cm",
"dest_type": "text",
"description": "Old Force 0 Commission Flag"
},
{
"source_name": "T7FUT1",
"source_type": "CHAR(1)",
"dest_name": "t7fut1",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT2",
"source_type": "CHAR(1)",
"dest_name": "t7fut2",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT3",
"source_type": "CHAR(1)",
"dest_name": "t7fut3",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT4",
"source_type": "CHAR(5)",
"dest_name": "t7fut4",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT5",
"source_type": "CHAR(5)",
"dest_name": "t7fut5",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT6",
"source_type": "CHAR(10)",
"dest_name": "t7fut6",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT7",
"source_type": "CHAR(10)",
"dest_name": "t7fut7",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT8",
"source_type": "CHAR(20)",
"dest_name": "t7fut8",
"dest_type": "text",
"description": "Future Field"
},
{
"source_name": "T7FUT9",
"source_type": "CHAR(30)",
"dest_name": "t7fut9",
"dest_type": "text",
"description": "Future Field"
}
],
"watermarks": [
{
"name": "iprccto_wm",
"connection": "usmidsap02",
"resolver_sql": "SELECT COALESCE(MAX(t7date), DATE '2000-01-01') FROM cms.iprccto",
"default_value": null
}
],
"hooks": []
}

View File

@ -0,0 +1,24 @@
SELECT
RTRIM(T7PLCD) AS t7plcd,
RTRIM(T7PART) AS t7part,
RTRIM(T7UNIT) AS t7unit,
CASE WHEN T7DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T7DATE END AS t7date,
T7TIME AS t7time,
T7VOLL AS t7voll,
T7PRIC AS t7pric,
RTRIM(T7DISC) AS t7disc,
RTRIM(T7DISF) AS t7disf,
T7CPCT AS t7cpct,
T7CRAT AS t7crat,
RTRIM(T7F0CM) AS t7f0cm,
RTRIM(T7FUT1) AS t7fut1,
RTRIM(T7FUT2) AS t7fut2,
RTRIM(T7FUT3) AS t7fut3,
RTRIM(T7FUT4) AS t7fut4,
RTRIM(T7FUT5) AS t7fut5,
RTRIM(T7FUT6) AS t7fut6,
RTRIM(T7FUT7) AS t7fut7,
RTRIM(T7FUT8) AS t7fut8,
RTRIM(T7FUT9) AS t7fut9
FROM LGDAT.IPRCCTO
WHERE T7DATE >= '{iprccto_wm}'

43
config/modules/irea.json Normal file
View File

@ -0,0 +1,43 @@
{
"name": "irea",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.irea",
"staging_table": "pipekit_staging.irea",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Inactive Reason Master File",
"columns": [
{
"source_name": "WETYPE",
"source_type": "NUMERIC(3,0)",
"dest_name": "wetype",
"dest_type": "numeric(3,0)",
"description": "File Type"
},
{
"source_name": "WEREAS",
"source_type": "CHAR(2)",
"dest_name": "wereas",
"dest_type": "text",
"description": "Reason Code"
},
{
"source_name": "WEDESC",
"source_type": "CHAR(30)",
"dest_name": "wedesc",
"dest_type": "text",
"description": "Reason Description"
},
{
"source_name": "WEFLAG",
"source_type": "CHAR(1)",
"dest_name": "weflag",
"dest_type": "text",
"description": "Default Control"
}
],
"watermarks": [],
"hooks": []
}

6
config/modules/irea.sql Normal file
View File

@ -0,0 +1,6 @@
SELECT
WETYPE AS wetype,
RTRIM(WEREAS) AS wereas,
RTRIM(WEDESC) AS wedesc,
RTRIM(WEFLAG) AS weflag
FROM LGDAT.IREA

View File

@ -0,0 +1,36 @@
{
"name": "macgrp",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.macgrp",
"staging_table": "pipekit_staging.macgrp",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Machine Group File",
"columns": [
{
"source_name": "ADMACG",
"source_type": "CHAR(3)",
"dest_name": "admacg",
"dest_type": "text",
"description": "Machine Group"
},
{
"source_name": "ADMDES",
"source_type": "CHAR(30)",
"dest_name": "admdes",
"dest_type": "text",
"description": "Description"
},
{
"source_name": "ADBK01",
"source_type": "CHAR(31)",
"dest_name": "adbk01",
"dest_type": "text",
"description": "ADBK01"
}
],
"watermarks": [],
"hooks": []
}

View File

@ -0,0 +1,5 @@
SELECT
RTRIM(ADMACG) AS admacg,
RTRIM(ADMDES) AS admdes,
RTRIM(ADBK01) AS adbk01
FROM LGDAT.MACGRP

29
config/modules/majg.json Normal file
View File

@ -0,0 +1,29 @@
{
"name": "majg",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.majg",
"staging_table": "pipekit_staging.majg",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Major Group Codes 6.0",
"columns": [
{
"source_name": "BQGRP",
"source_type": "CHAR(3)",
"dest_name": "bqgrp",
"dest_type": "text",
"description": "Major Group Code"
},
{
"source_name": "BQDES",
"source_type": "CHAR(30)",
"dest_name": "bqdes",
"dest_type": "text",
"description": "Description"
}
],
"watermarks": [],
"hooks": []
}

4
config/modules/majg.sql Normal file
View File

@ -0,0 +1,4 @@
SELECT
RTRIM(BQGRP) AS bqgrp,
RTRIM(BQDES) AS bqdes
FROM LGDAT.MAJG

386
config/modules/methdm.json Normal file
View File

@ -0,0 +1,386 @@
{
"name": "methdm",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.methdm",
"staging_table": "pipekit_staging.methdm",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Method Detail - Material (M-Record) 6.0",
"columns": [
{
"source_name": "AQTYPE",
"source_type": "CHAR(1)",
"dest_name": "aqtype",
"dest_type": "text",
"description": "Record Type"
},
{
"source_name": "AQPART",
"source_type": "CHAR(20)",
"dest_name": "aqpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "AQSEQ#",
"source_type": "NUMERIC(3,0)",
"dest_name": "aqseq#",
"dest_type": "numeric(3,0)",
"description": "Sequence Number"
},
{
"source_name": "AQLIN#",
"source_type": "NUMERIC(4,0)",
"dest_name": "aqlin#",
"dest_type": "numeric(4,0)",
"description": "Line #"
},
{
"source_name": "AQMTLP",
"source_type": "CHAR(20)",
"dest_name": "aqmtlp",
"dest_type": "text",
"description": "Material Part #"
},
{
"source_name": "AQMTLD",
"source_type": "CHAR(30)",
"dest_name": "aqmtld",
"dest_type": "text",
"description": "Material Description"
},
{
"source_name": "AQQPPC",
"source_type": "NUMERIC(10,5)",
"dest_name": "aqqppc",
"dest_type": "numeric(10,5)",
"description": "Quantity per AQQTYM fld"
},
{
"source_name": "AQUNIT",
"source_type": "CHAR(3)",
"dest_name": "aqunit",
"dest_type": "text",
"description": "Unit of Measure"
},
{
"source_name": "AQSQTY",
"source_type": "NUMERIC(8,4)",
"dest_name": "aqsqty",
"dest_type": "numeric(8,4)",
"description": "Spare Parts Quantity"
},
{
"source_name": "AQQTYM",
"source_type": "NUMERIC(6,2)",
"dest_name": "aqqtym",
"dest_type": "numeric(6,2)",
"description": "Quantity Multiplier"
},
{
"source_name": "AQBLWT",
"source_type": "CHAR(1)",
"dest_name": "aqblwt",
"dest_type": "text",
"description": "Blow Through Part"
},
{
"source_name": "AQBK01",
"source_type": "CHAR(3)",
"dest_name": "aqbk01",
"dest_type": "text",
"description": "AQBK01"
},
{
"source_name": "AQSTYP",
"source_type": "CHAR(1)",
"dest_name": "aqstyp",
"dest_type": "text",
"description": "Stock Type"
},
{
"source_name": "AQLEAD",
"source_type": "NUMERIC(3,0)",
"dest_name": "aqlead",
"dest_type": "numeric(3,0)",
"description": "Lead Time"
},
{
"source_name": "AQMAJG",
"source_type": "CHAR(3)",
"dest_name": "aqmajg",
"dest_type": "text",
"description": "Major Group Code"
},
{
"source_name": "AQITM",
"source_type": "NUMERIC(3,0)",
"dest_name": "aqitm",
"dest_type": "numeric(3,0)",
"description": "Item Number"
},
{
"source_name": "AQITMX",
"source_type": "CHAR(1)",
"dest_name": "aqitmx",
"dest_type": "text",
"description": "Item Number Extension"
},
{
"source_name": "AQBK02",
"source_type": "CHAR(14)",
"dest_name": "aqbk02",
"dest_type": "text",
"description": "AQBK02"
},
{
"source_name": "AQALLC",
"source_type": "CHAR(1)",
"dest_name": "aqallc",
"dest_type": "text",
"description": "Allocation"
},
{
"source_name": "AQBACK",
"source_type": "CHAR(1)",
"dest_name": "aqback",
"dest_type": "text",
"description": "Back Flush"
},
{
"source_name": "AQSCRP",
"source_type": "NUMERIC(3,1)",
"dest_name": "aqscrp",
"dest_type": "numeric(3,1)",
"description": "Scrap %"
},
{
"source_name": "AQRQBY",
"source_type": "CHAR(1)",
"dest_name": "aqrqby",
"dest_type": "text",
"description": "Requirement By-product"
},
{
"source_name": "AQSTKL",
"source_type": "CHAR(6)",
"dest_name": "aqstkl",
"dest_type": "text",
"description": "Stock Location"
},
{
"source_name": "AQBK03",
"source_type": "CHAR(9)",
"dest_name": "aqbk03",
"dest_type": "text",
"description": "AQBK03"
},
{
"source_name": "AQDRAW",
"source_type": "CHAR(9)",
"dest_name": "aqdraw",
"dest_type": "text",
"description": "Drawing Number"
},
{
"source_name": "AQDFLC",
"source_type": "CHAR(1)",
"dest_name": "aqdflc",
"dest_type": "text",
"description": "Draw From Loc As Defined"
},
{
"source_name": "AQFUT1",
"source_type": "CHAR(1)",
"dest_name": "aqfut1",
"dest_type": "text",
"description": "Support Sub- Aassembly Dual Reporting"
},
{
"source_name": "AQFUT2",
"source_type": "CHAR(1)",
"dest_name": "aqfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT3",
"source_type": "CHAR(1)",
"dest_name": "aqfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT4",
"source_type": "CHAR(1)",
"dest_name": "aqfut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT5",
"source_type": "CHAR(1)",
"dest_name": "aqfut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT6",
"source_type": "CHAR(3)",
"dest_name": "aqfut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT7",
"source_type": "CHAR(3)",
"dest_name": "aqfut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT8",
"source_type": "CHAR(10)",
"dest_name": "aqfut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUT9",
"source_type": "CHAR(10)",
"dest_name": "aqfut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUTA",
"source_type": "CHAR(20)",
"dest_name": "aqfuta",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "AQFUTB",
"source_type": "NUMERIC(15,5)",
"dest_name": "aqfutb",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "AQFUTC",
"source_type": "NUMERIC(15,5)",
"dest_name": "aqfutc",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "AQFUTD",
"source_type": "NUMERIC(15,5)",
"dest_name": "aqfutd",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "AQFUTE",
"source_type": "NUMERIC(9,0)",
"dest_name": "aqfute",
"dest_type": "numeric(9,0)",
"description": "Future Use"
},
{
"source_name": "AQDEPT",
"source_type": "CHAR(5)",
"dest_name": "aqdept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "AQRESC",
"source_type": "CHAR(5)",
"dest_name": "aqresc",
"dest_type": "text",
"description": "Resource Code"
},
{
"source_name": "AQPLNT",
"source_type": "CHAR(3)",
"dest_name": "aqplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "AQMJCM",
"source_type": "CHAR(1)",
"dest_name": "aqmjcm",
"dest_type": "text",
"description": "Major Component"
},
{
"source_name": "AQECND",
"source_type": "NUMERIC(3,0)",
"dest_name": "aqecnd",
"dest_type": "numeric(3,0)",
"description": "last applied ECN dtl#"
},
{
"source_name": "AQECNL",
"source_type": "NUMERIC(3,0)",
"dest_name": "aqecnl",
"dest_type": "numeric(3,0)",
"description": "last applied ECN line#"
},
{
"source_name": "AQLDAT",
"source_type": "DATE",
"dest_name": "aqldat",
"dest_type": "date",
"description": "last applied ECN date"
},
{
"source_name": "AQLECN",
"source_type": "CHAR(10)",
"dest_name": "aqlecn",
"dest_type": "text",
"description": "last applied ECN#"
},
{
"source_name": "AQLEDAT",
"source_type": "DATE",
"dest_name": "aqledat",
"dest_type": "date",
"description": "ECN Effective Date"
},
{
"source_name": "AQLETME",
"source_type": "NUMERIC(6,0)",
"dest_name": "aqletme",
"dest_type": "numeric(6,0)",
"description": "last applied ECN time"
},
{
"source_name": "AQFUSG",
"source_type": "CHAR(1)",
"dest_name": "aqfusg",
"dest_type": "text",
"description": "Fix Usage Flag"
},
{
"source_name": "AQWUCM",
"source_type": "CHAR(1)",
"dest_name": "aqwucm",
"dest_type": "text",
"description": "Whole Unit Consumption Flag"
},
{
"source_name": "AQRDCF",
"source_type": "NUMERIC(5,5)",
"dest_name": "aqrdcf",
"dest_type": "numeric(5,5)",
"description": "Rounding Cutoff Decimal Value"
}
],
"watermarks": [],
"hooks": []
}

55
config/modules/methdm.sql Normal file
View File

@ -0,0 +1,55 @@
SELECT
RTRIM(AQTYPE) AS aqtype,
RTRIM(AQPART) AS aqpart,
"AQSEQ#" AS "aqseq#",
"AQLIN#" AS "aqlin#",
RTRIM(AQMTLP) AS aqmtlp,
RTRIM(AQMTLD) AS aqmtld,
AQQPPC AS aqqppc,
RTRIM(AQUNIT) AS aqunit,
AQSQTY AS aqsqty,
AQQTYM AS aqqtym,
RTRIM(AQBLWT) AS aqblwt,
RTRIM(AQBK01) AS aqbk01,
RTRIM(AQSTYP) AS aqstyp,
AQLEAD AS aqlead,
RTRIM(AQMAJG) AS aqmajg,
AQITM AS aqitm,
RTRIM(AQITMX) AS aqitmx,
RTRIM(AQBK02) AS aqbk02,
RTRIM(AQALLC) AS aqallc,
RTRIM(AQBACK) AS aqback,
AQSCRP AS aqscrp,
RTRIM(AQRQBY) AS aqrqby,
RTRIM(AQSTKL) AS aqstkl,
RTRIM(AQBK03) AS aqbk03,
RTRIM(AQDRAW) AS aqdraw,
RTRIM(AQDFLC) AS aqdflc,
RTRIM(AQFUT1) AS aqfut1,
RTRIM(AQFUT2) AS aqfut2,
RTRIM(AQFUT3) AS aqfut3,
RTRIM(AQFUT4) AS aqfut4,
RTRIM(AQFUT5) AS aqfut5,
RTRIM(AQFUT6) AS aqfut6,
RTRIM(AQFUT7) AS aqfut7,
RTRIM(AQFUT8) AS aqfut8,
RTRIM(AQFUT9) AS aqfut9,
RTRIM(AQFUTA) AS aqfuta,
AQFUTB AS aqfutb,
AQFUTC AS aqfutc,
AQFUTD AS aqfutd,
AQFUTE AS aqfute,
RTRIM(AQDEPT) AS aqdept,
RTRIM(AQRESC) AS aqresc,
RTRIM(AQPLNT) AS aqplnt,
RTRIM(AQMJCM) AS aqmjcm,
AQECND AS aqecnd,
AQECNL AS aqecnl,
CASE WHEN AQLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLDAT END AS aqldat,
RTRIM(AQLECN) AS aqlecn,
CASE WHEN AQLEDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AQLEDAT END AS aqledat,
AQLETME AS aqletme,
RTRIM(AQFUSG) AS aqfusg,
RTRIM(AQWUCM) AS aqwucm,
AQRDCF AS aqrdcf
FROM LGDAT.METHDM

218
config/modules/methdo.json Normal file
View File

@ -0,0 +1,218 @@
{
"name": "methdo",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.methdo",
"staging_table": "pipekit_staging.methdo",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Method Detail-Outside Service (O-Record)6.0",
"columns": [
{
"source_name": "APTYPE",
"source_type": "CHAR(1)",
"dest_name": "aptype",
"dest_type": "text",
"description": "Record Type"
},
{
"source_name": "APPART",
"source_type": "CHAR(20)",
"dest_name": "appart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "APSEQ#",
"source_type": "NUMERIC(3,0)",
"dest_name": "apseq#",
"dest_type": "numeric(3,0)",
"description": "Sequence Number"
},
{
"source_name": "APLIN#",
"source_type": "NUMERIC(2,0)",
"dest_name": "aplin#",
"dest_type": "numeric(2,0)",
"description": "Line #"
},
{
"source_name": "APVEND",
"source_type": "CHAR(10)",
"dest_name": "apvend",
"dest_type": "text",
"description": "Vendor Code"
},
{
"source_name": "APODES",
"source_type": "CHAR(30)",
"dest_name": "apodes",
"dest_type": "text",
"description": "O/S Description"
},
{
"source_name": "APBQTY",
"source_type": "NUMERIC(8,0)",
"dest_name": "apbqty",
"dest_type": "numeric(8,0)",
"description": "Quantity Based On"
},
{
"source_name": "APTIME",
"source_type": "NUMERIC(5,2)",
"dest_name": "aptime",
"dest_type": "numeric(5,2)",
"description": "Estimated Time"
},
{
"source_name": "APCOST",
"source_type": "NUMERIC(13,5)",
"dest_name": "apcost",
"dest_type": "numeric(13,5)",
"description": "Total Cost"
},
{
"source_name": "APFCSI",
"source_type": "NUMERIC(13,5)",
"dest_name": "apfcsi",
"dest_type": "numeric(13,5)",
"description": "Freight In Cost/Unit"
},
{
"source_name": "APFCSO",
"source_type": "NUMERIC(13,5)",
"dest_name": "apfcso",
"dest_type": "numeric(13,5)",
"description": "Freight Out Cost/Unit"
},
{
"source_name": "APUNCS",
"source_type": "NUMERIC(13,5)",
"dest_name": "apuncs",
"dest_type": "numeric(13,5)",
"description": "O/S Unit Cost"
},
{
"source_name": "APDEPT",
"source_type": "CHAR(5)",
"dest_name": "apdept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "APRESC",
"source_type": "CHAR(2)",
"dest_name": "apresc",
"dest_type": "text",
"description": "Resource"
},
{
"source_name": "APFUT1",
"source_type": "CHAR(1)",
"dest_name": "apfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUT2",
"source_type": "CHAR(1)",
"dest_name": "apfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUT3",
"source_type": "CHAR(1)",
"dest_name": "apfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUT4",
"source_type": "CHAR(1)",
"dest_name": "apfut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUT5",
"source_type": "CHAR(1)",
"dest_name": "apfut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUT6",
"source_type": "CHAR(3)",
"dest_name": "apfut6",
"dest_type": "text",
"description": "Pricing Unit"
},
{
"source_name": "APFUT7",
"source_type": "CHAR(3)",
"dest_name": "apfut7",
"dest_type": "text",
"description": "Order Unit"
},
{
"source_name": "APFUT8",
"source_type": "CHAR(10)",
"dest_name": "apfut8",
"dest_type": "text",
"description": "O/S Currency Code"
},
{
"source_name": "APFUT9",
"source_type": "CHAR(10)",
"dest_name": "apfut9",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "APFUTA",
"source_type": "CHAR(20)",
"dest_name": "apfuta",
"dest_type": "text",
"description": "Exchange Rate on OS Cost"
},
{
"source_name": "APFUTB",
"source_type": "NUMERIC(15,5)",
"dest_name": "apfutb",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "APFUTC",
"source_type": "NUMERIC(15,5)",
"dest_name": "apfutc",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "APFUTD",
"source_type": "NUMERIC(15,5)",
"dest_name": "apfutd",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "APFUTE",
"source_type": "NUMERIC(9,0)",
"dest_name": "apfute",
"dest_type": "numeric(9,0)",
"description": "Future Use"
},
{
"source_name": "APPLNT",
"source_type": "CHAR(3)",
"dest_name": "applnt",
"dest_type": "text",
"description": "Plant Code"
}
],
"watermarks": [],
"hooks": []
}

31
config/modules/methdo.sql Normal file
View File

@ -0,0 +1,31 @@
SELECT
RTRIM(APTYPE) AS aptype,
RTRIM(APPART) AS appart,
"APSEQ#" AS "apseq#",
"APLIN#" AS "aplin#",
RTRIM(APVEND) AS apvend,
RTRIM(APODES) AS apodes,
APBQTY AS apbqty,
APTIME AS aptime,
APCOST AS apcost,
APFCSI AS apfcsi,
APFCSO AS apfcso,
APUNCS AS apuncs,
RTRIM(APDEPT) AS apdept,
RTRIM(APRESC) AS apresc,
RTRIM(APFUT1) AS apfut1,
RTRIM(APFUT2) AS apfut2,
RTRIM(APFUT3) AS apfut3,
RTRIM(APFUT4) AS apfut4,
RTRIM(APFUT5) AS apfut5,
RTRIM(APFUT6) AS apfut6,
RTRIM(APFUT7) AS apfut7,
RTRIM(APFUT8) AS apfut8,
RTRIM(APFUT9) AS apfut9,
RTRIM(APFUTA) AS apfuta,
APFUTB AS apfutb,
APFUTC AS apfutc,
APFUTD AS apfutd,
APFUTE AS apfute,
RTRIM(APPLNT) AS applnt
FROM LGDAT.METHDO

323
config/modules/methdr.json Normal file
View File

@ -0,0 +1,323 @@
{
"name": "methdr",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.methdr",
"staging_table": "pipekit_staging.methdr",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Method Detail - Routings (R-Record) 6.1",
"columns": [
{
"source_name": "AOTYPE",
"source_type": "CHAR(1)",
"dest_name": "aotype",
"dest_type": "text",
"description": "Record Type"
},
{
"source_name": "AOPART",
"source_type": "CHAR(20)",
"dest_name": "aopart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "AOSEQ#",
"source_type": "NUMERIC(3,0)",
"dest_name": "aoseq#",
"dest_type": "numeric(3,0)",
"description": "Sequence Number"
},
{
"source_name": "AOLIN#",
"source_type": "NUMERIC(2,0)",
"dest_name": "aolin#",
"dest_type": "numeric(2,0)",
"description": "Line #"
},
{
"source_name": "AODEPT",
"source_type": "CHAR(5)",
"dest_name": "aodept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "AORESC",
"source_type": "CHAR(5)",
"dest_name": "aoresc",
"dest_type": "text",
"description": "Resource Code"
},
{
"source_name": "AOOPNM",
"source_type": "CHAR(3)",
"dest_name": "aoopnm",
"dest_type": "text",
"description": "Operation Code"
},
{
"source_name": "AOSETP",
"source_type": "NUMERIC(8,2)",
"dest_name": "aosetp",
"dest_type": "numeric(8,2)",
"description": "Setup Standard"
},
{
"source_name": "AORUNS",
"source_type": "NUMERIC(10,4)",
"dest_name": "aoruns",
"dest_type": "numeric(10,4)",
"description": "Schedule Run Standard"
},
{
"source_name": "AORTYP",
"source_type": "CHAR(1)",
"dest_name": "aortyp",
"dest_type": "text",
"description": "Run Type"
},
{
"source_name": "AOSCRW",
"source_type": "NUMERIC(2,0)",
"dest_name": "aoscrw",
"dest_type": "numeric(2,0)",
"description": "Setup Crew"
},
{
"source_name": "AOREPP",
"source_type": "CHAR(1)",
"dest_name": "aorepp",
"dest_type": "text",
"description": "Reporting Point"
},
{
"source_name": "AOLAGT",
"source_type": "NUMERIC(8,2)",
"dest_name": "aolagt",
"dest_type": "numeric(8,2)",
"description": "Lag Time"
},
{
"source_name": "AOTBTH",
"source_type": "NUMERIC(8,0)",
"dest_name": "aotbth",
"dest_type": "numeric(8,0)",
"description": "Transfer Batch"
},
{
"source_name": "AOUNIT",
"source_type": "CHAR(3)",
"dest_name": "aounit",
"dest_type": "text",
"description": "Std. Units"
},
{
"source_name": "AOPRC#",
"source_type": "CHAR(10)",
"dest_name": "aoprc#",
"dest_type": "text",
"description": "Process #"
},
{
"source_name": "AOEFF",
"source_type": "NUMERIC(5,2)",
"dest_name": "aoeff",
"dest_type": "numeric(5,2)",
"description": "Efficiency Percentage"
},
{
"source_name": "AOBK03",
"source_type": "CHAR(5)",
"dest_name": "aobk03",
"dest_type": "text",
"description": "Sched Priority Group"
},
{
"source_name": "AO#MEN",
"source_type": "NUMERIC(2,0)",
"dest_name": "ao#men",
"dest_type": "numeric(2,0)",
"description": "Number Of Men"
},
{
"source_name": "AO#MCH",
"source_type": "NUMERIC(2,0)",
"dest_name": "ao#mch",
"dest_type": "numeric(2,0)",
"description": "Number Of Machines"
},
{
"source_name": "AOEFC1",
"source_type": "NUMERIC(15,9)",
"dest_name": "aoefc1",
"dest_type": "numeric(15,9)",
"description": "Efficiency Factor Before Seq"
},
{
"source_name": "AOEFC2",
"source_type": "NUMERIC(15,9)",
"dest_name": "aoefc2",
"dest_type": "numeric(15,9)",
"description": "Efficiency Factor After Seq"
},
{
"source_name": "AOBK04",
"source_type": "CHAR(8)",
"dest_name": "aobk04",
"dest_type": "text",
"description": "AOBK04"
},
{
"source_name": "AOCTME",
"source_type": "NUMERIC(5,2)",
"dest_name": "aoctme",
"dest_type": "numeric(5,2)",
"description": "Cycle Time (Sec/Part)"
},
{
"source_name": "AOMULT",
"source_type": "NUMERIC(3,0)",
"dest_name": "aomult",
"dest_type": "numeric(3,0)",
"description": "Multiple Parts"
},
{
"source_name": "AOCNOR",
"source_type": "NUMERIC(5,0)",
"dest_name": "aocnor",
"dest_type": "numeric(5,0)",
"description": "Concurrent Resources"
},
{
"source_name": "AOBCDR",
"source_type": "NUMERIC(15,5)",
"dest_name": "aobcdr",
"dest_type": "numeric(15,5)",
"description": "Burden Rate Factor"
},
{
"source_name": "AOFUT1",
"source_type": "CHAR(1)",
"dest_name": "aofut1",
"dest_type": "text",
"description": "(MRP) Create REPP By Tfr Batch Qty"
},
{
"source_name": "AOFUT2",
"source_type": "CHAR(1)",
"dest_name": "aofut2",
"dest_type": "text",
"description": "Standard Cost Rollup By Tfr Batch Qty"
},
{
"source_name": "AOFUT3",
"source_type": "CHAR(1)",
"dest_name": "aofut3",
"dest_type": "text",
"description": "Expected Receipt Created By Trf Batch & Run Rate"
},
{
"source_name": "AOFUT4",
"source_type": "CHAR(10)",
"dest_name": "aofut4",
"dest_type": "text",
"description": "Future Use 4"
},
{
"source_name": "AOFUT5",
"source_type": "CHAR(10)",
"dest_name": "aofut5",
"dest_type": "text",
"description": "Future Use 5"
},
{
"source_name": "AOFUT6",
"source_type": "CHAR(10)",
"dest_name": "aofut6",
"dest_type": "text",
"description": "Future Use 6"
},
{
"source_name": "AOFUT7",
"source_type": "CHAR(20)",
"dest_name": "aofut7",
"dest_type": "text",
"description": "Future Use 7"
},
{
"source_name": "AOFUT8",
"source_type": "CHAR(20)",
"dest_name": "aofut8",
"dest_type": "text",
"description": "Future Use 8"
},
{
"source_name": "AOFUT9",
"source_type": "CHAR(30)",
"dest_name": "aofut9",
"dest_type": "text",
"description": "Future Use 9"
},
{
"source_name": "AOFUTA",
"source_type": "CHAR(30)",
"dest_name": "aofuta",
"dest_type": "text",
"description": "Future Use A"
},
{
"source_name": "AOFUTB",
"source_type": "CHAR(30)",
"dest_name": "aofutb",
"dest_type": "text",
"description": "Future Use B"
},
{
"source_name": "AOFUTC",
"source_type": "NUMERIC(15,5)",
"dest_name": "aofutc",
"dest_type": "numeric(15,5)",
"description": "Costing Run Standard"
},
{
"source_name": "AOFUTD",
"source_type": "NUMERIC(15,5)",
"dest_name": "aofutd",
"dest_type": "numeric(15,5)",
"description": "Theoretical Run Rate"
},
{
"source_name": "AOFUTE",
"source_type": "NUMERIC(15,5)",
"dest_name": "aofute",
"dest_type": "numeric(15,5)",
"description": "Future Use E"
},
{
"source_name": "AOFUTF",
"source_type": "NUMERIC(15,5)",
"dest_name": "aofutf",
"dest_type": "numeric(15,5)",
"description": "Future Use F"
},
{
"source_name": "AOPLNT",
"source_type": "CHAR(3)",
"dest_name": "aoplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "AOSMCH",
"source_type": "NUMERIC(2,0)",
"dest_name": "aosmch",
"dest_type": "numeric(2,0)",
"description": "SetUp Number Machine"
}
],
"watermarks": [],
"hooks": []
}

46
config/modules/methdr.sql Normal file
View File

@ -0,0 +1,46 @@
SELECT
RTRIM(AOTYPE) AS aotype,
RTRIM(AOPART) AS aopart,
"AOSEQ#" AS "aoseq#",
"AOLIN#" AS "aolin#",
RTRIM(AODEPT) AS aodept,
RTRIM(AORESC) AS aoresc,
RTRIM(AOOPNM) AS aoopnm,
AOSETP AS aosetp,
AORUNS AS aoruns,
RTRIM(AORTYP) AS aortyp,
AOSCRW AS aoscrw,
RTRIM(AOREPP) AS aorepp,
AOLAGT AS aolagt,
AOTBTH AS aotbth,
RTRIM(AOUNIT) AS aounit,
RTRIM("AOPRC#") AS "aoprc#",
AOEFF AS aoeff,
RTRIM(AOBK03) AS aobk03,
"AO#MEN" AS "ao#men",
"AO#MCH" AS "ao#mch",
AOEFC1 AS aoefc1,
AOEFC2 AS aoefc2,
RTRIM(AOBK04) AS aobk04,
AOCTME AS aoctme,
AOMULT AS aomult,
AOCNOR AS aocnor,
AOBCDR AS aobcdr,
RTRIM(AOFUT1) AS aofut1,
RTRIM(AOFUT2) AS aofut2,
RTRIM(AOFUT3) AS aofut3,
RTRIM(AOFUT4) AS aofut4,
RTRIM(AOFUT5) AS aofut5,
RTRIM(AOFUT6) AS aofut6,
RTRIM(AOFUT7) AS aofut7,
RTRIM(AOFUT8) AS aofut8,
RTRIM(AOFUT9) AS aofut9,
RTRIM(AOFUTA) AS aofuta,
RTRIM(AOFUTB) AS aofutb,
AOFUTC AS aofutc,
AOFUTD AS aofutd,
AOFUTE AS aofute,
AOFUTF AS aofutf,
RTRIM(AOPLNT) AS aoplnt,
AOSMCH AS aosmch
FROM LGDAT.METHDR

43
config/modules/mmgp.json Normal file
View File

@ -0,0 +1,43 @@
{
"name": "mmgp",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.mmgp",
"staging_table": "pipekit_staging.mmgp",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Minor Group Codes 6.0",
"columns": [
{
"source_name": "BRMGRP",
"source_type": "CHAR(3)",
"dest_name": "brmgrp",
"dest_type": "text",
"description": "Minor Group Code"
},
{
"source_name": "BRDES",
"source_type": "CHAR(18)",
"dest_name": "brdes",
"dest_type": "text",
"description": "Description"
},
{
"source_name": "BR2",
"source_type": "CHAR(2)",
"dest_name": "br2",
"dest_type": "text",
"description": "NOT USED"
},
{
"source_name": "BRGRP",
"source_type": "CHAR(3)",
"dest_name": "brgrp",
"dest_type": "text",
"description": "Major Group Code"
}
],
"watermarks": [],
"hooks": []
}

6
config/modules/mmgp.sql Normal file
View File

@ -0,0 +1,6 @@
SELECT
RTRIM(BRMGRP) AS brmgrp,
RTRIM(BRDES) AS brdes,
RTRIM(BR2) AS br2,
RTRIM(BRGRP) AS brgrp
FROM LGDAT.MMGP

50
config/modules/mmsl.json Normal file
View File

@ -0,0 +1,50 @@
{
"name": "mmsl",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.mmsl",
"staging_table": "pipekit_staging.mmsl",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Sales Codes Master 6.0",
"columns": [
{
"source_name": "BSMJCD",
"source_type": "CHAR(3)",
"dest_name": "bsmjcd",
"dest_type": "text",
"description": "Major Sales Code"
},
{
"source_name": "BSMNCD",
"source_type": "CHAR(3)",
"dest_name": "bsmncd",
"dest_type": "text",
"description": "Minor Sales Code"
},
{
"source_name": "BSDES1",
"source_type": "CHAR(30)",
"dest_name": "bsdes1",
"dest_type": "text",
"description": "Description line 1"
},
{
"source_name": "BSDES2",
"source_type": "CHAR(30)",
"dest_name": "bsdes2",
"dest_type": "text",
"description": "Description line 2"
},
{
"source_name": "BSDATE",
"source_type": "DATE",
"dest_name": "bsdate",
"dest_type": "date",
"description": "Last update date"
}
],
"watermarks": [],
"hooks": []
}

7
config/modules/mmsl.sql Normal file
View File

@ -0,0 +1,7 @@
SELECT
RTRIM(BSMJCD) AS bsmjcd,
RTRIM(BSMNCD) AS bsmncd,
RTRIM(BSDES1) AS bsdes1,
RTRIM(BSDES2) AS bsdes2,
CASE WHEN BSDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BSDATE END AS bsdate
FROM LGDAT.MMSL

View File

@ -0,0 +1,78 @@
{
"name": "opcode",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.opcode",
"staging_table": "pipekit_staging.opcode",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Method Operation Codes 6.1",
"columns": [
{
"source_name": "AECODE",
"source_type": "CHAR(3)",
"dest_name": "aecode",
"dest_type": "text",
"description": "Operation Code"
},
{
"source_name": "AEDES1",
"source_type": "CHAR(30)",
"dest_name": "aedes1",
"dest_type": "text",
"description": "Description 1"
},
{
"source_name": "AEDES2",
"source_type": "CHAR(30)",
"dest_name": "aedes2",
"dest_type": "text",
"description": "Description 2"
},
{
"source_name": "AEDES3",
"source_type": "CHAR(30)",
"dest_name": "aedes3",
"dest_type": "text",
"description": "Description 3"
},
{
"source_name": "AEDES4",
"source_type": "CHAR(30)",
"dest_name": "aedes4",
"dest_type": "text",
"description": "Description 4"
},
{
"source_name": "AEDATE",
"source_type": "DATE",
"dest_name": "aedate",
"dest_type": "date",
"description": "Last Updated"
},
{
"source_name": "AELABR",
"source_type": "NUMERIC(8,2)",
"dest_name": "aelabr",
"dest_type": "numeric(8,2)",
"description": "Operation Labour Rate"
},
{
"source_name": "AEBK01",
"source_type": "CHAR(16)",
"dest_name": "aebk01",
"dest_type": "text",
"description": "AEBK01"
},
{
"source_name": "AEPLNT",
"source_type": "CHAR(3)",
"dest_name": "aeplnt",
"dest_type": "text",
"description": "Plant Code"
}
],
"watermarks": [],
"hooks": []
}

11
config/modules/opcode.sql Normal file
View File

@ -0,0 +1,11 @@
SELECT
RTRIM(AECODE) AS aecode,
RTRIM(AEDES1) AS aedes1,
RTRIM(AEDES2) AS aedes2,
RTRIM(AEDES3) AS aedes3,
RTRIM(AEDES4) AS aedes4,
CASE WHEN AEDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AEDATE END AS aedate,
AELABR AS aelabr,
RTRIM(AEBK01) AS aebk01,
RTRIM(AEPLNT) AS aeplnt
FROM LGDAT.OPCODE

596
config/modules/plnt.json Normal file
View File

@ -0,0 +1,596 @@
{
"name": "plnt",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.plnt",
"staging_table": "pipekit_staging.plnt",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Plant Master File 6.1",
"columns": [
{
"source_name": "YAPLNT",
"source_type": "CHAR(3)",
"dest_name": "yaplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "YAPNME",
"source_type": "CHAR(30)",
"dest_name": "yapnme",
"dest_type": "text",
"description": "Plant Name"
},
{
"source_name": "YAADR#",
"source_type": "NUMERIC(8,0)",
"dest_name": "yaadr#",
"dest_type": "numeric(8,0)",
"description": "Address Number"
},
{
"source_name": "YASLOC",
"source_type": "CHAR(6)",
"dest_name": "yasloc",
"dest_type": "text",
"description": "Ship From Loc."
},
{
"source_name": "YARLOC",
"source_type": "CHAR(6)",
"dest_name": "yarloc",
"dest_type": "text",
"description": "Recv To Loc."
},
{
"source_name": "YATLOC",
"source_type": "CHAR(6)",
"dest_name": "yatloc",
"dest_type": "text",
"description": "In-Transit Loc."
},
{
"source_name": "YATMZN",
"source_type": "CHAR(2)",
"dest_name": "yatmzn",
"dest_type": "text",
"description": "Time Zone"
},
{
"source_name": "YAMRPS",
"source_type": "NUMERIC(3,0)",
"dest_name": "yamrps",
"dest_type": "numeric(3,0)",
"description": "MRP Sequence"
},
{
"source_name": "YAMTHC",
"source_type": "NUMERIC(3,0)",
"dest_name": "yamthc",
"dest_type": "numeric(3,0)",
"description": "5.1 Data"
},
{
"source_name": "YASLSF",
"source_type": "CHAR(3)",
"dest_name": "yaslsf",
"dest_type": "text",
"description": "Sales Forecast"
},
{
"source_name": "YACUSR",
"source_type": "CHAR(10)",
"dest_name": "yacusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "YACDAT",
"source_type": "DATE",
"dest_name": "yacdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "YACTME",
"source_type": "TIME",
"dest_name": "yactme",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "YAUUSR",
"source_type": "CHAR(10)",
"dest_name": "yauusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "YAUDAT",
"source_type": "DATE",
"dest_name": "yaudat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "YAUTME",
"source_type": "TIME",
"dest_name": "yautme",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "YAFUT1",
"source_type": "CHAR(6)",
"dest_name": "yafut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT2",
"source_type": "CHAR(6)",
"dest_name": "yafut2",
"dest_type": "text",
"description": "WTR In-Trn Rcv Fail-Scan (Bonded)"
},
{
"source_name": "YAFUT3",
"source_type": "CHAR(6)",
"dest_name": "yafut3",
"dest_type": "text",
"description": "WTR In-Trn Rcv Fail-Scan"
},
{
"source_name": "YAFUT4",
"source_type": "CHAR(10)",
"dest_name": "yafut4",
"dest_type": "text",
"description": "5.1 Data"
},
{
"source_name": "YAWIPF",
"source_type": "CHAR(6)",
"dest_name": "yawipf",
"dest_type": "text",
"description": "WIP From Loc"
},
{
"source_name": "YAWIPT",
"source_type": "CHAR(6)",
"dest_name": "yawipt",
"dest_type": "text",
"description": "WIP To Loc"
},
{
"source_name": "YASCPF",
"source_type": "CHAR(6)",
"dest_name": "yascpf",
"dest_type": "text",
"description": "Scrap Recovery Loc"
},
{
"source_name": "YAFUT5",
"source_type": "CHAR(10)",
"dest_name": "yafut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YACOMP",
"source_type": "NUMERIC(2,0)",
"dest_name": "yacomp",
"dest_type": "numeric(2,0)",
"description": "Company Number"
},
{
"source_name": "YAACRL",
"source_type": "NUMERIC(10,0)",
"dest_name": "yaacrl",
"dest_type": "numeric(10,0)",
"description": "A/P Accrual G/L Account"
},
{
"source_name": "YAFUT6",
"source_type": "CHAR(10)",
"dest_name": "yafut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT7",
"source_type": "CHAR(20)",
"dest_name": "yafut7",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT8",
"source_type": "CHAR(20)",
"dest_name": "yafut8",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT9",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut9",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "YAFLG1",
"source_type": "CHAR(1)",
"dest_name": "yaflg1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFLG2",
"source_type": "CHAR(1)",
"dest_name": "yaflg2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFLG3",
"source_type": "CHAR(1)",
"dest_name": "yaflg3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFLG4",
"source_type": "CHAR(1)",
"dest_name": "yaflg4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFLG5",
"source_type": "CHAR(1)",
"dest_name": "yaflg5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAPRCV",
"source_type": "CHAR(6)",
"dest_name": "yaprcv",
"dest_type": "text",
"description": "F/G Receive Loc"
},
{
"source_name": "YAPRTN",
"source_type": "CHAR(6)",
"dest_name": "yaprtn",
"dest_type": "text",
"description": "P/O Return Loc"
},
{
"source_name": "YACONT",
"source_type": "CHAR(30)",
"dest_name": "yacont",
"dest_type": "text",
"description": "Contact Person"
},
{
"source_name": "YAFUT10",
"source_type": "CHAR(6)",
"dest_name": "yafut10",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT11",
"source_type": "CHAR(6)",
"dest_name": "yafut11",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT12",
"source_type": "CHAR(6)",
"dest_name": "yafut12",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT13",
"source_type": "CHAR(3)",
"dest_name": "yafut13",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT14",
"source_type": "CHAR(3)",
"dest_name": "yafut14",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAMDFL",
"source_type": "CHAR(6)",
"dest_name": "yamdfl",
"dest_type": "text",
"description": "Material Draw From Loc"
},
{
"source_name": "YACCSL",
"source_type": "CHAR(6)",
"dest_name": "yaccsl",
"dest_type": "text",
"description": "Customer Con. Loc"
},
{
"source_name": "YAVCSL",
"source_type": "CHAR(6)",
"dest_name": "yavcsl",
"dest_type": "text",
"description": "Vendor Con. Loc"
},
{
"source_name": "YAOSSL",
"source_type": "CHAR(6)",
"dest_name": "yaossl",
"dest_type": "text",
"description": "Dft O/S Loc"
},
{
"source_name": "YATMZC",
"source_type": "CHAR(4)",
"dest_name": "yatmzc",
"dest_type": "text",
"description": "Time Zone Code"
},
{
"source_name": "YARTSI",
"source_type": "CHAR(1)",
"dest_name": "yartsi",
"dest_type": "text",
"description": "NOT USED"
},
{
"source_name": "YAWSFSL",
"source_type": "CHAR(6)",
"dest_name": "yawsfsl",
"dest_type": "text",
"description": "Warranty Ship From Loc"
},
{
"source_name": "YAEMAL",
"source_type": "CHAR(50)",
"dest_name": "yaemal",
"dest_type": "text",
"description": "Email Address"
},
{
"source_name": "YAFACRL",
"source_type": "NUMERIC(10,0)",
"dest_name": "yafacrl",
"dest_type": "numeric(10,0)",
"description": "Freight Accrual Acct"
},
{
"source_name": "YASCDL",
"source_type": "CHAR(6)",
"dest_name": "yascdl",
"dest_type": "text",
"description": "SCD-Part Location"
},
{
"source_name": "YASCPLT",
"source_type": "CHAR(3)",
"dest_name": "yascplt",
"dest_type": "text",
"description": "Plant Code of Service Charge Part"
},
{
"source_name": "YAPCKLT",
"source_type": "NUMERIC(3,0)",
"dest_name": "yapcklt",
"dest_type": "numeric(3,0)",
"description": "Picking Lead Time"
},
{
"source_name": "YASTER",
"source_type": "CHAR(10)",
"dest_name": "yaster",
"dest_type": "text",
"description": "Field Service Territory Code"
},
{
"source_name": "YARPRL",
"source_type": "CHAR(6)",
"dest_name": "yarprl",
"dest_type": "text",
"description": "Repair Type Location"
},
{
"source_name": "YARSLC",
"source_type": "CHAR(6)",
"dest_name": "yarslc",
"dest_type": "text",
"description": "Repair Ship From Location"
},
{
"source_name": "YAHIN",
"source_type": "CHAR(9)",
"dest_name": "yahin",
"dest_type": "text",
"description": "Health Industry Number"
},
{
"source_name": "YADPVT",
"source_type": "CHAR(10)",
"dest_name": "yadpvt",
"dest_type": "text",
"description": "Dept USRDEF verification template"
},
{
"source_name": "YARSVT",
"source_type": "CHAR(10)",
"dest_name": "yarsvt",
"dest_type": "text",
"description": "Resc USRDEF verification template"
},
{
"source_name": "YAAPSB",
"source_type": "CHAR(1)",
"dest_name": "yaapsb",
"dest_type": "text",
"description": "Auto Post SCD BOL"
},
{
"source_name": "YAITBL",
"source_type": "CHAR(6)",
"dest_name": "yaitbl",
"dest_type": "text",
"description": "In Transit Bonded Location"
},
{
"source_name": "YASPLT",
"source_type": "CHAR(3)",
"dest_name": "yasplt",
"dest_type": "text",
"description": "Service Plant"
},
{
"source_name": "YAFUT15",
"source_type": "CHAR(20)",
"dest_name": "yafut15",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT16",
"source_type": "CHAR(20)",
"dest_name": "yafut16",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT17",
"source_type": "CHAR(30)",
"dest_name": "yafut17",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT18",
"source_type": "CHAR(30)",
"dest_name": "yafut18",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT19",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut19",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "YAFUT20",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut20",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "YAFUT21",
"source_type": "CHAR(10)",
"dest_name": "yafut21",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT22",
"source_type": "CHAR(10)",
"dest_name": "yafut22",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT23",
"source_type": "CHAR(10)",
"dest_name": "yafut23",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT24",
"source_type": "CHAR(10)",
"dest_name": "yafut24",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT25",
"source_type": "CHAR(10)",
"dest_name": "yafut25",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT26",
"source_type": "CHAR(1)",
"dest_name": "yafut26",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT27",
"source_type": "CHAR(1)",
"dest_name": "yafut27",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT28",
"source_type": "CHAR(1)",
"dest_name": "yafut28",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT29",
"source_type": "CHAR(1)",
"dest_name": "yafut29",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT30",
"source_type": "CHAR(1)",
"dest_name": "yafut30",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "YAFUT31",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut31",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "YAFUT32",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut32",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "YAFUT33",
"source_type": "NUMERIC(15,5)",
"dest_name": "yafut33",
"dest_type": "numeric(15,5)",
"description": "Future Use"
}
],
"watermarks": [],
"hooks": []
}

85
config/modules/plnt.sql Normal file
View File

@ -0,0 +1,85 @@
SELECT
RTRIM(YAPLNT) AS yaplnt,
RTRIM(YAPNME) AS yapnme,
"YAADR#" AS "yaadr#",
RTRIM(YASLOC) AS yasloc,
RTRIM(YARLOC) AS yarloc,
RTRIM(YATLOC) AS yatloc,
RTRIM(YATMZN) AS yatmzn,
YAMRPS AS yamrps,
YAMTHC AS yamthc,
RTRIM(YASLSF) AS yaslsf,
RTRIM(YACUSR) AS yacusr,
CASE WHEN YACDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YACDAT END AS yacdat,
YACTME AS yactme,
RTRIM(YAUUSR) AS yauusr,
CASE WHEN YAUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE YAUDAT END AS yaudat,
YAUTME AS yautme,
RTRIM(YAFUT1) AS yafut1,
RTRIM(YAFUT2) AS yafut2,
RTRIM(YAFUT3) AS yafut3,
RTRIM(YAFUT4) AS yafut4,
RTRIM(YAWIPF) AS yawipf,
RTRIM(YAWIPT) AS yawipt,
RTRIM(YASCPF) AS yascpf,
RTRIM(YAFUT5) AS yafut5,
YACOMP AS yacomp,
YAACRL AS yaacrl,
RTRIM(YAFUT6) AS yafut6,
RTRIM(YAFUT7) AS yafut7,
RTRIM(YAFUT8) AS yafut8,
YAFUT9 AS yafut9,
RTRIM(YAFLG1) AS yaflg1,
RTRIM(YAFLG2) AS yaflg2,
RTRIM(YAFLG3) AS yaflg3,
RTRIM(YAFLG4) AS yaflg4,
RTRIM(YAFLG5) AS yaflg5,
RTRIM(YAPRCV) AS yaprcv,
RTRIM(YAPRTN) AS yaprtn,
RTRIM(YACONT) AS yacont,
RTRIM(YAFUT10) AS yafut10,
RTRIM(YAFUT11) AS yafut11,
RTRIM(YAFUT12) AS yafut12,
RTRIM(YAFUT13) AS yafut13,
RTRIM(YAFUT14) AS yafut14,
RTRIM(YAMDFL) AS yamdfl,
RTRIM(YACCSL) AS yaccsl,
RTRIM(YAVCSL) AS yavcsl,
RTRIM(YAOSSL) AS yaossl,
RTRIM(YATMZC) AS yatmzc,
RTRIM(YARTSI) AS yartsi,
RTRIM(YAWSFSL) AS yawsfsl,
RTRIM(YAEMAL) AS yaemal,
YAFACRL AS yafacrl,
RTRIM(YASCDL) AS yascdl,
RTRIM(YASCPLT) AS yascplt,
YAPCKLT AS yapcklt,
RTRIM(YASTER) AS yaster,
RTRIM(YARPRL) AS yarprl,
RTRIM(YARSLC) AS yarslc,
RTRIM(YAHIN) AS yahin,
RTRIM(YADPVT) AS yadpvt,
RTRIM(YARSVT) AS yarsvt,
RTRIM(YAAPSB) AS yaapsb,
RTRIM(YAITBL) AS yaitbl,
RTRIM(YASPLT) AS yasplt,
RTRIM(YAFUT15) AS yafut15,
RTRIM(YAFUT16) AS yafut16,
RTRIM(YAFUT17) AS yafut17,
RTRIM(YAFUT18) AS yafut18,
YAFUT19 AS yafut19,
YAFUT20 AS yafut20,
RTRIM(YAFUT21) AS yafut21,
RTRIM(YAFUT22) AS yafut22,
RTRIM(YAFUT23) AS yafut23,
RTRIM(YAFUT24) AS yafut24,
RTRIM(YAFUT25) AS yafut25,
RTRIM(YAFUT26) AS yafut26,
RTRIM(YAFUT27) AS yafut27,
RTRIM(YAFUT28) AS yafut28,
RTRIM(YAFUT29) AS yafut29,
RTRIM(YAFUT30) AS yafut30,
YAFUT31 AS yafut31,
YAFUT32 AS yafut32,
YAFUT33 AS yafut33
FROM LGDAT.PLNT

78
config/modules/punit.json Normal file
View File

@ -0,0 +1,78 @@
{
"name": "punit",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.punit",
"staging_table": "pipekit_staging.punit",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Part/Unit Conversion File 6.0",
"columns": [
{
"source_name": "IHPART",
"source_type": "CHAR(20)",
"dest_name": "ihpart",
"dest_type": "text",
"description": "Part Number"
},
{
"source_name": "IHUNT1",
"source_type": "CHAR(3)",
"dest_name": "ihunt1",
"dest_type": "text",
"description": "Unit1"
},
{
"source_name": "IHUNT2",
"source_type": "CHAR(3)",
"dest_name": "ihunt2",
"dest_type": "text",
"description": "Unit2"
},
{
"source_name": "IHCNV1",
"source_type": "NUMERIC(10,5)",
"dest_name": "ihcnv1",
"dest_type": "numeric(10,5)",
"description": "Conversion 1"
},
{
"source_name": "IHCNV2",
"source_type": "NUMERIC(10,5)",
"dest_name": "ihcnv2",
"dest_type": "numeric(10,5)",
"description": "Conversion 2"
},
{
"source_name": "IHCDAT",
"source_type": "DATE",
"dest_name": "ihcdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "IHCUSR",
"source_type": "CHAR(10)",
"dest_name": "ihcusr",
"dest_type": "text",
"description": "Created By"
},
{
"source_name": "IHUDAT",
"source_type": "DATE",
"dest_name": "ihudat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "IHUUSR",
"source_type": "CHAR(10)",
"dest_name": "ihuusr",
"dest_type": "text",
"description": "Updated By"
}
],
"watermarks": [],
"hooks": []
}

11
config/modules/punit.sql Normal file
View File

@ -0,0 +1,11 @@
SELECT
RTRIM(IHPART) AS ihpart,
RTRIM(IHUNT1) AS ihunt1,
RTRIM(IHUNT2) AS ihunt2,
IHCNV1 AS ihcnv1,
IHCNV2 AS ihcnv2,
CASE WHEN IHCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHCDAT END AS ihcdat,
RTRIM(IHCUSR) AS ihcusr,
CASE WHEN IHUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE IHUDAT END AS ihudat,
RTRIM(IHUUSR) AS ihuusr
FROM LGDAT.PUNIT

456
config/modules/resre.json Normal file
View File

@ -0,0 +1,456 @@
{
"name": "resre",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.resre",
"staging_table": "pipekit_staging.resre",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Resource Master File (Equipment) 6.1",
"columns": [
{
"source_name": "ABTYPE",
"source_type": "CHAR(1)",
"dest_name": "abtype",
"dest_type": "text",
"description": "Always E"
},
{
"source_name": "ABDEPT",
"source_type": "CHAR(5)",
"dest_name": "abdept",
"dest_type": "text",
"description": "Production Department Code"
},
{
"source_name": "ABRESC",
"source_type": "CHAR(5)",
"dest_name": "abresc",
"dest_type": "text",
"description": "Resource Code"
},
{
"source_name": "ABDES",
"source_type": "CHAR(30)",
"dest_name": "abdes",
"dest_type": "text",
"description": "Resource Name"
},
{
"source_name": "ABBRDR",
"source_type": "NUMERIC(8,2)",
"dest_name": "abbrdr",
"dest_type": "numeric(8,2)",
"description": "Fixed Burden Rate"
},
{
"source_name": "ABCAPT",
"source_type": "NUMERIC(4,2)",
"dest_name": "abcapt",
"dest_type": "numeric(4,2)",
"description": "Resource Capacity"
},
{
"source_name": "ABCREW",
"source_type": "NUMERIC(2,0)",
"dest_name": "abcrew",
"dest_type": "numeric(2,0)",
"description": "Default Crew Size"
},
{
"source_name": "ABBRDP",
"source_type": "NUMERIC(4,0)",
"dest_name": "abbrdp",
"dest_type": "numeric(4,0)",
"description": "Fixed Burden %"
},
{
"source_name": "ABBLNK",
"source_type": "CHAR(2)",
"dest_name": "abblnk",
"dest_type": "text",
"description": "Not Used"
},
{
"source_name": "ABSTIM",
"source_type": "TIME",
"dest_name": "abstim",
"dest_type": "time",
"description": "Starting Time"
},
{
"source_name": "ABMACG",
"source_type": "CHAR(3)",
"dest_name": "abmacg",
"dest_type": "text",
"description": "Machine Group"
},
{
"source_name": "ABRDAT",
"source_type": "DATE",
"dest_name": "abrdat",
"dest_type": "date",
"description": "Last Report Date"
},
{
"source_name": "ABRTIM",
"source_type": "TIME",
"dest_name": "abrtim",
"dest_type": "time",
"description": "Last Report Time"
},
{
"source_name": "ABTMZN",
"source_type": "CHAR(4)",
"dest_name": "abtmzn",
"dest_type": "text",
"description": "Time Zone Code"
},
{
"source_name": "ABSCHD",
"source_type": "CHAR(1)",
"dest_name": "abschd",
"dest_type": "text",
"description": "Schedule Resc"
},
{
"source_name": "ABFINS",
"source_type": "CHAR(1)",
"dest_name": "abfins",
"dest_type": "text",
"description": "Finitely Sched Type"
},
{
"source_name": "ABLABS",
"source_type": "NUMERIC(8,2)",
"dest_name": "ablabs",
"dest_type": "numeric(8,2)",
"description": "Set-up Labour Rate"
},
{
"source_name": "ABLABR",
"source_type": "NUMERIC(8,2)",
"dest_name": "ablabr",
"dest_type": "numeric(8,2)",
"description": "Run Labour Rate"
},
{
"source_name": "ABVBRD",
"source_type": "NUMERIC(8,2)",
"dest_name": "abvbrd",
"dest_type": "numeric(8,2)",
"description": "Variable Burden Rate"
},
{
"source_name": "ABFRML",
"source_type": "CHAR(6)",
"dest_name": "abfrml",
"dest_type": "text",
"description": "Def Loc To Draw Inv From"
},
{
"source_name": "ABRCVL",
"source_type": "CHAR(6)",
"dest_name": "abrcvl",
"dest_type": "text",
"description": "Def Loc To Recv Inv To"
},
{
"source_name": "ABUTLP",
"source_type": "NUMERIC(5,2)",
"dest_name": "abutlp",
"dest_type": "numeric(5,2)",
"description": "Utilization Percentage"
},
{
"source_name": "ABBDVP",
"source_type": "NUMERIC(4,0)",
"dest_name": "abbdvp",
"dest_type": "numeric(4,0)",
"description": "Variable Burden %"
},
{
"source_name": "ABWPDR",
"source_type": "CHAR(6)",
"dest_name": "abwpdr",
"dest_type": "text",
"description": "WIP Draw From"
},
{
"source_name": "ABWPRV",
"source_type": "CHAR(6)",
"dest_name": "abwprv",
"dest_type": "text",
"description": "WIP Receive To"
},
{
"source_name": "ABCDRC",
"source_type": "CHAR(10)",
"dest_name": "abcdrc",
"dest_type": "text",
"description": "Cost Driver Code"
},
{
"source_name": "ABCDRF",
"source_type": "NUMERIC(15,5)",
"dest_name": "abcdrf",
"dest_type": "numeric(15,5)",
"description": "Driver Rate Fixed Burden"
},
{
"source_name": "ABCDRV",
"source_type": "NUMERIC(15,5)",
"dest_name": "abcdrv",
"dest_type": "numeric(15,5)",
"description": "Driver Rate Variable Burden"
},
{
"source_name": "ABCDUM",
"source_type": "CHAR(3)",
"dest_name": "abcdum",
"dest_type": "text",
"description": "Driver Rate Unit"
},
{
"source_name": "ABUSLF",
"source_type": "CHAR(1)",
"dest_name": "abuslf",
"dest_type": "text",
"description": "Use Labour Fixed"
},
{
"source_name": "ABUSLV",
"source_type": "CHAR(1)",
"dest_name": "abuslv",
"dest_type": "text",
"description": "Use Labour Variable"
},
{
"source_name": "ABPLNT",
"source_type": "CHAR(3)",
"dest_name": "abplnt",
"dest_type": "text",
"description": "Plant Code"
},
{
"source_name": "ABFUT1",
"source_type": "CHAR(10)",
"dest_name": "abfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT2",
"source_type": "CHAR(10)",
"dest_name": "abfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABWSFI",
"source_type": "CHAR(20)",
"dest_name": "abwsfi",
"dest_type": "text",
"description": "HMI Event Feature Id"
},
{
"source_name": "ABFUT3",
"source_type": "CHAR(10)",
"dest_name": "abfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT4",
"source_type": "CHAR(20)",
"dest_name": "abfut4",
"dest_type": "text",
"description": "Mattec Resource code"
},
{
"source_name": "ABFUT5",
"source_type": "CHAR(30)",
"dest_name": "abfut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT6",
"source_type": "NUMERIC(15,5)",
"dest_name": "abfut6",
"dest_type": "numeric(15,5)",
"description": "Maximum Size"
},
{
"source_name": "ABFUT7",
"source_type": "CHAR(3)",
"dest_name": "abfut7",
"dest_type": "text",
"description": "Maximum Size Unit"
},
{
"source_name": "ABFUT8",
"source_type": "CHAR(1)",
"dest_name": "abfut8",
"dest_type": "text",
"description": "Mattec Resource"
},
{
"source_name": "ABFUT9",
"source_type": "CHAR(1)",
"dest_name": "abfut9",
"dest_type": "text",
"description": "Constraint Type"
},
{
"source_name": "ABFUTA",
"source_type": "CHAR(1)",
"dest_name": "abfuta",
"dest_type": "text",
"description": "Mattec Speed Type"
},
{
"source_name": "ABFUTB",
"source_type": "CHAR(1)",
"dest_name": "abfutb",
"dest_type": "text",
"description": "Post Batch Reporting"
},
{
"source_name": "ABFUTC",
"source_type": "CHAR(1)",
"dest_name": "abfutc",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABDBR",
"source_type": "CHAR(1)",
"dest_name": "abdbr",
"dest_type": "text",
"description": "DBR Resource"
},
{
"source_name": "ABDBUF",
"source_type": "NUMERIC(5,2)",
"dest_name": "abdbuf",
"dest_type": "numeric(5,2)",
"description": "DBR Safety Buffer"
},
{
"source_name": "ABSLTP",
"source_type": "CHAR(1)",
"dest_name": "absltp",
"dest_type": "text",
"description": "Spec. Tolerance Type"
},
{
"source_name": "ABLSL",
"source_type": "NUMERIC(5,2)",
"dest_name": "ablsl",
"dest_type": "numeric(5,2)",
"description": "Lower Spec. Tolerance"
},
{
"source_name": "ABUSL",
"source_type": "NUMERIC(5,2)",
"dest_name": "abusl",
"dest_type": "numeric(5,2)",
"description": "Upper Spec. Tolerance"
},
{
"source_name": "ABNPF",
"source_type": "NUMERIC(3,0)",
"dest_name": "abnpf",
"dest_type": "numeric(3,0)",
"description": "Non-production Limit Factor"
},
{
"source_name": "ABFUT10",
"source_type": "CHAR(10)",
"dest_name": "abfut10",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT11",
"source_type": "CHAR(10)",
"dest_name": "abfut11",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT12",
"source_type": "CHAR(10)",
"dest_name": "abfut12",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT13",
"source_type": "CHAR(10)",
"dest_name": "abfut13",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT14",
"source_type": "CHAR(10)",
"dest_name": "abfut14",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT15",
"source_type": "CHAR(10)",
"dest_name": "abfut15",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT16",
"source_type": "CHAR(20)",
"dest_name": "abfut16",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT17",
"source_type": "CHAR(20)",
"dest_name": "abfut17",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABFUT18",
"source_type": "CHAR(30)",
"dest_name": "abfut18",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "ABVKTR",
"source_type": "CHAR(10)",
"dest_name": "abvktr",
"dest_type": "text",
"description": "Virtual Kanban Time-On-Hand Range Code"
},
{
"source_name": "ABVKTY",
"source_type": "CHAR(1)",
"dest_name": "abvkty",
"dest_type": "text",
"description": "Virtual Kanban Type"
},
{
"source_name": "ABMCOA",
"source_type": "NUMERIC(3,0)",
"dest_name": "abmcoa",
"dest_type": "numeric(3,0)",
"description": "Machine Overall Efficiency"
}
],
"watermarks": [],
"hooks": []
}

65
config/modules/resre.sql Normal file
View File

@ -0,0 +1,65 @@
SELECT
RTRIM(ABTYPE) AS abtype,
RTRIM(ABDEPT) AS abdept,
RTRIM(ABRESC) AS abresc,
RTRIM(ABDES) AS abdes,
ABBRDR AS abbrdr,
ABCAPT AS abcapt,
ABCREW AS abcrew,
ABBRDP AS abbrdp,
RTRIM(ABBLNK) AS abblnk,
ABSTIM AS abstim,
RTRIM(ABMACG) AS abmacg,
CASE WHEN ABRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE ABRDAT END AS abrdat,
ABRTIM AS abrtim,
RTRIM(ABTMZN) AS abtmzn,
RTRIM(ABSCHD) AS abschd,
RTRIM(ABFINS) AS abfins,
ABLABS AS ablabs,
ABLABR AS ablabr,
ABVBRD AS abvbrd,
RTRIM(ABFRML) AS abfrml,
RTRIM(ABRCVL) AS abrcvl,
ABUTLP AS abutlp,
ABBDVP AS abbdvp,
RTRIM(ABWPDR) AS abwpdr,
RTRIM(ABWPRV) AS abwprv,
RTRIM(ABCDRC) AS abcdrc,
ABCDRF AS abcdrf,
ABCDRV AS abcdrv,
RTRIM(ABCDUM) AS abcdum,
RTRIM(ABUSLF) AS abuslf,
RTRIM(ABUSLV) AS abuslv,
RTRIM(ABPLNT) AS abplnt,
RTRIM(ABFUT1) AS abfut1,
RTRIM(ABFUT2) AS abfut2,
RTRIM(ABWSFI) AS abwsfi,
RTRIM(ABFUT3) AS abfut3,
RTRIM(ABFUT4) AS abfut4,
RTRIM(ABFUT5) AS abfut5,
ABFUT6 AS abfut6,
RTRIM(ABFUT7) AS abfut7,
RTRIM(ABFUT8) AS abfut8,
RTRIM(ABFUT9) AS abfut9,
RTRIM(ABFUTA) AS abfuta,
RTRIM(ABFUTB) AS abfutb,
RTRIM(ABFUTC) AS abfutc,
RTRIM(ABDBR) AS abdbr,
ABDBUF AS abdbuf,
RTRIM(ABSLTP) AS absltp,
ABLSL AS ablsl,
ABUSL AS abusl,
ABNPF AS abnpf,
RTRIM(ABFUT10) AS abfut10,
RTRIM(ABFUT11) AS abfut11,
RTRIM(ABFUT12) AS abfut12,
RTRIM(ABFUT13) AS abfut13,
RTRIM(ABFUT14) AS abfut14,
RTRIM(ABFUT15) AS abfut15,
RTRIM(ABFUT16) AS abfut16,
RTRIM(ABFUT17) AS abfut17,
RTRIM(ABFUT18) AS abfut18,
RTRIM(ABVKTR) AS abvktr,
RTRIM(ABVKTY) AS abvkty,
ABMCOA AS abmcoa
FROM LGDAT.RESRE

281
config/modules/sach.json Normal file
View File

@ -0,0 +1,281 @@
{
"name": "sach",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.sach",
"staging_table": "pipekit_staging.sach",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Sales Channel Master",
"columns": [
{
"source_name": "BK7CODE",
"source_type": "CHAR(10)",
"dest_name": "bk7code",
"dest_type": "text",
"description": "Sales Channel"
},
{
"source_name": "BK7DES1",
"source_type": "CHAR(30)",
"dest_name": "bk7des1",
"dest_type": "text",
"description": "Sales Channel Description 1"
},
{
"source_name": "BK7DES2",
"source_type": "CHAR(30)",
"dest_name": "bk7des2",
"dest_type": "text",
"description": "Sales Channel Description 2"
},
{
"source_name": "BK7DES3",
"source_type": "CHAR(30)",
"dest_name": "bk7des3",
"dest_type": "text",
"description": "Sales Channel Description 3"
},
{
"source_name": "BK7TRAD",
"source_type": "CHAR(1)",
"dest_name": "bk7trad",
"dest_type": "text",
"description": "Trading Company"
},
{
"source_name": "BK7CARC",
"source_type": "CHAR(17)",
"dest_name": "bk7carc",
"dest_type": "text",
"description": "Optional Default Carrier Code"
},
{
"source_name": "BK7SERC",
"source_type": "CHAR(3)",
"dest_name": "bk7serc",
"dest_type": "text",
"description": "Optional Default Service Code"
},
{
"source_name": "BK7CUSR",
"source_type": "CHAR(10)",
"dest_name": "bk7cusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "BK7CDAT",
"source_type": "DATE",
"dest_name": "bk7cdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "BK7CTME",
"source_type": "TIME",
"dest_name": "bk7ctme",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "BK7UUSR",
"source_type": "CHAR(10)",
"dest_name": "bk7uusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "BK7UDAT",
"source_type": "DATE",
"dest_name": "bk7udat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "BK7UTME",
"source_type": "TIME",
"dest_name": "bk7utme",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "BK7SNDAT",
"source_type": "CHAR(1)",
"dest_name": "bk7sndat",
"dest_type": "text",
"description": "Send Avatax"
},
{
"source_name": "BK7FUT01",
"source_type": "CHAR(1)",
"dest_name": "bk7fut01",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT02",
"source_type": "CHAR(1)",
"dest_name": "bk7fut02",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT03",
"source_type": "CHAR(1)",
"dest_name": "bk7fut03",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT04",
"source_type": "CHAR(30)",
"dest_name": "bk7fut04",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT05",
"source_type": "CHAR(30)",
"dest_name": "bk7fut05",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT06",
"source_type": "CHAR(30)",
"dest_name": "bk7fut06",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "BK7FUT07",
"source_type": "NUMERIC(15,5)",
"dest_name": "bk7fut07",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "BK7FUT08",
"source_type": "NUMERIC(15,5)",
"dest_name": "bk7fut08",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "BK7FUT09",
"source_type": "NUMERIC(15,5)",
"dest_name": "bk7fut09",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "BK7FUT10",
"source_type": "NUMERIC(15,5)",
"dest_name": "bk7fut10",
"dest_type": "numeric(15,5)",
"description": "Future Use"
},
{
"source_name": "BK7DBUY",
"source_type": "CHAR(1)",
"dest_name": "bk7dbuy",
"dest_type": "text",
"description": "Default Direct Buy"
},
{
"source_name": "BK7DBAC",
"source_type": "CHAR(1)",
"dest_name": "bk7dbac",
"dest_type": "text",
"description": "Default Direct Buy Action"
},
{
"source_name": "BK7PROM",
"source_type": "CHAR(35)",
"dest_name": "bk7prom",
"dest_type": "text",
"description": "Default Promotion Number"
},
{
"source_name": "BK7OTYP",
"source_type": "CHAR(1)",
"dest_name": "bk7otyp",
"dest_type": "text",
"description": "Default Order Type"
},
{
"source_name": "BK7AVAC",
"source_type": "CHAR(1)",
"dest_name": "bk7avac",
"dest_type": "text",
"description": "Check Available Quantity"
},
{
"source_name": "BK7QTHR",
"source_type": "CHAR(2)",
"dest_name": "bk7qthr",
"dest_type": "text",
"description": "Quantity Not Available Hold Reason"
},
{
"source_name": "BK7APPV",
"source_type": "CHAR(1)",
"dest_name": "bk7appv",
"dest_type": "text",
"description": "Approval Required"
},
{
"source_name": "BK7APPD",
"source_type": "NUMERIC(15,5)",
"dest_name": "bk7appd",
"dest_type": "numeric(15,5)",
"description": "Pre-Approved Amount"
},
{
"source_name": "BK7APHR",
"source_type": "CHAR(2)",
"dest_name": "bk7aphr",
"dest_type": "text",
"description": "Pending Approval Hold Reason"
},
{
"source_name": "BK7PLCD",
"source_type": "CHAR(5)",
"dest_name": "bk7plcd",
"dest_type": "text",
"description": "Override Price List Code"
},
{
"source_name": "BK7EDIS",
"source_type": "CHAR(1)",
"dest_name": "bk7edis",
"dest_type": "text",
"description": "Extra Discount/Charge Accepted"
},
{
"source_name": "BK7EXPO",
"source_type": "CHAR(1)",
"dest_name": "bk7expo",
"dest_type": "text",
"description": "Default Expedited Order"
},
{
"source_name": "BK7F0PR",
"source_type": "CHAR(1)",
"dest_name": "bk7f0pr",
"dest_type": "text",
"description": "Force 0 Price"
},
{
"source_name": "BK7PRTY",
"source_type": "NUMERIC(1,0)",
"dest_name": "bk7prty",
"dest_type": "numeric(1,0)",
"description": "Default Priority"
}
],
"watermarks": [],
"hooks": []
}

40
config/modules/sach.sql Normal file
View File

@ -0,0 +1,40 @@
SELECT
RTRIM(BK7CODE) AS bk7code,
RTRIM(BK7DES1) AS bk7des1,
RTRIM(BK7DES2) AS bk7des2,
RTRIM(BK7DES3) AS bk7des3,
RTRIM(BK7TRAD) AS bk7trad,
RTRIM(BK7CARC) AS bk7carc,
RTRIM(BK7SERC) AS bk7serc,
RTRIM(BK7CUSR) AS bk7cusr,
CASE WHEN BK7CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7CDAT END AS bk7cdat,
BK7CTME AS bk7ctme,
RTRIM(BK7UUSR) AS bk7uusr,
CASE WHEN BK7UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BK7UDAT END AS bk7udat,
BK7UTME AS bk7utme,
RTRIM(BK7SNDAT) AS bk7sndat,
RTRIM(BK7FUT01) AS bk7fut01,
RTRIM(BK7FUT02) AS bk7fut02,
RTRIM(BK7FUT03) AS bk7fut03,
RTRIM(BK7FUT04) AS bk7fut04,
RTRIM(BK7FUT05) AS bk7fut05,
RTRIM(BK7FUT06) AS bk7fut06,
BK7FUT07 AS bk7fut07,
BK7FUT08 AS bk7fut08,
BK7FUT09 AS bk7fut09,
BK7FUT10 AS bk7fut10,
RTRIM(BK7DBUY) AS bk7dbuy,
RTRIM(BK7DBAC) AS bk7dbac,
RTRIM(BK7PROM) AS bk7prom,
RTRIM(BK7OTYP) AS bk7otyp,
RTRIM(BK7AVAC) AS bk7avac,
RTRIM(BK7QTHR) AS bk7qthr,
RTRIM(BK7APPV) AS bk7appv,
BK7APPD AS bk7appd,
RTRIM(BK7APHR) AS bk7aphr,
RTRIM(BK7PLCD) AS bk7plcd,
RTRIM(BK7EDIS) AS bk7edis,
RTRIM(BK7EXPO) AS bk7expo,
RTRIM(BK7F0PR) AS bk7f0pr,
BK7PRTY AS bk7prty
FROM LGDAT.SACH

225
config/modules/sscc.json Normal file
View File

@ -0,0 +1,225 @@
{
"name": "sscc",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.sscc",
"staging_table": "pipekit_staging.sscc",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "Style/Size/Color Codes file 6.0",
"columns": [
{
"source_name": "SSCTYP",
"source_type": "CHAR(1)",
"dest_name": "ssctyp",
"dest_type": "text",
"description": "Type"
},
{
"source_name": "SSCCDE",
"source_type": "CHAR(20)",
"dest_name": "ssccde",
"dest_type": "text",
"description": "Code"
},
{
"source_name": "SSCDE1",
"source_type": "CHAR(30)",
"dest_name": "sscde1",
"dest_type": "text",
"description": "Desc. 1"
},
{
"source_name": "SSCDE2",
"source_type": "CHAR(30)",
"dest_name": "sscde2",
"dest_type": "text",
"description": "Desc. 2"
},
{
"source_name": "SSCDE3",
"source_type": "CHAR(30)",
"dest_name": "sscde3",
"dest_type": "text",
"description": "Desc. 3"
},
{
"source_name": "SSCCUSR",
"source_type": "CHAR(10)",
"dest_name": "ssccusr",
"dest_type": "text",
"description": "Created By User"
},
{
"source_name": "SSCCDAT",
"source_type": "DATE",
"dest_name": "ssccdat",
"dest_type": "date",
"description": "Date Created"
},
{
"source_name": "SSCCTME",
"source_type": "TIME",
"dest_name": "sscctme",
"dest_type": "time",
"description": "Time Created"
},
{
"source_name": "SSCUUSR",
"source_type": "CHAR(10)",
"dest_name": "sscuusr",
"dest_type": "text",
"description": "Updated By User"
},
{
"source_name": "SSCUDAT",
"source_type": "DATE",
"dest_name": "sscudat",
"dest_type": "date",
"description": "Date Updated"
},
{
"source_name": "SSCUTME",
"source_type": "TIME",
"dest_name": "sscutme",
"dest_type": "time",
"description": "Time Updated"
},
{
"source_name": "SSCFUT1",
"source_type": "CHAR(1)",
"dest_name": "sscfut1",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT2",
"source_type": "CHAR(1)",
"dest_name": "sscfut2",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT3",
"source_type": "CHAR(20)",
"dest_name": "sscfut3",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT4",
"source_type": "CHAR(20)",
"dest_name": "sscfut4",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT5",
"source_type": "CHAR(30)",
"dest_name": "sscfut5",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCFUT6",
"source_type": "CHAR(30)",
"dest_name": "sscfut6",
"dest_type": "text",
"description": "Future Use"
},
{
"source_name": "SSCLN",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscln",
"dest_type": "numeric(15,5)",
"description": "Length"
},
{
"source_name": "SSCLNU",
"source_type": "CHAR(3)",
"dest_name": "ssclnu",
"dest_type": "text",
"description": "Length Unit"
},
{
"source_name": "SSCWD",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscwd",
"dest_type": "numeric(15,5)",
"description": "Width"
},
{
"source_name": "SSCWDU",
"source_type": "CHAR(3)",
"dest_name": "sscwdu",
"dest_type": "text",
"description": "Width Unit"
},
{
"source_name": "SSCHG",
"source_type": "NUMERIC(15,5)",
"dest_name": "sschg",
"dest_type": "numeric(15,5)",
"description": "Height"
},
{
"source_name": "SSCHGU",
"source_type": "CHAR(3)",
"dest_name": "sschgu",
"dest_type": "text",
"description": "Height Unit"
},
{
"source_name": "SSCWG",
"source_type": "NUMERIC(15,5)",
"dest_name": "sscwg",
"dest_type": "numeric(15,5)",
"description": "Weight"
},
{
"source_name": "SSCWGU",
"source_type": "CHAR(3)",
"dest_name": "sscwgu",
"dest_type": "text",
"description": "Weight Unit"
},
{
"source_name": "SSCFGTY",
"source_type": "CHAR(30)",
"dest_name": "sscfgty",
"dest_type": "text",
"description": "Finished Good Type Code"
},
{
"source_name": "SSCFGAT",
"source_type": "CHAR(30)",
"dest_name": "sscfgat",
"dest_type": "text",
"description": "Finished Good Attribute Code"
},
{
"source_name": "SSCFGCL",
"source_type": "CHAR(30)",
"dest_name": "sscfgcl",
"dest_type": "text",
"description": "Finished Good Colour Type Code"
},
{
"source_name": "SSCFGFT",
"source_type": "CHAR(30)",
"dest_name": "sscfgft",
"dest_type": "text",
"description": "Finished Good Flap Style Code"
},
{
"source_name": "SSCFGFZ",
"source_type": "CHAR(30)",
"dest_name": "sscfgfz",
"dest_type": "text",
"description": "Finished Good Flap Size Code"
}
],
"watermarks": [],
"hooks": []
}

32
config/modules/sscc.sql Normal file
View File

@ -0,0 +1,32 @@
SELECT
RTRIM(SSCTYP) AS ssctyp,
RTRIM(SSCCDE) AS ssccde,
RTRIM(SSCDE1) AS sscde1,
RTRIM(SSCDE2) AS sscde2,
RTRIM(SSCDE3) AS sscde3,
RTRIM(SSCCUSR) AS ssccusr,
CASE WHEN SSCCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE SSCCDAT END AS ssccdat,
SSCCTME AS sscctme,
RTRIM(SSCUUSR) AS sscuusr,
CASE WHEN SSCUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE SSCUDAT END AS sscudat,
SSCUTME AS sscutme,
RTRIM(SSCFUT1) AS sscfut1,
RTRIM(SSCFUT2) AS sscfut2,
RTRIM(SSCFUT3) AS sscfut3,
RTRIM(SSCFUT4) AS sscfut4,
RTRIM(SSCFUT5) AS sscfut5,
RTRIM(SSCFUT6) AS sscfut6,
SSCLN AS sscln,
RTRIM(SSCLNU) AS ssclnu,
SSCWD AS sscwd,
RTRIM(SSCWDU) AS sscwdu,
SSCHG AS sschg,
RTRIM(SSCHGU) AS sschgu,
SSCWG AS sscwg,
RTRIM(SSCWGU) AS sscwgu,
RTRIM(SSCFGTY) AS sscfgty,
RTRIM(SSCFGAT) AS sscfgat,
RTRIM(SSCFGCL) AS sscfgcl,
RTRIM(SSCFGFT) AS sscfgft,
RTRIM(SSCFGFZ) AS sscfgfz
FROM LGDAT.SSCC

1611
config/modules/stka.json Normal file

File diff suppressed because it is too large Load Diff

230
config/modules/stka.sql Normal file
View File

@ -0,0 +1,230 @@
SELECT
RTRIM(V6PART) AS v6part,
RTRIM(V6PLNT) AS v6plnt,
RTRIM(V6UNTI) AS v6unti,
RTRIM(V6RPLN) AS v6rpln,
RTRIM(V6TPLN) AS v6tpln,
V6TDYS AS v6tdys,
V6MRPS AS v6mrps,
RTRIM(V6ABCC) AS v6abcc,
V6CCPY AS v6ccpy,
CASE WHEN V6LCDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6LCDT END AS v6lcdt,
CASE WHEN V6DBCC IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DBCC END AS v6dbcc,
V6ORDQ AS v6ordq,
RTRIM(V6OPCY) AS v6opcy,
V6MULT AS v6mult,
RTRIM(V6FUT1) AS v6fut1,
RTRIM(V6FUT2) AS v6fut2,
RTRIM(V6SCDT) AS v6scdt,
RTRIM(V6PLAN) AS v6plan,
RTRIM(V6CNTR) AS v6cntr,
RTRIM(V6UNTP) AS v6untp,
V6LVL AS v6lvl,
V6PACK AS v6pack,
RTRIM(V6PACU) AS v6pacu,
V6PRPT AS v6prpt,
RTRIM(V6KITC) AS v6kitc,
RTRIM(V6PROC) AS v6proc,
RTRIM(V6LRSP) AS v6lrsp,
V6LRSC AS v6lrsc,
RTRIM(V6LRSF) AS v6lrsf,
RTRIM(V6LRMP) AS v6lrmp,
V6LRMC AS v6lrmc,
RTRIM(V6LRMF) AS v6lrmf,
RTRIM(V6LWSP) AS v6lwsp,
V6LWSC AS v6lwsc,
RTRIM(V6LWSF) AS v6lwsf,
RTRIM(V6LCSP) AS v6lcsp,
V6LCSC AS v6lcsc,
RTRIM(V6LCSF) AS v6lcsf,
RTRIM(V6LCMP) AS v6lcmp,
V6LCMC AS v6lcmc,
RTRIM(V6LCMF) AS v6lcmf,
V6LSSC AS v6lssc,
RTRIM(V6LSSF) AS v6lssf,
RTRIM(V6LSMP) AS v6lsmp,
V6LSMC AS v6lsmc,
RTRIM(V6LSMF) AS v6lsmf,
V6MPCK AS v6mpck,
RTRIM(V6MPKU) AS v6mpku,
V6ALTF AS v6altf,
RTRIM(V6DBUY) AS v6dbuy,
V6SCDP AS v6scdp,
RTRIM(V6SELP) AS v6selp,
V6RCPS AS v6rcps,
RTRIM(V6RECU) AS v6recu,
RTRIM(V6RECC) AS v6recc,
V6FTMF AS v6ftmf,
RTRIM(V6CSMU) AS v6csmu,
RTRIM(V6NTKY) AS v6ntky,
V6MINQ AS v6minq,
V6MAXQ AS v6maxq,
V6MOQT AS v6moqt,
V6ESTV AS v6estv,
RTRIM(V6CORG) AS v6corg,
RTRIM(V6PSOR) AS v6psor,
RTRIM(V6STAT) AS v6stat,
RTRIM(V6REAS) AS v6reas,
RTRIM(V6AUTY) AS v6auty,
RTRIM(V6UNTO) AS v6unto,
RTRIM(V6REQC) AS v6reqc,
RTRIM(V6BUYR) AS v6buyr,
V6LEAD AS v6lead,
V6OPTR AS v6optr,
V6MULTP AS v6multp,
V6MINR AS v6minr,
V6PERC AS v6perc,
V6OLA AS v6ola,
V6MPQT AS v6mpqt,
V6DPST AS v6dpst,
CASE WHEN V6SPDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6SPDT END AS v6spdt,
CASE WHEN V6BBDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6BBDT END AS v6bbdt,
V6ORLT AS v6orlt,
RTRIM(V6AUTR) AS v6autr,
RTRIM(V6REPP) AS v6repp,
V6REPT AS v6rept,
V6SHRK AS v6shrk,
V6FCFN AS v6fcfn,
V6AUTO AS v6auto,
V6OLOK AS v6olok,
RTRIM(V6OEPY) AS v6oepy,
RTRIM(V6PRFR) AS v6prfr,
RTRIM(V6CMTL) AS v6cmtl,
RTRIM(V6DRWS) AS v6drws,
RTRIM(V6DRWL) AS v6drwl,
RTRIM(V6DENC) AS v6denc,
RTRIM(V6DREL) AS v6drel,
CASE WHEN V6DDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DDAT END AS v6ddat,
RTRIM(V6DRWN) AS v6drwn,
RTRIM(V6DRWS2) AS v6drws2,
RTRIM(V6DRWL2) AS v6drwl2,
RTRIM(V6DENC2) AS v6denc2,
RTRIM(V6DREL2) AS v6drel2,
CASE WHEN V6DDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6DDAT2 END AS v6ddat2,
RTRIM(V6DRWN2) AS v6drwn2,
RTRIM(V6LOTF) AS v6lotf,
RTRIM(V6SERF) AS v6serf,
RTRIM(V6LOTB) AS v6lotb,
RTRIM(V6LOTA) AS v6lota,
RTRIM(V6LOTV) AS v6lotv,
RTRIM(V6STCL) AS v6stcl,
RTRIM(V6VLCD) AS v6vlcd,
V6SPPP AS v6sppp,
RTRIM(V6SPPC) AS v6sppc,
V6MPPP AS v6mppp,
RTRIM(V6MPPC) AS v6mppc,
RTRIM(V6FRML) AS v6frml,
RTRIM(V6ISTR) AS v6istr,
RTRIM(V6ENGC) AS v6engc,
RTRIM(V6REVL) AS v6revl,
CASE WHEN V6RDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6RDAT END AS v6rdat,
RTRIM(V6RCVLC) AS v6rcvlc,
RTRIM(V6SFLC) AS v6sflc,
RTRIM(V6CUSR) AS v6cusr,
CASE WHEN V6CDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6CDAT END AS v6cdat,
V6CTME AS v6ctme,
RTRIM(V6UUSR) AS v6uusr,
CASE WHEN V6UDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6UDAT END AS v6udat,
V6UTME AS v6utme,
RTRIM(V6FUT3) AS v6fut3,
RTRIM(V6FUT4) AS v6fut4,
RTRIM(V6FUT5) AS v6fut5,
RTRIM(V6FLG1) AS v6flg1,
RTRIM(V6FLG2) AS v6flg2,
RTRIM(V6FLG3) AS v6flg3,
RTRIM(V6FLG4) AS v6flg4,
RTRIM(V6FLG5) AS v6flg5,
RTRIM(V6FLG6) AS v6flg6,
RTRIM(V6FLG7) AS v6flg7,
RTRIM(V6FLG8) AS v6flg8,
RTRIM(V6FLG9) AS v6flg9,
RTRIM(V6FLG10) AS v6flg10,
V6FUT6 AS v6fut6,
RTRIM(V6FUT7) AS v6fut7,
RTRIM(V6FUT8) AS v6fut8,
RTRIM(V6FUT9) AS v6fut9,
RTRIM(V6FUT10) AS v6fut10,
RTRIM(V6FUT11) AS v6fut11,
RTRIM(V6FUT12) AS v6fut12,
RTRIM(V6FUT13) AS v6fut13,
RTRIM(V6FUT14) AS v6fut14,
RTRIM(V6FUT15) AS v6fut15,
RTRIM(V6FUT16) AS v6fut16,
RTRIM(V6FUT17) AS v6fut17,
RTRIM(V6FUT18) AS v6fut18,
RTRIM(V6FUT19) AS v6fut19,
RTRIM(V6FUT20) AS v6fut20,
RTRIM(V6FUT21) AS v6fut21,
RTRIM(V6FUT22) AS v6fut22,
RTRIM(V6FUT23) AS v6fut23,
RTRIM(V6FUT24) AS v6fut24,
RTRIM(V6FUT25) AS v6fut25,
V6FUT26 AS v6fut26,
V6FUT27 AS v6fut27,
V6FUT28 AS v6fut28,
V6FUT29 AS v6fut29,
V6FUT30 AS v6fut30,
V6FUT31 AS v6fut31,
V6FUT32 AS v6fut32,
V6FUT33 AS v6fut33,
V6FUT34 AS v6fut34,
V6FUT35 AS v6fut35,
CASE WHEN V6FUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT36 END AS v6fut36,
CASE WHEN V6FUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT37 END AS v6fut37,
CASE WHEN V6FUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT38 END AS v6fut38,
CASE WHEN V6FUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT39 END AS v6fut39,
CASE WHEN V6FUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE V6FUT40 END AS v6fut40,
V6FUT41 AS v6fut41,
V6FUT42 AS v6fut42,
V6FUT43 AS v6fut43,
V6FUT44 AS v6fut44,
V6FUT45 AS v6fut45,
RTRIM(V6PRCL) AS v6prcl,
RTRIM(V6DBAC) AS v6dbac,
RTRIM(V6SCDPT) AS v6scdpt,
RTRIM(V6APSUP) AS v6apsup,
RTRIM(V6MATP) AS v6matp,
RTRIM(V6MATM) AS v6matm,
RTRIM(V6MESC) AS v6mesc,
RTRIM(V6CRTM) AS v6crtm,
V6LLED AS v6lled,
RTRIM(V6PCTR) AS v6pctr,
RTRIM(V6INQU) AS v6inqu,
RTRIM(V6CLEXP) AS v6clexp,
RTRIM(V6ATPDRP) AS v6atpdrp,
RTRIM(V6CPJGL) AS v6cpjgl,
RTRIM(V6SHLOTM) AS v6shlotm,
RTRIM(V6WTYSHP) AS v6wtyshp,
RTRIM(V6BSLTM) AS v6bsltm,
RTRIM(V6RQORDI) AS v6rqordi,
RTRIM(V6MBUNT) AS v6mbunt,
RTRIM(V6RQRVQC) AS v6rqrvqc,
RTRIM(V6IEEDTC) AS v6ieedtc,
RTRIM(V6UTDAY) AS v6utday,
RTRIM(V6INSTKR) AS v6instkr,
RTRIM(V6ATSPK) AS v6atspk,
RTRIM(V6CCPTCP) AS v6ccptcp,
RTRIM(V6CALMB) AS v6calmb,
RTRIM(V6MBCALM) AS v6mbcalm,
RTRIM(V6CALITV) AS v6calitv,
V6PCTNCN AS v6pctncn,
V6PDPMLT AS v6pdpmlt,
V6SHPMLT AS v6shpmlt,
V6TOLD AS v6told,
V6NITV AS v6nitv,
V6LNITV AS v6lnitv,
V6MINDV AS v6mindv,
RTRIM(V6HJPP) AS v6hjpp,
RTRIM(V6USHJ) AS v6ushj,
RTRIM(V6USHP) AS v6ushp,
RTRIM(V6FUT46) AS v6fut46,
RTRIM(V6FUT47) AS v6fut47,
RTRIM(V6FUT48) AS v6fut48,
RTRIM(V6FUT49) AS v6fut49,
RTRIM(V6FUT50) AS v6fut50,
RTRIM(V6FUT51) AS v6fut51,
RTRIM(V6FUT52) AS v6fut52,
RTRIM(V6FUT53) AS v6fut53,
V6FUT54 AS v6fut54,
V6FUT55 AS v6fut55
FROM LGDAT.STKA

1730
config/modules/stkmm.json Normal file

File diff suppressed because it is too large Load Diff

247
config/modules/stkmm.sql Normal file
View File

@ -0,0 +1,247 @@
SELECT
RTRIM(AVPART) AS avpart,
RTRIM(AVDES1) AS avdes1,
RTRIM(AVDES2) AS avdes2,
RTRIM(AVDES3) AS avdes3,
RTRIM(AVUNTI) AS avunti,
RTRIM(AVMAJG) AS avmajg,
RTRIM(AVMING) AS avming,
RTRIM(AVMAJS) AS avmajs,
RTRIM(AVMINS) AS avmins,
RTRIM(AVGLCD) AS avglcd,
RTRIM(AVGLED) AS avgled,
RTRIM(AVHARM) AS avharm,
RTRIM(AVCLSS) AS avclss,
RTRIM(AVFUT3) AS avfut3,
RTRIM(AVFUT4) AS avfut4,
RTRIM(AVFUT5) AS avfut5,
RTRIM(AVFUTC) AS avfutc,
RTRIM(AVFUTD) AS avfutd,
RTRIM(AVUPCC) AS avupcc,
AVGTIN AS avgtin,
AVNWHT AS avnwht,
RTRIM(AVNWUN) AS avnwun,
AVSVOL AS avsvol,
RTRIM(AVSVUN) AS avsvun,
RTRIM(AVENGC) AS avengc,
RTRIM(AVREVL) AS avrevl,
CASE WHEN AVRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVRDAT END AS avrdat,
RTRIM(AVCOIL) AS avcoil,
RTRIM(AVFUT9) AS avfut9,
RTRIM(AVMSPC) AS avmspc,
AVSLIF AS avslif,
RTRIM(AVDPLT) AS avdplt,
RTRIM(AVUVER) AS avuver,
RTRIM(AVCATA) AS avcata,
RTRIM(AVFEDC) AS avfedc,
RTRIM(AVTAXR) AS avtaxr,
RTRIM(AVCUST) AS avcust,
RTRIM("AVCPT#") AS "avcpt#",
RTRIM("AVREV#") AS "avrev#",
RTRIM(AVFUT7) AS avfut7,
RTRIM(AVFUT8) AS avfut8,
RTRIM(AVFUTB) AS avfutb,
CASE WHEN AVLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVLDAT END AS avldat,
RTRIM(AVTYPE) AS avtype,
RTRIM(AVFUTK) AS avfutk,
RTRIM(AVFUTN) AS avfutn,
RTRIM(AVPPAP) AS avppap,
RTRIM(AVCUSR) AS avcusr,
CASE WHEN AVCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVCDAT END AS avcdat,
AVCTME AS avctme,
RTRIM(AVUUSR) AS avuusr,
CASE WHEN AVUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVUDAT END AS avudat,
AVUTME AS avutme,
RTRIM(AVSIZC) AS avsizc,
RTRIM(AVSTLC) AS avstlc,
RTRIM(AVCOLC) AS avcolc,
RTRIM(AVASSC) AS avassc,
RTRIM(AVSASC) AS avsasc,
RTRIM(AVLCOIL) AS avlcoil,
RTRIM(AVGDFL) AS avgdfl,
RTRIM(AVVDFL) AS avvdfl,
RTRIM(AVWOQF) AS avwoqf,
RTRIM(AVNMFC) AS avnmfc,
AVFUTH AS avfuth,
AVFUTI AS avfuti,
RTRIM(AVFUTL) AS avfutl,
RTRIM(AVFUTM) AS avfutm,
RTRIM(AVFUTP) AS avfutp,
CASE WHEN AVFUTQ IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUTQ END AS avfutq,
CASE WHEN AVFUTR IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUTR END AS avfutr,
AVPRUN AS avprun,
AVTOTP AS avtotp,
RTRIM(AVDISC) AS avdisc,
RTRIM(AVINVT) AS avinvt,
RTRIM(AVBK01) AS avbk01,
RTRIM(AVBILL) AS avbill,
RTRIM(AVBK04) AS avbk04,
RTRIM(AVBK06) AS avbk06,
RTRIM(AVOLDD) AS avoldd,
RTRIM(AVOLDD2) AS avoldd2,
RTRIM(AVLOTF) AS avlotf,
RTRIM(AVSERF) AS avserf,
RTRIM(AVORIG) AS avorig,
RTRIM(AVPLAN) AS avplan,
AVMINQ AS avminq,
AVMAXQ AS avmaxq,
AVLEAD AS avlead,
RTRIM(AVSCDT) AS avscdt,
AVESTV AS avestv,
RTRIM(AVCNTR) AS avcntr,
RTRIM(AVUNTP) AS avuntp,
AVLVL AS avlvl,
AVMOQT AS avmoqt,
AVPACK AS avpack,
RTRIM(AVPACU) AS avpacu,
AVPRPT AS avprpt,
RTRIM(AVKITC) AS avkitc,
RTRIM(AVPROC) AS avproc,
RTRIM(AVLRSP) AS avlrsp,
AVLRSC AS avlrsc,
RTRIM(AVLRSF) AS avlrsf,
RTRIM(AVLRMP) AS avlrmp,
AVLRMC AS avlrmc,
RTRIM(AVLRMF) AS avlrmf,
RTRIM(AVLWSP) AS avlwsp,
AVLWSC AS avlwsc,
RTRIM(AVLWSF) AS avlwsf,
RTRIM(AVLCSP) AS avlcsp,
AVLCSC AS avlcsc,
RTRIM(AVLCSF) AS avlcsf,
RTRIM(AVLCMP) AS avlcmp,
AVLCMC AS avlcmc,
RTRIM(AVLCMF) AS avlcmf,
AVLSSC AS avlssc,
RTRIM(AVLSSF) AS avlssf,
RTRIM(AVLSMP) AS avlsmp,
AVLSMC AS avlsmc,
RTRIM(AVLSMF) AS avlsmf,
AVMPCK AS avmpck,
RTRIM(AVMPKU) AS avmpku,
AVALTF AS avaltf,
RTRIM(AVDBUY) AS avdbuy,
RTRIM(AVFUT1) AS avfut1,
RTRIM(AVFUT2) AS avfut2,
AVFUT6 AS avfut6,
RTRIM(AVFUTA) AS avfuta,
AVFUTG AS avfutg,
RTRIM(AVRECU) AS avrecu,
AVFTMF AS avftmf,
RTRIM(AVRECC) AS avrecc,
RTRIM(AVFUTJ) AS avfutj,
RTRIM(AVABCC) AS avabcc,
RTRIM(AVCORG) AS avcorg,
AVPERC AS avperc,
AVOPTR AS avoptr,
AVMULT AS avmult,
AVMINR AS avminr,
AVSHRK AS avshrk,
RTRIM(AVSTAT) AS avstat,
RTRIM(AVREAS) AS avreas,
CASE WHEN AVSPDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVSPDT END AS avspdt,
CASE WHEN AVBBDT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVBBDT END AS avbbdt,
RTRIM(AVPSOR) AS avpsor,
RTRIM(AVFUTO) AS avfuto,
RTRIM(AVDRWS) AS avdrws,
RTRIM(AVDRWL) AS avdrwl,
RTRIM(AVDENC) AS avdenc,
RTRIM(AVDREL) AS avdrel,
CASE WHEN AVDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVDDAT END AS avddat,
RTRIM(AVFUTE) AS avfute,
RTRIM(AVDRWS2) AS avdrws2,
RTRIM(AVDRWL2) AS avdrwl2,
RTRIM(AVDENC2) AS avdenc2,
RTRIM(AVDREL2) AS avdrel2,
CASE WHEN AVDDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVDDAT2 END AS avddat2,
RTRIM(AVFUTF) AS avfutf,
RTRIM(AVSTCL) AS avstcl,
RTRIM(AVVLCD) AS avvlcd,
AVSPPP AS avsppp,
RTRIM(AVSPPC) AS avsppc,
AVMPPP AS avmppp,
RTRIM(AVMPPC) AS avmppc,
RTRIM(AVFLG01) AS avflg01,
RTRIM(AVFLG02) AS avflg02,
RTRIM(AVFLG03) AS avflg03,
RTRIM(AVFLG04) AS avflg04,
RTRIM(AVFLG05) AS avflg05,
RTRIM(AVFLG06) AS avflg06,
RTRIM(AVFLG07) AS avflg07,
RTRIM(AVFLG08) AS avflg08,
RTRIM(AVFLG09) AS avflg09,
RTRIM(AVFLG10) AS avflg10,
RTRIM(AVFUT01) AS avfut01,
RTRIM(AVFUT02) AS avfut02,
RTRIM(AVFUT03) AS avfut03,
RTRIM(AVFUT04) AS avfut04,
RTRIM(AVFUT05) AS avfut05,
RTRIM(AVFUT06) AS avfut06,
RTRIM(AVFUT07) AS avfut07,
RTRIM(AVFUT08) AS avfut08,
RTRIM(AVFUT09) AS avfut09,
RTRIM(AVFUT10) AS avfut10,
RTRIM(AVFUT11) AS avfut11,
RTRIM(AVFUT12) AS avfut12,
RTRIM(AVFUT13) AS avfut13,
RTRIM(AVFUT14) AS avfut14,
RTRIM(AVFUT15) AS avfut15,
RTRIM(AVFUT16) AS avfut16,
RTRIM(AVFUT17) AS avfut17,
RTRIM(AVFUT18) AS avfut18,
RTRIM(AVFUT19) AS avfut19,
RTRIM(AVFUT20) AS avfut20,
RTRIM(AVFUT21) AS avfut21,
RTRIM(AVFUT22) AS avfut22,
RTRIM(AVFUT23) AS avfut23,
RTRIM(AVFUT24) AS avfut24,
RTRIM(AVFUT25) AS avfut25,
AVFUT26 AS avfut26,
AVFUT27 AS avfut27,
AVFUT28 AS avfut28,
AVFUT29 AS avfut29,
AVFUT30 AS avfut30,
AVFUT31 AS avfut31,
AVFUT32 AS avfut32,
AVFUT33 AS avfut33,
AVFUT34 AS avfut34,
AVFUT35 AS avfut35,
CASE WHEN AVFUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT36 END AS avfut36,
CASE WHEN AVFUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT37 END AS avfut37,
CASE WHEN AVFUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT38 END AS avfut38,
CASE WHEN AVFUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT39 END AS avfut39,
CASE WHEN AVFUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AVFUT40 END AS avfut40,
AVFUT41 AS avfut41,
AVFUT42 AS avfut42,
AVFUT43 AS avfut43,
AVFUT44 AS avfut44,
AVFUT45 AS avfut45,
RTRIM(AVUDFT) AS avudft,
RTRIM(AVFRML) AS avfrml,
RTRIM(AVHAZA) AS avhaza,
AVLLED AS avlled,
RTRIM(AVDBAC) AS avdbac,
RTRIM(AVSCDPT) AS avscdpt,
RTRIM(AVFIFO) AS avfifo,
RTRIM(AVANTID) AS avantid,
RTRIM(AVSUBT) AS avsubt,
RTRIM(AVPRCL) AS avprcl,
RTRIM(AVOTP) AS avotp,
RTRIM(AVCBYL) AS avcbyl,
RTRIM(AVSRVC) AS avsrvc,
RTRIM(AVSPAL) AS avspal,
RTRIM(AVPGRP) AS avpgrp,
RTRIM(AVUPN) AS avupn,
RTRIM(AVUEQG) AS avueqg,
RTRIM(AVMFRC) AS avmfrc,
RTRIM(AVATFR) AS avatfr,
RTRIM(AVBBKRQ) AS avbbkrq,
RTRIM(AVMLBLC) AS avmlblc,
RTRIM(AVROHSCT) AS avrohsct,
RTRIM(AVROHSCF) AS avrohscf,
RTRIM(AVBBKINT) AS avbbkint,
RTRIM(AVMFCOR) AS avmfcor,
RTRIM(AVMFPOR) AS avmfpor,
RTRIM(AVMFRMC) AS avmfrmc,
RTRIM(AVMFRMS) AS avmfrms
FROM LGDAT.STKMM

1758
config/modules/stkmp.json Normal file

File diff suppressed because it is too large Load Diff

251
config/modules/stkmp.sql Normal file
View File

@ -0,0 +1,251 @@
SELECT
RTRIM(AWPART) AS awpart,
RTRIM(AWDES1) AS awdes1,
RTRIM(AWDES2) AS awdes2,
RTRIM(AWDES3) AS awdes3,
RTRIM(AWUNTI) AS awunti,
RTRIM(AWMAJG) AS awmajg,
RTRIM(AWMING) AS awming,
RTRIM(AWMAJS) AS awmajs,
RTRIM(AWMINS) AS awmins,
RTRIM(AWGLDC) AS awgldc,
RTRIM(AWGLED) AS awgled,
RTRIM(AWHARM) AS awharm,
RTRIM(AWCLSS) AS awclss,
RTRIM(AWFUT3) AS awfut3,
RTRIM(AWFUT4) AS awfut4,
RTRIM(AWFUT5) AS awfut5,
RTRIM(AWFUTC) AS awfutc,
RTRIM(AWFUTD) AS awfutd,
RTRIM(AWUPCC) AS awupcc,
AWGTIN AS awgtin,
AWNWHT AS awnwht,
RTRIM(AWNWUN) AS awnwun,
AWSVOL AS awsvol,
RTRIM(AWSVUN) AS awsvun,
RTRIM(AWTYPE) AS awtype,
RTRIM(AWVEND) AS awvend,
RTRIM("AWVPT#") AS "awvpt#",
RTRIM("AWREV#") AS "awrev#",
RTRIM(AWENGC) AS awengc,
RTRIM(AWREVL) AS awrevl,
CASE WHEN AWRDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWRDAT END AS awrdat,
RTRIM(AWFUT7) AS awfut7,
RTRIM(AWFUT8) AS awfut8,
RTRIM(AWFUTB) AS awfutb,
RTRIM(AWCOIL) AS awcoil,
RTRIM(AWFUT9) AS awfut9,
RTRIM(AWMSPC) AS awmspc,
RTRIM(AWUVER) AS awuver,
RTRIM(AWCATA) AS awcata,
AWSLIF AS awslif,
RTRIM(AWFUTK) AS awfutk,
RTRIM(AWFUTN) AS awfutn,
RTRIM(AWPPAP) AS awppap,
RTRIM(AWDPLT) AS awdplt,
RTRIM(AWGDFL) AS awgdfl,
RTRIM(AWVDFL) AS awvdfl,
RTRIM(AWWOQF) AS awwoqf,
RTRIM(AWLCOIL) AS awlcoil,
RTRIM(AWNMFC) AS awnmfc,
RTRIM(AWSIZC) AS awsizc,
RTRIM(AWSTLC) AS awstlc,
RTRIM(AWCOLC) AS awcolc,
RTRIM(AWASSC) AS awassc,
RTRIM(AWSASC) AS awsasc,
RTRIM(AWCUSR) AS awcusr,
CASE WHEN AWCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWCDAT END AS awcdat,
AWCTME AS awctme,
RTRIM(AWUUSR) AS awuusr,
CASE WHEN AWUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWUDAT END AS awudat,
AWUTME AS awutme,
AWFUTH AS awfuth,
AWFUTI AS awfuti,
AWFUT6 AS awfut6,
RTRIM(AWFUTL) AS awfutl,
RTRIM(AWFUTM) AS awfutm,
RTRIM(AWFUTO) AS awfuto,
RTRIM(AWFUTP) AS awfutp,
CASE WHEN AWFUTQ IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTQ END AS awfutq,
CASE WHEN AWFUTR IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUTR END AS awfutr,
CASE WHEN AWLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWLDAT END AS awldat,
RTRIM(AWLOTF) AS awlotf,
RTRIM(AWSERF) AS awserf,
RTRIM(AWOLDD) AS awoldd,
RTRIM(AWBK02) AS awbk02,
RTRIM(AWOLDD2) AS awoldd2,
RTRIM(AWDISC) AS awdisc,
RTRIM(AWORIG) AS aworig,
RTRIM(AWFEDC) AS awfedc,
RTRIM(AWTAXR) AS awtaxr,
RTRIM(AWBK01) AS awbk01,
RTRIM(AWBK03) AS awbk03,
RTRIM(AWBK04) AS awbk04,
RTRIM(AWBK05) AS awbk05,
RTRIM(AWINVT) AS awinvt,
AWCONV AS awconv,
RTRIM(AWUNTO) AS awunto,
RTRIM(AWREQC) AS awreqc,
AWOPTR AS awoptr,
AWLEAD AS awlead,
RTRIM(AWCORG) AS awcorg,
RTRIM(AWCNTR) AS awcntr,
AWOLA AS awola,
RTRIM(AWUNTP) AS awuntp,
AWSHRK AS awshrk,
AWLVL AS awlvl,
AWMOQT AS awmoqt,
AWPACK AS awpack,
RTRIM(AWPACU) AS awpacu,
AWPRPT AS awprpt,
RTRIM(AWBUYR) AS awbuyr,
RTRIM(AWAUTY) AS awauty,
AWMPQT AS awmpqt,
RTRIM(AWABCC) AS awabcc,
RTRIM(AWSTAT) AS awstat,
RTRIM(AWPROC) AS awproc,
RTRIM(AWLRSP) AS awlrsp,
AWLRSC AS awlrsc,
RTRIM(AWLRSF) AS awlrsf,
RTRIM(AWLRMP) AS awlrmp,
AWLRMC AS awlrmc,
RTRIM(AWLRMF) AS awlrmf,
RTRIM(AWLWSP) AS awlwsp,
AWLWSC AS awlwsc,
RTRIM(AWLWSF) AS awlwsf,
RTRIM(AWLCSP) AS awlcsp,
AWLCSC AS awlcsc,
RTRIM(AWLCSF) AS awlcsf,
RTRIM(AWLCMP) AS awlcmp,
AWLCMC AS awlcmc,
RTRIM(AWLCMF) AS awlcmf,
AWLSSC AS awlssc,
RTRIM(AWLSSF) AS awlssf,
RTRIM(AWLSMP) AS awlsmp,
AWLSMC AS awlsmc,
RTRIM(AWLSMF) AS awlsmf,
AWMPCK AS awmpck,
RTRIM(AWMPKU) AS awmpku,
RTRIM(AWFUTJ) AS awfutj,
AWFUTG AS awfutg,
RTRIM(AWDBUY) AS awdbuy,
AWPERC AS awperc,
RTRIM(AWREAS) AS awreas,
RTRIM(AWFUT1) AS awfut1,
RTRIM(AWFUT2) AS awfut2,
AWALTF AS awaltf,
AWFTMF AS awftmf,
RTRIM(AWRECU) AS awrecu,
RTRIM(AWRECC) AS awrecc,
RTRIM(AWPSOR) AS awpsor,
RTRIM(AWFUTA) AS awfuta,
RTRIM(AWSCDT) AS awscdt,
RTRIM(AWDRWS) AS awdrws,
RTRIM(AWDRWL) AS awdrwl,
RTRIM(AWDENC) AS awdenc,
RTRIM(AWDREL) AS awdrel,
CASE WHEN AWDDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT END AS awddat,
RTRIM(AWDRWS2) AS awdrws2,
RTRIM(AWDRWL2) AS awdrwl2,
RTRIM(AWDENC2) AS awdenc2,
RTRIM(AWDREL2) AS awdrel2,
CASE WHEN AWDDAT2 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWDDAT2 END AS awddat2,
RTRIM(AWFUTE) AS awfute,
RTRIM(AWFUTF) AS awfutf,
RTRIM(AWSTCL) AS awstcl,
RTRIM(AWVLCD) AS awvlcd,
AWSPPP AS awsppp,
RTRIM(AWSPPC) AS awsppc,
AWMPPP AS awmppp,
RTRIM(AWMPPC) AS awmppc,
RTRIM(AWFLG01) AS awflg01,
RTRIM(AWFLG02) AS awflg02,
RTRIM(AWFLG03) AS awflg03,
RTRIM(AWFLG04) AS awflg04,
RTRIM(AWFLG05) AS awflg05,
RTRIM(AWFLG06) AS awflg06,
RTRIM(AWFLG07) AS awflg07,
RTRIM(AWFLG08) AS awflg08,
RTRIM(AWFLG09) AS awflg09,
RTRIM(AWFLG10) AS awflg10,
RTRIM(AWFUT01) AS awfut01,
RTRIM(AWFUT02) AS awfut02,
RTRIM(AWFUT03) AS awfut03,
RTRIM(AWFUT04) AS awfut04,
RTRIM(AWFUT05) AS awfut05,
RTRIM(AWFUT06) AS awfut06,
RTRIM(AWFUT07) AS awfut07,
RTRIM(AWFUT08) AS awfut08,
RTRIM(AWFUT09) AS awfut09,
RTRIM(AWFUT10) AS awfut10,
RTRIM(AWFUT11) AS awfut11,
RTRIM(AWFUT12) AS awfut12,
RTRIM(AWFUT13) AS awfut13,
RTRIM(AWFUT14) AS awfut14,
RTRIM(AWFUT15) AS awfut15,
RTRIM(AWFUT16) AS awfut16,
RTRIM(AWFUT17) AS awfut17,
RTRIM(AWFUT18) AS awfut18,
RTRIM(AWFUT19) AS awfut19,
RTRIM(AWFUT20) AS awfut20,
RTRIM(AWFUT21) AS awfut21,
RTRIM(AWFUT22) AS awfut22,
RTRIM(AWFUT23) AS awfut23,
RTRIM(AWFUT24) AS awfut24,
RTRIM(AWFUT25) AS awfut25,
AWFUT26 AS awfut26,
AWFUT27 AS awfut27,
AWFUT28 AS awfut28,
AWFUT29 AS awfut29,
AWFUT30 AS awfut30,
AWFUT31 AS awfut31,
AWFUT32 AS awfut32,
AWFUT33 AS awfut33,
AWFUT34 AS awfut34,
AWFUT35 AS awfut35,
CASE WHEN AWFUT36 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT36 END AS awfut36,
CASE WHEN AWFUT37 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT37 END AS awfut37,
CASE WHEN AWFUT38 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT38 END AS awfut38,
CASE WHEN AWFUT39 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT39 END AS awfut39,
CASE WHEN AWFUT40 IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AWFUT40 END AS awfut40,
AWFUT41 AS awfut41,
AWFUT42 AS awfut42,
AWFUT43 AS awfut43,
AWFUT44 AS awfut44,
AWFUT45 AS awfut45,
RTRIM(AWUDFT) AS awudft,
RTRIM(AWFRML) AS awfrml,
RTRIM(AWHAZA) AS awhaza,
AWLLED AS awlled,
RTRIM(AWDBAC) AS awdbac,
RTRIM(AWSCDPT) AS awscdpt,
RTRIM(AWFIFO) AS awfifo,
RTRIM(AWANTID) AS awantid,
RTRIM(AWSUBT) AS awsubt,
RTRIM(AWPRCL) AS awprcl,
RTRIM(AWOTP) AS awotp,
RTRIM(AWCBYL) AS awcbyl,
RTRIM(AWSRVC) AS awsrvc,
RTRIM(AWSPAL) AS awspal,
RTRIM(AWPGRP) AS awpgrp,
RTRIM(AWUPN) AS awupn,
RTRIM(AWUEQG) AS awueqg,
RTRIM(AWMROT) AS awmrot,
RTRIM(AWFUT54) AS awfut54,
RTRIM(AWFUT55) AS awfut55,
RTRIM(AWFUT56) AS awfut56,
RTRIM(AWFUT57) AS awfut57,
RTRIM(AWFUT58) AS awfut58,
RTRIM(AWFUT59) AS awfut59,
RTRIM(AWMFRC) AS awmfrc,
RTRIM(AWATFR) AS awatfr,
RTRIM(AWBBKRQ) AS awbbkrq,
RTRIM(AWMLBLC) AS awmlblc,
RTRIM(AWROHSCT) AS awrohsct,
RTRIM(AWROHSCF) AS awrohscf,
RTRIM(AWBBKINT) AS awbbkint,
RTRIM(AWMFCOR) AS awmfcor,
RTRIM(AWMFPOR) AS awmfpor,
RTRIM(AWMFRMC) AS awmfrmc,
RTRIM(AWMFRMS) AS awmfrms
FROM LGDAT.STKMP

190
config/modules/usrcust.json Normal file
View File

@ -0,0 +1,190 @@
{
"name": "usrcust",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.usrcust",
"staging_table": "pipekit_staging.usrcust",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "... USER customer file",
"columns": [
{
"source_name": "CUCUST",
"source_type": "CHAR(8)",
"dest_name": "cucust",
"dest_type": "text",
"description": "CUSTOMER#"
},
{
"source_name": "CUTFMON",
"source_type": "CHAR(1)",
"dest_name": "cutfmon",
"dest_type": "text",
"description": "DELIVER ON MON YN"
},
{
"source_name": "CUTFTUE",
"source_type": "CHAR(1)",
"dest_name": "cutftue",
"dest_type": "text",
"description": "DELIVER ON TUE YN"
},
{
"source_name": "CUTFWED",
"source_type": "CHAR(1)",
"dest_name": "cutfwed",
"dest_type": "text",
"description": "DELIVER ON WED YN"
},
{
"source_name": "CUTFTHR",
"source_type": "CHAR(1)",
"dest_name": "cutfthr",
"dest_type": "text",
"description": "DELIVER ON THR YN"
},
{
"source_name": "CUTFFRI",
"source_type": "CHAR(1)",
"dest_name": "cutffri",
"dest_type": "text",
"description": "DELIVER ON FRI YN"
},
{
"source_name": "CUTFSAT",
"source_type": "CHAR(1)",
"dest_name": "cutfsat",
"dest_type": "text",
"description": "DELIVER ON SAT YN"
},
{
"source_name": "CUTFSUN",
"source_type": "CHAR(1)",
"dest_name": "cutfsun",
"dest_type": "text",
"description": "DELIVER ON SUN YN"
},
{
"source_name": "CUTFCSR",
"source_type": "CHAR(1)",
"dest_name": "cutfcsr",
"dest_type": "text",
"description": "CONTACT CSR YN"
},
{
"source_name": "CUTFCM1",
"source_type": "CHAR(75)",
"dest_name": "cutfcm1",
"dest_type": "text",
"description": "COMMENTS 1"
},
{
"source_name": "CUTFCM2",
"source_type": "CHAR(75)",
"dest_name": "cutfcm2",
"dest_type": "text",
"description": "COMMENTS 2"
},
{
"source_name": "CUTFNM",
"source_type": "CHAR(50)",
"dest_name": "cutfnm",
"dest_type": "text",
"description": "CONTACT NAME"
},
{
"source_name": "CUTFPH",
"source_type": "CHAR(50)",
"dest_name": "cutfph",
"dest_type": "text",
"description": "CONTACT PHONE"
},
{
"source_name": "CUTFEM",
"source_type": "CHAR(150)",
"dest_name": "cutfem",
"dest_type": "text",
"description": "CONTACT EMAIL"
},
{
"source_name": "CUTFCAR",
"source_type": "CHAR(30)",
"dest_name": "cutfcar",
"dest_type": "text",
"description": "CARRIER PREF"
},
{
"source_name": "CUTFEQP",
"source_type": "CHAR(2)",
"dest_name": "cutfeqp",
"dest_type": "text",
"description": "EQUIPMENT"
},
{
"source_name": "CUTFAPT",
"source_type": "CHAR(2)",
"dest_name": "cutfapt",
"dest_type": "text",
"description": "APPT NOTIFY"
},
{
"source_name": "CUTFDEL",
"source_type": "CHAR(2)",
"dest_name": "cutfdel",
"dest_type": "text",
"description": "DELIVERY NOTIFY"
},
{
"source_name": "CUTFRHR",
"source_type": "CHAR(30)",
"dest_name": "cutfrhr",
"dest_type": "text",
"description": "RECEIVING HOURS"
},
{
"source_name": "CUGREP",
"source_type": "CHAR(5)",
"dest_name": "cugrep",
"dest_type": "text",
"description": "INSIDE SALES REP"
},
{
"source_name": "CURREP",
"source_type": "CHAR(5)",
"dest_name": "currep",
"dest_type": "text",
"description": "RETAIL REP"
},
{
"source_name": "CUNREP",
"source_type": "CHAR(5)",
"dest_name": "cunrep",
"dest_type": "text",
"description": "KEY ACCOUNT REP"
},
{
"source_name": "CUMREP",
"source_type": "CHAR(5)",
"dest_name": "cumrep",
"dest_type": "text",
"description": "MISC REP"
},
{
"source_name": "CURCVTMS",
"source_type": "NUMERIC(4,0)",
"dest_name": "curcvtms",
"dest_type": "numeric(4,0)",
"description": "RECEIVING TIME START"
},
{
"source_name": "CURCVTME",
"source_type": "NUMERIC(4,0)",
"dest_name": "curcvtme",
"dest_type": "numeric(4,0)",
"description": "RECEIVING TIME END"
}
],
"watermarks": [],
"hooks": []
}

View File

@ -0,0 +1,27 @@
SELECT
RTRIM(CUCUST) AS cucust,
RTRIM(CUTFMON) AS cutfmon,
RTRIM(CUTFTUE) AS cutftue,
RTRIM(CUTFWED) AS cutfwed,
RTRIM(CUTFTHR) AS cutfthr,
RTRIM(CUTFFRI) AS cutffri,
RTRIM(CUTFSAT) AS cutfsat,
RTRIM(CUTFSUN) AS cutfsun,
RTRIM(CUTFCSR) AS cutfcsr,
RTRIM(CUTFCM1) AS cutfcm1,
RTRIM(CUTFCM2) AS cutfcm2,
RTRIM(CUTFNM) AS cutfnm,
RTRIM(CUTFPH) AS cutfph,
RTRIM(CUTFEM) AS cutfem,
RTRIM(CUTFCAR) AS cutfcar,
RTRIM(CUTFEQP) AS cutfeqp,
RTRIM(CUTFAPT) AS cutfapt,
RTRIM(CUTFDEL) AS cutfdel,
RTRIM(CUTFRHR) AS cutfrhr,
RTRIM(CUGREP) AS cugrep,
RTRIM(CURREP) AS currep,
RTRIM(CUNREP) AS cunrep,
RTRIM(CUMREP) AS cumrep,
CURCVTMS AS curcvtms,
CURCVTME AS curcvtme
FROM LGPGM.USRCUST

85
config/modules/usrd.json Normal file
View File

@ -0,0 +1,85 @@
{
"name": "usrd",
"source_connection": "S78030956",
"dest_connection": "usmidsap02",
"dest_table": "cms.usrd",
"staging_table": "pipekit_staging.usrd",
"merge_strategy": "full",
"merge_key": null,
"enabled": 1,
"dest_description": "User Definition File 5.3",
"columns": [
{
"source_name": "LTSRCE",
"source_type": "CHAR(3)",
"dest_name": "ltsrce",
"dest_type": "text",
"description": "Source"
},
{
"source_name": "LTKEYF",
"source_type": "CHAR(20)",
"dest_name": "ltkeyf",
"dest_type": "text",
"description": "Key Field"
},
{
"source_name": "LTENT#",
"source_type": "NUMERIC(3,0)",
"dest_name": "ltent#",
"dest_type": "numeric(3,0)",
"description": "Entry #"
},
{
"source_name": "LTTTLE",
"source_type": "CHAR(15)",
"dest_name": "ltttle",
"dest_type": "text",
"description": "Title/Prompt"
},
{
"source_name": "LTTYPE",
"source_type": "CHAR(1)",
"dest_name": "lttype",
"dest_type": "text",
"description": "Field Type"
},
{
"source_name": "LTSIZE",
"source_type": "NUMERIC(2,0)",
"dest_name": "ltsize",
"dest_type": "numeric(2,0)",
"description": "Field Size"
},
{
"source_name": "LTDECS",
"source_type": "NUMERIC(2,0)",
"dest_name": "ltdecs",
"dest_type": "numeric(2,0)",
"description": "# of Decimals"
},
{
"source_name": "LTPMPG",
"source_type": "CHAR(10)",
"dest_name": "ltpmpg",
"dest_type": "text",
"description": "Exit Point Prompt Program"
},
{
"source_name": "LTVLPG",
"source_type": "CHAR(10)",
"dest_name": "ltvlpg",
"dest_type": "text",
"description": "Exit Point Validation Program"
},
{
"source_name": "LTLTLE",
"source_type": "CHAR(80)",
"dest_name": "ltltle",
"dest_type": "text",
"description": "Long Title/Prompt"
}
],
"watermarks": [],
"hooks": []
}

12
config/modules/usrd.sql Normal file
View File

@ -0,0 +1,12 @@
SELECT
RTRIM(LTSRCE) AS ltsrce,
RTRIM(LTKEYF) AS ltkeyf,
"LTENT#" AS "ltent#",
RTRIM(LTTTLE) AS ltttle,
RTRIM(LTTYPE) AS lttype,
LTSIZE AS ltsize,
LTDECS AS ltdecs,
RTRIM(LTPMPG) AS ltpmpg,
RTRIM(LTVLPG) AS ltvlpg,
RTRIM(LTLTLE) AS ltltle
FROM LGDAT.USRD

1345
config/modules/vend.json Normal file

File diff suppressed because it is too large Load Diff

192
config/modules/vend.sql Normal file
View File

@ -0,0 +1,192 @@
SELECT
BTPYTD AS btpytd,
RTRIM(BTNAME) AS btname,
RTRIM(BTADR1) AS btadr1,
RTRIM(BTADR2) AS btadr2,
RTRIM(BTADR3) AS btadr3,
RTRIM(BTADR4) AS btadr4,
RTRIM(BTADR5) AS btadr5,
RTRIM(BTADR6) AS btadr6,
RTRIM(BTADR7) AS btadr7,
RTRIM(BTADR8) AS btadr8,
RTRIM(BTADR9) AS btadr9,
RTRIM(BTADR10) AS btadr10,
RTRIM(BTPOST) AS btpost,
RTRIM(BTCITY) AS btcity,
RTRIM("BTTEL#") AS "bttel#",
RTRIM(BTBANK) AS btbank,
BTPERC AS btperc,
BTTERM AS btterm,
BTCYTD AS btcytd,
CASE WHEN BTLDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTLDAT END AS btldat,
RTRIM(BTCLAS) AS btclas,
RTRIM(BTGSTF) AS btgstf,
BTNETD AS btnetd,
RTRIM(BTCURR) AS btcurr,
BTSORT AS btsort,
RTRIM(BTCONT) AS btcont,
RTRIM(BTVEND) AS btvend,
RTRIM("BTFAX#") AS "btfax#",
RTRIM(BTGSTL) AS btgstl,
RTRIM(BTTRMC) AS bttrmc,
RTRIM(BTFOBC) AS btfobc,
RTRIM(BTTAXG) AS bttaxg,
RTRIM(BTTAXR) AS bttaxr,
RTRIM(BTTAXS) AS bttaxs,
RTRIM(BTRMIT) AS btrmit,
RTRIM(BTOSSL) AS btossl,
RTRIM(BTDUNS) AS btduns,
RTRIM(BTAUVF) AS btauvf,
RTRIM(BTCPVR) AS btcpvr,
RTRIM(BTCARC) AS btcarc,
RTRIM(BTCBRC) AS btcbrc,
BTAPPD AS btappd,
RTRIM(BTMINF) AS btminf,
RTRIM(BTVNRM) AS btvnrm,
RTRIM(BTBKRM) AS btbkrm,
RTRIM(BTINSP) AS btinsp,
RTRIM(BTPSAC) AS btpsac,
RTRIM(BTPSFR) AS btpsfr,
RTRIM(BTPSDY) AS btpsdy,
RTRIM(BTPSDR) AS btpsdr,
RTRIM(BTSSAC) AS btssac,
RTRIM(BTSSFR) AS btssfr,
RTRIM(BTSSDY) AS btssdy,
RTRIM(BTSSDR) AS btssdr,
RTRIM(BTPEDI) AS btpedi,
RTRIM(BTSEDI) AS btsedi,
RTRIM(BTCNTC) AS btcntc,
RTRIM(BTFAXP) AS btfaxp,
RTRIM(BTEMAL) AS btemal,
RTRIM(BTWPAG) AS btwpag,
RTRIM(BTFLG1) AS btflg1,
RTRIM(BTCUSR) AS btcusr,
CASE WHEN BTCDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTCDAT END AS btcdat,
BTCTME AS btctme,
RTRIM(BTUUSR) AS btuusr,
CASE WHEN BTUDAT IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BTUDAT END AS btudat,
BTUTME AS btutme,
RTRIM(BTPRCL) AS btprcl,
RTRIM(BTFLG2) AS btflg2,
RTRIM(BTFLG3) AS btflg3,
RTRIM(BTFLG4) AS btflg4,
RTRIM(BTUVER) AS btuver,
RTRIM(BTPRCD) AS btprcd,
RTRIM(BTSTAT) AS btstat,
RTRIM(BTREAS) AS btreas,
RTRIM(BTARCN) AS btarcn,
RTRIM(BTARPN) AS btarpn,
RTRIM(BTARFX) AS btarfx,
RTRIM(BTEBNK) AS btebnk,
BTDACN AS btdacn,
RTRIM(BTDACT) AS btdact,
RTRIM(BTPAYT) AS btpayt,
RTRIM(BTFRMT) AS btfrmt,
RTRIM(BTAPCN) AS btapcn,
RTRIM(BTFUT1) AS btfut1,
RTRIM(BTFUT2) AS btfut2,
RTRIM(BTFUT3) AS btfut3,
RTRIM(BTFUT4) AS btfut4,
RTRIM(BTFUT5) AS btfut5,
BTFUT6 AS btfut6,
RTRIM(BTFUT7) AS btfut7,
RTRIM(BTFUT8) AS btfut8,
RTRIM(BTFUT9) AS btfut9,
RTRIM(BTFUTA) AS btfuta,
RTRIM(BTFUTB) AS btfutb,
RTRIM(BTSPLN) AS btspln,
RTRIM(BTSSHP) AS btsshp,
RTRIM(BTSASN) AS btsasn,
BTSLT AS btslt,
RTRIM(BTSWK) AS btswk,
RTRIM(BTRERA) AS btrera,
RTRIM(BTPPAY) AS btppay,
RTRIM(BTFRBL) AS btfrbl,
RTRIM(BTVNDT) AS btvndt,
RTRIM(BTFUT10) AS btfut10,
RTRIM(BTFUT11) AS btfut11,
RTRIM(BTFUT12) AS btfut12,
RTRIM(BTFUT13) AS btfut13,
RTRIM(BTFUT14) AS btfut14,
RTRIM(BTFUT15) AS btfut15,
BTFUT16 AS btfut16,
BTFUT17 AS btfut17,
BTFUT18 AS btfut18,
RTRIM(BTFLG10) AS btflg10,
RTRIM(BTFLG11) AS btflg11,
RTRIM(BTFLG12) AS btflg12,
RTRIM(BTTMZN) AS bttmzn,
RTRIM(BTDLRF) AS btdlrf,
RTRIM(BTIDSP) AS btidsp,
RTRIM(BTSLTU) AS btsltu,
RTRIM(BTSTRN) AS btstrn,
RTRIM(BTRPRL) AS btrprl,
BTCAMT AS btcamt,
BTUDPC AS btudpc,
BTUDAM AS btudam,
RTRIM(BTPGRP) AS btpgrp,
RTRIM(BT2DFMT) AS bt2dfmt,
RTRIM(BTD2DS) AS btd2ds,
RTRIM(BTLANG) AS btlang,
RTRIM(BTHIN) AS bthin,
RTRIM(BTFEDID) AS btfedid,
RTRIM(BTO2DL) AS bto2dl,
RTRIM(BTASNM) AS btasnm,
RTRIM(BTDCLS) AS btdcls,
RTRIM(BTDSUPP) AS btdsupp,
BTDEPIN AS btdepin,
BTMORQ AS btmorq,
RTRIM(BTDACA) AS btdaca,
RTRIM(BTDOMS) AS btdoms,
RTRIM(BTBREF) AS btbref,
RTRIM(BTSWID) AS btswid,
RTRIM(BTBLAC) AS btblac,
RTRIM(BTABAN) AS btaban,
RTRIM(BTCHIP) AS btchip,
RTRIM(BT3BNAM) AS bt3bnam,
RTRIM(BT3CHIP) AS bt3chip,
RTRIM(BT3SWID) AS bt3swid,
RTRIM(BT3BLAC) AS bt3blac,
RTRIM(BT3IBAN) AS bt3iban,
RTRIM(BT3ADR1) AS bt3adr1,
RTRIM(BT3ADR2) AS bt3adr2,
RTRIM(BT3CITY) AS bt3city,
RTRIM(BT3PROV) AS bt3prov,
RTRIM(BT3POST) AS bt3post,
RTRIM(BT3CRYC) AS bt3cryc,
RTRIM(BT3CONT) AS bt3cont,
RTRIM(BT3PHON) AS bt3phon,
RTRIM(BT3FAXN) AS bt3faxn,
RTRIM(BTFCUR) AS btfcur,
RTRIM(BTEBNM) AS btebnm,
BTFFTH AS btffth,
RTRIM(BTXBNAM) AS btxbnam,
RTRIM(BTXCHIP) AS btxchip,
RTRIM(BTXSWID) AS btxswid,
RTRIM(BTXBLAC) AS btxblac,
RTRIM(BTXIBAN) AS btxiban,
RTRIM(BTXADR1) AS btxadr1,
RTRIM(BTXADR2) AS btxadr2,
RTRIM(BTXCITY) AS btxcity,
RTRIM(BTXPROV) AS btxprov,
RTRIM(BTXPOST) AS btxpost,
RTRIM(BTXCRYC) AS btxcryc,
RTRIM(BTXCONT) AS btxcont,
RTRIM(BTXPHON) AS btxphon,
RTRIM(BTXFAXN) AS btxfaxn,
RTRIM(BTGMT) AS btgmt,
RTRIM(BTMRPN) AS btmrpn,
RTRIM(BTEZAI) AS btezai,
RTRIM(BTFUT19) AS btfut19,
RTRIM(BTFUT20) AS btfut20,
RTRIM(BTFUT21) AS btfut21,
RTRIM(BTFUT22) AS btfut22,
RTRIM(BTFUT23) AS btfut23,
RTRIM(BTFUT24) AS btfut24,
RTRIM(BTFUT25) AS btfut25,
RTRIM(BTFUT26) AS btfut26,
RTRIM(BTFUT27) AS btfut27,
BTFUT28 AS btfut28,
BTFUT29 AS btfut29,
BTFUT30 AS btfut30
FROM LGDAT.VEND