JDE Reference
R43500
Batch UBEPurchase Order Print — batch-print purchase orders for suppliers and advance order line statuses
Lineage hook
Rows written by R43500 carry …PID = 'R43500' in their audit columns — a ready-made marker for isolating the records this program produced. See the audit-columns guide →
Boilerplate SQL
Databricks SQLStarting 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: R43500 Purchase Order Print — batch-print purchase orders for suppliers and advance order line statuses
-- Purpose: Purchase Order Print — batch-print purchase orders for suppliers and advance order line statuses — auto-generated boilerplate from program-table-map
-- Grain : F4301 × F4311, F0101 — 1:N joins yield one row per detail line
-- Tables : F4301, F4311, F0101
-- 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.PHKCOO AS "Company that owns the order-number sequence; part of the composite order key",
h.PHDOCO AS "Order number",
h.PHDCTO AS "Order document type (e.g. OP purchase order, SO sales order)",
h.PHSFXO AS "Order suffix distinguishing multiple documents under one order number",
d.PDLNID / POWER(10, 3) AS "Order line number (3 implied decimals, e.g. 1.000)", -- implied decimals: 3 (verify in F9210)
ab.ABAN8 AS "Address book number - the master key for any entity"
FROM <catalog>.<schema_data>.f4301 h
LEFT JOIN <catalog>.<schema_data>.f4311 d
ON d.PDDOCO = h.PHDOCO
AND d.PDKCOO = h.PHKCOO
AND d.PDDCTO = h.PHDCTO
AND d.PDSFXO = h.PHSFXO
LEFT JOIN <catalog>.<schema_data>.f0101 ab
ON 1 = 1 -- TODO: define join condition (no shared aliases detected)
WHERE
h.PHKCOO = '<KCOO>'
AND h.PHDOCO = <DOCO>
AND h.PHDCTO = '<DCTO>'
ORDER BY h.PHKCOO;5 parameters not filled: <catalog>, <schema_data>, <KCOO>, <DOCO>, <DCTO>
Tables Used by This Program
How these tables connect. Nodes are clickable.
Primary tables
- F4301Purchase order header - one row per procurement document carrying supplier, order-level dates, totals, terms, and currencyRead/write accesstransaction
- F4311Purchase order detail - one row per PO line with item, branch, quantities, unit/extended costs, and the status flowRead/write accesstransaction