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

Fields

10 fields · 2 key

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

Programs That Use This Table