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
What the badges mean
- Superseded
- Superseded — a newer table has replaced it, but older scripts still read this one.
- Also in JDE World
- Also present in JDE World A9.x on the same table name.
- master
- Data class: what the table holds — master data, transaction documents, control/setup values, history, or a workfile.
- Read/write access
- Access mode: how the paired program reads or writes this table — R (read), W (write), or R/W (both).
No lifecycle badge means the table is current and not documented in JDE World. In field listings, K marks a primary-key field.
Fields
10 fields · 2 key
10 fields.
| 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 F0004 on 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
2 parameters not filled: <catalog>, <schema_ctl>
-- ============================================================
-- 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;Verified September 2026
Relationships
Diagram of 1-hop neighbors — join details below. UDC decode edges point coded fields at their F0005 lookup.
Programs That Use This Table
R read · W write · R/W read + write
Primary programs
More Foundation tables
- F0005User defined code values — the lookup rows behind every UDC-validated field, keyed by system, type, and code
- F0006Business unit master — branch/plants, cost centers, and jobs with their reporting category codes
- F0008Defines each fiscal date pattern: the fiscal-year start date and the ending date of every accounting period, used to map calendar dates to fiscal periods.
- F0010One row of setup constants per company: fiscal calendar assignment, current periods, base currency, and A/R and A/P aging configuration.
- F0013Master list of currency codes with their display decimals; the lookup behind every CRCD column.
- F0014Payment terms definitions: discount percentage and window, net days to pay, and split/installment settings referenced by customer and supplier masters.