JDE Reference
F0005
controlAlso in JDE WorldUser defined code values — the lookup rows behind every UDC-validated field, keyed by system, type, and code
Module: 00 · FoundationColumn prefix: DR
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.
Used in the library
Cross-ERP guides
Fields
8 fields · 3 key
8 fields.
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | DRSY | SY | System code of the UDC table | String | 4 | |
| Primary key | DRRT | RT | User defined code type within the system | String | 2 | |
| Primary key | DRKY | KY | The code value itself; short/numeric codes are stored right-justified with leading blanks - TRIM before joining | String | 10 | |
| DRDL01 | DL01 | Code description | String | 30 | ||
| DRDL02 | DL02 | Second description line | String | 30 | ||
| DRSPHD | SPHD | Special handling code - extra behavior many programs key off | String | 10 | ||
| DRUDCO | UDCO | Ownership flag distinguishing Oracle-delivered vs customer codes | Character | 1 | ||
| DRHRDC | HRDC | Hard coded flag - Y means programs depend on this exact value | Character | 1 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F0005 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 : F0005 User defined code values — the lookup rows behind every UDC-validated field, keyed by system, type, and code
-- Purpose: Column-selected read of F0005 — auto-generated from field metadata
-- Grain : One row per DRSY + DRRT + DRKY
-- 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
udc.DRSY AS "System code of the UDC table",
udc.DRRT AS "User defined code type within the system",
TRIM(udc.DRKY) AS "The code value itself; short/numeric codes are stored right-justified with leading blanks - TRIM before joining",
udc.DRDL01 AS "Code description",
udc.DRDL02 AS "Second description line",
udc.DRSPHD AS "Special handling code - extra behavior many programs key off",
udc.DRUDCO AS "Ownership flag distinguishing Oracle-delivered vs customer codes",
udc.DRHRDC AS "Hard coded flag - Y means programs depend on this exact value"
FROM <catalog>.<schema_ctl>.f0005 udc
ORDER BY udc.DRSY;Verified September 2026
Relationships
Diagram of 1-hop neighbors — join details below. UDC decode edges point coded fields at their F0005 lookup.
Join details
ON f0005.DRSY = '00' AND f0005.DRRT = 'DT' AND TRIM(f0005.DRKY) = TRIM(f4211.SDDCTO)ON f0005.DRSY = '40' AND f0005.DRRT = 'AT' AND TRIM(f0005.DRKY) = TRIM(f4211.SDLTTR)ON f0005.DRSY = '40' AND f0005.DRRT = 'AT' AND TRIM(f0005.DRKY) = TRIM(f4211.SDNXTR)ON f0005.DRSY = '41' AND f0005.DRRT = '9' AND TRIM(f0005.DRKY) = TRIM(f4101.IMGLPT)ON f0005.DRSY = '00' AND f0005.DRRT = 'DT' AND TRIM(f0005.DRKY) = TRIM(f0911.GLDCT)ON f0005.DRSY = '09' AND f0005.DRRT = 'LT' AND TRIM(f0005.DRKY) = TRIM(f0911.GLLT)ON f0005.DRSY = '00' AND f0005.DRRT = 'DT' AND TRIM(f0005.DRKY) = TRIM(f4311.PDDCTO)ON f0005.DRSY = '40' AND f0005.DRRT = 'AT' AND TRIM(f0005.DRKY) = TRIM(f4311.PDLTTR)ON f0005.DRSY = '00' AND f0005.DRRT = 'DT' AND TRIM(f0005.DRKY) = TRIM(f42199.SLDCTO)ON f0005.DRSY = '40' AND f0005.DRRT = 'AT' AND TRIM(f0005.DRKY) = TRIM(f42199.SLLTTR)ON f0005.DRSY = '00' AND f0005.DRRT = 'DT' AND TRIM(f0005.DRKY) = TRIM(f4301.PHDCTO)ON f0005.DRSY = 'H00' AND f0005.DRRT = 'PE' AND TRIM(f0005.DRKY) = TRIM(f0901.GMPEC)ON f0005.DRSY = '00' AND f0005.DRRT = 'PY' AND TRIM(f0005.DRKY) = TRIM(f0401.A6PYIN)ON f0005.DRSY = '00' AND f0005.DRRT = 'UM' AND TRIM(f0005.DRKY) = TRIM(f4106.BPUOM)ON f0005.DRSY = '00' AND f0005.DRRT = 'SS' AND TRIM(f0005.DRKY) = TRIM(f4801.WASRST)ON f0005.DRSY = '34' AND f0005.DRRT = 'MT' AND TRIM(f0005.DRKY) = TRIM(f3411.MMMSGT)ON f0005.DRSY = '34' AND f0005.DRRT = 'QT' AND TRIM(f0005.DRKY) = TRIM(f3413.MRQT)ON f0005.DRSY = '00' AND f0005.DRRT = 'PS' AND TRIM(f0005.DRKY) = TRIM(f03b11.RPPST)ON f0005.DRSY = '00' AND f0005.DRRT = 'PS' AND TRIM(f0005.DRKY) = TRIM(f0411.RPPST)ON f0005.DRSY = '41' AND f0005.DRRT = 'SS' AND TRIM(f0005.DRKY) = TRIM(f4215.XHSSTS)ON f0005.DRSY = '49' AND f0005.DRRT = 'SL' AND TRIM(f0005.DRKY) = TRIM(f4960.TMLDLS)ON f0005.DRSY = '46' AND f0005.DRRT = 'PS' AND TRIM(f0005.DRKY) = TRIM(f4600.R1PSTB)ON f0005.DRSY = '47' AND f0005.DRRT = 'LS' AND TRIM(f0005.DRKY) = TRIM(f47022.SZLSTS)
Programs That Use This Table
R read · W write · R/W read + write
Primary programs
More Foundation tables
- 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.
- F0015Currency exchange rate table: dated conversion rates between currency pairs, including multiplier and divisor forms and triangulation settings.