HR_OPERATING_UNITS
Schema: HRviewPer inventory orgViewThe delivered view that enumerates operating units — the ORG_ID domain — with their business group, ledger, and legal context; the standard way to turn the ORG_ID on an _ALL table into a name
APPS-schema view over the HR org tables (product: Human Resources). Its ledger and legal-context columns are read out of generic attribute columns and come back as VARCHAR2 — cast with TO_NUMBER before joining GL_LEDGERS.LEDGER_ID.
What the badges mean
- master
- Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or an APPS-schema view.
Fields
9 fields · 1 key
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | ORGANIZATION_ID | The operating unit's org id — the value ORG_ID columns on _ALL tables carry | NUMBER | Key |
| 2 | NAME | Operating unit name | VARCHAR2 | |
| 3 | SHORT_CODE | Operating unit short code | VARCHAR2 | |
| 4 | BUSINESS_GROUP_ID | The business group the operating unit belongs to | NUMBER | |
| 5 | DATE_FROM | Effectivity start date | DATE | |
| 6 | DATE_TO | Effectivity end date — NULL while active | DATE | |
| 7 | SET_OF_BOOKS_ID | The ledger id — comes back as text (read from a generic attribute column), so cast with TO_NUMBER before joining GL_LEDGERS | VARCHAR2 | |
| 8 | DEFAULT_LEGAL_CONTEXT_ID | The default legal entity context — text for the same reason; cast before joining | VARCHAR2 | |
| 9 | USABLE_FLAG | Whether the operating unit is usable | VARCHAR2 |
Field provenance: hand-curated. 1 key field.
Boilerplate SQL
Starting point for reading HR_OPERATING_UNITSon Databricks — real DATE columns need no conversion, and the org anchor and the LAST_UPDATE_DATE watermark are already in place. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.
-- ============================================================
-- Table : HR_OPERATING_UNITS — The delivered view that enumerates operating units — the ORG_ID domain — with their business group, ledger, and legal context; the standard way to turn the ORG_ID on an _ALL table into a name
-- Purpose: Column-selected read of HR_OPERATING_UNITS — auto-generated from field metadata
-- Grain : One row per inventory org (ORGANIZATION_ID) — see the Fields section for the full key
-- Notes : Auto-generated skeleton for Oracle EBS R12 data landed in your lakehouse. Dates are real DATE/TIMESTAMP columns — no conversion needed. WHO audit columns omitted (see the quirks guide); the optional LAST_UPDATE_DATE watermark filter supports incremental extracts. APPS-schema view — land its base tables for extraction; see the table notes.
-- ============================================================
SELECT
t.ORGANIZATION_ID AS "The operating unit's org id — the value ORG_ID columns on _ALL tables carry",
t.NAME AS "Operating unit name",
t.SHORT_CODE AS "Operating unit short code",
t.BUSINESS_GROUP_ID AS "The business group the operating unit belongs to",
t.DATE_FROM AS "Effectivity start date",
t.DATE_TO AS "Effectivity end date — NULL while active",
t.SET_OF_BOOKS_ID AS "The ledger id — comes back as text (read from a generic attribute column), so cast with TO_NUMBER before joining GL_LEDGERS",
t.DEFAULT_LEGAL_CONTEXT_ID AS "The default legal entity context — text for the same reason; cast before joining",
t.USABLE_FLAG AS "Whether the operating unit is usable"
FROM <catalog>.<schema>.HR_OPERATING_UNITS t
WHERE
t.ORGANIZATION_ID = <inventory_org_id> -- inventory org, NOT the operating unit — see quirks guide #two-orgs
-- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>' -- WHO watermark, bulk-stamped by batch jobs; see quirks guide #who-columns
ORDER BY t.ORGANIZATION_ID;4 parameters not filled: <catalog>, <schema>, <inventory_org_id>, <watermark>
Relationships
1-hop neighbors — click a table to navigate there. FND lookup decode and translation edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON HR_OPERATING_UNITS.ORGANIZATION_ID = HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_IDON OE_ORDER_HEADERS_ALL.ORG_ID = HR_OPERATING_UNITS.ORGANIZATION_IDON PO_HEADERS_ALL.ORG_ID = HR_OPERATING_UNITS.ORGANIZATION_ID
HR_OPERATING_UNITSis an APPS-schema convenience view. Land the base tables it joins instead of extracting from the view directly — views can be slow at scale and aren’t guaranteed stable across patches.