Skip to content
JDE Reference

P0010

Interactive

Company Names & Numbers — set up companies and their fiscal date patterns for financial reporting

Lineage hook

Rows written by P0010 carry …PID = 'P0010' in their audit columns — a ready-made marker for isolating the records this program produced. See the audit-columns guide

Boilerplate SQL

Databricks SQL

Starting point for querying the tables behind this program. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.

Query parameters

3 parameters not filled: <catalog>, <schema_data>, <CO>

-- ============================================================
-- Program: P0010 Company Names & Numbers — set up companies and their fiscal date patterns for financial reporting
-- Purpose: Company Names & Numbers — set up companies and their fiscal date patterns for financial reporting — auto-generated boilerplate from program-table-map
-- Grain  : F0010 × F0008 — 1:N joins yield one row per detail line
-- Tables : F0010, F0008
-- Notes  : Auto-generated skeleton. Julian dates are converted to DATE and implied-decimal amounts are scaled (verify decimals in F9210). 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
  h.CCCO AS "Company code; the key every financial table carries as CO or KCO.",
  h.CCNAME AS "Company name as printed on reports.",
  f.CDDTPN AS "Fiscal date pattern code this row defines; companies point to a pattern via F0010.",
  CASE WHEN f.CDDFYJ IS NULL OR f.CDDFYJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.CDDFYJ AS INT) DIV 1000, 1, 1), CAST(f.CDDFYJ AS INT) % 1000 - 1) END AS "First day of the fiscal year for this pattern.",  -- CYYDDD Julian → DATE
  f.CDFQ AS "Fiscal quarter code (flagged obsolete by Oracle but still part of the unique key)."
FROM <catalog>.<schema_data>.f0010 h
LEFT JOIN <catalog>.<schema_data>.f0008 f
  ON 1 = 1  -- TODO: define join condition (no shared aliases detected)
WHERE
  h.CCCO = '<CO>'
ORDER BY h.CCCO;

Tables Used by This Program

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.