Skip to content
JDE Reference

R31804

Batch UBE

Variance Journal Entries — the batch job that books manufacturing variances (engineering, planned, actual, other) to the G/L when work orders close.

Lineage hook

Rows written by R31804 carry …PID = 'R31804' 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

5 parameters not filled: <catalog>, <schema_data>, <DOCO>, <ITM>, <MCU>

-- ============================================================
-- Program: R31804 Variance Journal Entries — the batch job that books manufacturing variances (engineering, planned, actual, other) to the G/L when work orders close.
-- Purpose: Variance Journal Entries — the batch job that books manufacturing variances (engineering, planned, actual, other) to the G/L when work orders close. — auto-generated boilerplate from program-table-map
-- Grain  : F3102 × F4801 — 1:N joins yield one row per detail line
-- Tables : F3102, F4801
-- 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: F0911 is cataloged for this program, but no verified join condition connects it to F3102, so it is left out of this skeleton. Add the join yourself using the key fields on each table's page.
-- ============================================================
SELECT
  h.IGDOCO AS "Work order number the cost row belongs to.",
  h.IGITM AS "Short item number the costs apply to — the parent on parent rows, the component on child rows.",
  h.IGCOST AS "Cost component code (A1 material, B1 labor, C-range overheads, etc.) that this row's buckets belong to.",
  h.IGPART AS "Parent/child flag separating the ordered item's cost rows from its components' rows.",
  TRIM(h.IGMCU) AS "Work center (business unit) the cost row is attributed to; part of the unique key."
FROM <catalog>.<schema_data>.f3102 h
LEFT JOIN <catalog>.<schema_data>.f4801 f4
  ON f4.WADOCO = h.IGDOCO
WHERE
  h.IGDOCO = <DOCO>
  AND h.IGITM = <ITM>
  AND h.IGMCU = '<MCU>'
ORDER BY h.IGDOCO;

Tables Used by This Program

How these tables connect — join details in the list below.

Loading relationship diagram…

Join details

  • F4801F3102header detail · 1:N
    ON f4801.WADOCO = f3102.IGDOCO

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Oracle. Oracle, JD Edwards, and EnterpriseOne are registered trademarks of Oracle and/or its affiliates.