JDE Reference
F0004
controlAlso in JDE WorldUser defined code types — defines each UDC table (system + type) and how its values behave
Module: 00 · FoundationColumn prefix: DT
Fields
10 fields · 2 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | DTSY | SY | System code the UDC type belongs to | String | 4 | |
| Primary key | DTRT | RT | User defined code type (the two-character table id) | String | 2 | |
| DTDL01 | DL01 | Description of the code type | String | 30 | ||
| DTUSEQ | USEQ | Display sequence | Numeric | 4 | ||
| DTUCD1 | UCD1 | Class code grouping for the code type | String | 3 | ||
| DTCDL | CDL | Length of the code values in this type | Numeric | 2 | ||
| DTLN2 | LN2 | Whether a second description line is used | Character | 1 | ||
| DTCNUM | CNUM | Whether code values are numeric (drives right-justified storage) | Character | 1 | ||
| DTMRCT | MRCT | Merge control flag used by environment merges | Character | 1 | ||
| DTMRTY | MRTY | Merge type used by environment merges | String | 2 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F0004on Databricks — Julian dates, implied decimals, and padded strings are already converted. Set your Unity Catalog location and filter values below; they’re substituted into the SQL and the copy button.
Query parameters
-- ============================================================
-- Table : F0004 User defined code types — defines each UDC table (system + type) and how its values behave
-- Purpose: Column-selected read of F0004 — auto-generated from field metadata
-- Grain : One row per DTSY + DTRT
-- Notes : Auto-generated skeleton. Julian dates (CYYDDD) are converted to DATE and implied-decimal amounts are scaled (verify decimals in F9210); padded business-unit/UDC keys are TRIMmed. Audit columns (…USER/…PID/…UPMJ) are omitted — see the quirks guide. Set catalog/schema to your Unity Catalog location; fill remaining placeholders (<...>) for your tenant.
-- ============================================================
SELECT
dt.DTSY AS "System code the UDC type belongs to",
dt.DTRT AS "User defined code type (the two-character table id)",
dt.DTDL01 AS "Description of the code type",
dt.DTUSEQ / POWER(10, 1) AS "Display sequence", -- implied decimals: 1 (verify in F9210)
dt.DTUCD1 AS "Class code grouping for the code type",
dt.DTCDL AS "Length of the code values in this type",
dt.DTLN2 AS "Whether a second description line is used",
dt.DTCNUM AS "Whether code values are numeric (drives right-justified storage)",
dt.DTMRCT AS "Merge control flag used by environment merges",
dt.DTMRTY AS "Merge type used by environment merges"
FROM <catalog>.<schema_ctl>.f0004 dt
ORDER BY dt.DTSY;2 parameters not filled: <catalog>, <schema_ctl>
Relationships
1-hop neighbors — click a table to navigate there. UDC decode edges point coded fields at their F0005 lookup.