Skip to content
JDE Reference

P01012

Interactive

Address Book Revisions — create and maintain address book records, who's who contacts, phones, and addresses

Lineage hook

Rows written by P01012 carry …PID = 'P01012' 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>, <AN8>

-- ============================================================
-- Program: P01012 Address Book Revisions — create and maintain address book records, who's who contacts, phones, and addresses
-- Purpose: Address Book Revisions — create and maintain address book records, who's who contacts, phones, and addresses — auto-generated boilerplate from program-table-map
-- Grain  : F0101 × F0111, F0115, F01151, F0116 — 1:N joins yield one row per detail line
-- Tables : F0101, F0111, F0115, F01151, F0116
-- 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
  ab.ABAN8 AS "Address book number - the master key for any entity",
  ab.ABALPH AS "Alpha name - the entity display name",
  f.WWIDLN AS "Line number distinguishing multiple contacts under one address; line 0 mirrors the entity itself.",
  f0.WPIDLN AS "Who's Who line the phone is attached to; 0 means the entity itself.",
  f0.WPCNLN AS "Related-person line identifier within the contact.",
  f0.WPRCK7 AS "Sequence number distinguishing multiple phones on the same line.",
  f01.EAIDLN AS "Who's Who line the address is attached to; 0 means the entity itself.",
  f01.EARCK7 AS "Sequence number distinguishing multiple electronic addresses per line.",
  CASE WHEN f011.ALEFTB IS NULL OR f011.ALEFTB = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f011.ALEFTB AS INT) DIV 1000, 1, 1), CAST(f011.ALEFTB AS INT) % 1000 - 1) END AS "Date this address becomes effective; part of the key, enabling address history."  -- CYYDDD Julian → DATE
FROM <catalog>.<schema_data>.f0101 ab
LEFT JOIN <catalog>.<schema_data>.f0111 f
  ON f.WWAN8 = ab.ABAN8
LEFT JOIN <catalog>.<schema_data>.f0115 f0
  ON f0.WPAN8 = ab.ABAN8
LEFT JOIN <catalog>.<schema_data>.f01151 f01
  ON f01.EAAN8 = ab.ABAN8
LEFT JOIN <catalog>.<schema_data>.f0116 f011
  ON f011.ALAN8 = ab.ABAN8
WHERE
  ab.ABAN8 = <AN8>
ORDER BY ab.ABAN8;

Tables Used by This Program

How these tables connect — join details in the list below.

Join details

  • F0111F0101foreign key · N:1
    ON f0111.WWAN8 = f0101.ABAN8
  • F0115F0101foreign key · N:1
    ON f0115.WPAN8 = f0101.ABAN8
  • F01151F0101foreign key · N:1
    ON f01151.EAAN8 = f0101.ABAN8
  • F0116F0101foreign key · N:1
    ON f0116.ALAN8 = f0101.ABAN8

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.