Skip to content
JDE Reference

F0004

controlAlso in JDE World

User 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.

Table fields: key flag, field name, DD alias, description, data type, length, and quirk flags (Julian date, implied decimals, padded string, UDC decode). 10 fields.
KeyFieldAliasDescriptionTypeLengthFlags
Primary keyDTSYSYSystem code the UDC type belongs toString4
Primary keyDTRTRTUser defined code type (the two-character table id)String2
DTDL01DL01Description of the code typeString30
DTUSEQUSEQDisplay sequenceNumeric4
DTUCD1UCD1Class code grouping for the code typeString3
DTCDLCDLLength of the code values in this typeNumeric2
DTLN2LN2Whether a second description line is usedCharacter1
DTCNUMCNUMWhether code values are numeric (drives right-justified storage)Character1
DTMRCTMRCTMerge control flag used by environment mergesCharacter1
DTMRTYMRTYMerge type used by environment mergesString2

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

More Foundation tables

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Oracle. Oracle, JD Edwards, and EnterpriseOne are registered trademarks of Oracle and/or its affiliates.