Skip to content
JDE Reference

P0411

Interactive

Standard Voucher Entry — the screen where A/P vouchers are entered against suppliers, creating the payable and its G/L distribution ahead of payment processing.

Lineage hook

Rows written by P0411 carry …PID = 'P0411' 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: P0411 Standard Voucher Entry — the screen where A/P vouchers are entered against suppliers, creating the payable and its G/L distribution ahead of payment processing.
-- Purpose: Standard Voucher Entry — the screen where A/P vouchers are entered against suppliers, creating the payable and its G/L distribution ahead of payment processing. — auto-generated boilerplate from program-table-map
-- Grain  : F0411 × F0911, F0401, F0101 — 1:N joins yield one row per detail line
-- Tables : F0411, F0911, F0401, 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.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
LEFT JOIN <catalog>.<schema_data>.f0101 ab
  ON ab.ABAN8 = 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

  • F0911F0101foreign key · N:1
    ON f0911.GLAN8 = f0101.ABAN8
  • F0401F0101foreign key · 1:1
    ON f0401.A6AN8 = f0101.ABAN8
  • F0411F0401foreign key · N:1
    ON f0411.RPAN8 = f0401.A6AN8
  • F0411F0101foreign key · N:1
    ON f0411.RPAN8 = f0101.ABAN8