Skip to content
JDE Reference

P41061

Interactive

Supplier Catalog Maintenance — maintain supplier price catalogs used for purchase price retrieval at PO entry

Lineage hook

Rows written by P41061 carry …PID = 'P41061' 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
-- ============================================================
-- Program: P41061 Supplier Catalog Maintenance — maintain supplier price catalogs used for purchase price retrieval at PO entry
-- Purpose: Supplier Catalog Maintenance — maintain supplier price catalogs used for purchase price retrieval at PO entry — auto-generated boilerplate from program-table-map
-- Grain  : F41061 × F4101, F0101, F0401 — 1:N joins yield one row per detail line
-- Tables : F41061, F4101, F0101, F0401
-- 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
  TRIM(h.CBMCU) AS "Branch/plant (business unit); stored right-justified with leading blanks.",
  h.CBAN8 AS "Supplier address number the catalog price belongs to.",
  h.CBITM AS "Short internal item number (8-digit numeric key).",
  h.CBCATN AS "Supplier catalog name grouping this set of prices.",
  h.CBCRCD AS "Transaction currency code of the price.",
  h.CBUOM AS "Unit of measure the price applies to, as entered.",
  h.CBUORG AS "Quantity break threshold: the price applies at or above this quantity.",
  CASE WHEN h.CBEXDJ IS NULL OR h.CBEXDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(h.CBEXDJ AS INT) DIV 1000, 1, 1), CAST(h.CBEXDJ AS INT) % 1000 - 1) END AS "Expiration date; the record stops applying after this date."  -- CYYDDD Julian → DATE
FROM <catalog>.<schema_data>.f41061 h
LEFT JOIN <catalog>.<schema_data>.f4101 im
  ON im.IMITM = h.CBITM
LEFT JOIN <catalog>.<schema_data>.f0101 ab
  ON ab.ABAN8 = h.CBAN8
LEFT JOIN <catalog>.<schema_data>.f0401 f
  ON f.A6AN8 = h.CBAN8
WHERE
  h.CBMCU = '<MCU>'
  AND h.CBAN8 = <AN8>
  AND h.CBITM = <ITM>
ORDER BY h.CBMCU;

5 parameters not filled: <catalog>, <schema_data>, <MCU>, <AN8>, <ITM>

Tables Used by This Program

How these tables connect. Nodes are clickable.

Join details

  • F41061F4101foreign key · N:1
    ON f41061.CBITM = f4101.IMITM
  • F41061F0401foreign key · N:1
    ON f41061.CBAN8 = f0401.A6AN8
  • F0401F0101foreign key · 1:1
    ON f0401.A6AN8 = f0101.ABAN8