Skip to content
JDE Reference

R04570

Batch UBE

Create Payment Control Groups — the batch job that selects approved vouchers due for payment and organizes them into payment groups by bank account and payment instrument.

Lineage hook

Rows written by R04570 carry …PID = 'R04570' 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: R04570 Create Payment Control Groups — the batch job that selects approved vouchers due for payment and organizes them into payment groups by bank account and payment instrument.
-- Purpose: Create Payment Control Groups — the batch job that selects approved vouchers due for payment and organizes them into payment groups by bank account and payment instrument. — 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.
-- ============================================================
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
ORDER BY h.RPKCO;

2 parameters not filled: <catalog>, <schema_data>

Tables Used by This Program

How these tables connect. Nodes are clickable.

Join details

  • F0411F0401foreign key · N:1
    ON f0411.RPAN8 = f0401.A6AN8