JDE Reference
R04110ZA
Batch UBEBatch Voucher Processing — the batch job that validates vouchers staged by interfaces or EDI and writes them into the live supplier ledger and G/L.
Lineage hook
Rows written by R04110ZA carry …PID = 'R04110ZA' in their audit columns — a ready-made marker for isolating the records this program produced. See the audit-columns guide →
Notes
Processes the F0411Z1 staging table (not in catalog) into live tables.
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: R04110ZA Batch Voucher Processing — the batch job that validates vouchers staged by interfaces or EDI and writes them into the live supplier ledger and G/L.
-- Purpose: Batch Voucher Processing — the batch job that validates vouchers staged by interfaces or EDI and writes them into the live supplier ledger and G/L. — auto-generated boilerplate from program-table-map
-- Grain : F0411 × F0911, F0401 — 1:N joins yield one row per detail line
-- Tables : F0411, F0911, 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
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)
CASE WHEN f.GLDGJ IS NULL OR f.GLDGJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.GLDGJ AS INT) DIV 1000, 1, 1), CAST(f.GLDGJ AS INT) % 1000 - 1) END AS "G/L date driving the fiscal period the line posts to.", -- CYYDDD Julian → DATE
f.GLJELN AS "Line number within the journal entry.",
f.GLEXTL AS "Line extension code completing the unique key.",
f.GLLT AS "Ledger type the line belongs to (AA actual, CA foreign currency, etc.)."
FROM <catalog>.<schema_data>.f0411 h
LEFT JOIN <catalog>.<schema_data>.f0911 f
ON f.GLDCT = h.RPDCT
AND f.GLDOC = h.RPDOC
AND f.GLKCO = h.RPKCO
LEFT JOIN <catalog>.<schema_data>.f0401 f0
ON f0.A6AN8 = h.RPAN8
ORDER BY h.RPKCO;2 parameters not filled: <catalog>, <schema_data>
Tables Used by This Program
How these tables connect. Nodes are clickable.
Secondary tables
- F0401Supplier master - A/P defaults, payment controls, and purchasing settings for each supplier address numberRead accessmaster
- F0911General ledger transaction detail: every journal entry line with its account, G/L date, amount, batch, subledger, and source-document references.Write accesstransaction