JDE Reference
R04572
Batch UBEPrint Automatic Payments - Standard Format — the batch program that renders the physical check when a payment group is written; format variants exist for drafts, ACH, and EDI.
Notes
Variants include R04572N (draft), R04572T1 (PPD), R04572T2 (CTX).
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
5 parameters not filled: <catalog>, <schema_data>, <KCO>, <DOC>, <DCT>
-- ============================================================
-- Program: R04572 Print Automatic Payments - Standard Format — the batch program that renders the physical check when a payment group is written; format variants exist for drafts, ACH, and EDI.
-- Purpose: Print Automatic Payments - Standard Format — the batch program that renders the physical check when a payment group is written; format variants exist for drafts, ACH, and EDI. — auto-generated boilerplate from program-table-map
-- Grain : F0411 × F0401 — 1:N joins yield one row per detail line
-- Tables : F0411, 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.
-- Omitted: F0111 is cataloged for this program, but no verified join condition connects it to F0411, so it is left out of this skeleton. Add the join yourself using the key fields on each table's page.
-- ============================================================
SELECT
h.RPKCO AS "Document company that owns the voucher number sequence",
h.RPDOC AS "Voucher document number",
h.RPDCT AS "Voucher document type (PV standard voucher, PD debit memo, PL logged, etc.)",
h.RPSFX AS "Pay item — vouchers split into pay items with independent terms and status",
h.RPSFXE AS "Pay item extension used by prepayments and multi-tax-rate splits",
h.RPADSC / POWER(10, 2) AS "Discount available if paid by the discount due date" -- implied decimals: 2 (verify in F9210)
FROM <catalog>.<schema_data>.f0411 h
LEFT JOIN <catalog>.<schema_data>.f0401 f
ON f.A6AN8 = h.RPAN8
WHERE
h.RPKCO = '<KCO>'
AND h.RPDOC = <DOC>
AND h.RPDCT = '<DCT>'
ORDER BY h.RPKCO;Tables Used by This Program
How these tables connect — join details in the list below.
Loading relationship diagram…
R read · W write · R/W read + write
Secondary tables
- F0111Contact (Who's Who) records attached to address book entries: individual names, titles, and contact classifications, keyed by address number and line.Read accessmaster
- F0401Supplier master - A/P defaults, payment controls, and purchasing settings for each supplier address numberRead accessmaster