R03B5005
Batch UBEA/R Statement Print Driver — the batch job launched by Statement Notification Refresh (R03B500X) that processes the refreshed statement records and generates the statement print program.
Rows written by R03B5005 carry …PID = 'R03B5005' in their audit columns — a ready-made marker for isolating the records this program produced. See the audit-columns guide
The middle hop of the statement chain: R03B500X refreshes, R03B5005 drives, R03B5001 prints.
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.
5 parameters not filled: <catalog>, <schema_data>, <DOC>, <DCT>, <KCO>
-- ============================================================
-- Program: R03B5005 A/R Statement Print Driver — the batch job launched by Statement Notification Refresh (R03B500X) that processes the refreshed statement records and generates the statement print program.
-- Purpose: A/R Statement Print Driver — the batch job launched by Statement Notification Refresh (R03B500X) that processes the refreshed statement records and generates the statement print program. — auto-generated boilerplate from program-table-map
-- Grain : F03B11 × F03012 — 1:N joins yield one row per detail line
-- Tables : F03B11, F03012
-- 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.RPDOC AS "Invoice document number",
h.RPDCT AS "Invoice document type (RI standard invoice, RM credit memo, RU unapplied cash, etc.)",
h.RPKCO AS "Document company that owns the invoice number sequence",
h.RPSFX AS "Pay item — one invoice can split into multiple pay items with their own terms",
h.RPADSC / POWER(10, 2) AS "Discount offered to the customer if paid by the discount due date", -- implied decimals: 2 (verify in F9210)
f.AICO AS "Company this customer record applies to; company 00000 holds the default line-of-business record"
FROM <catalog>.<schema_data>.f03b11 h
LEFT JOIN <catalog>.<schema_data>.f03012 f
ON f.AIAN8 = h.RPAN8
WHERE
h.RPDOC = <DOC>
AND h.RPDCT = '<DCT>'
AND h.RPKCO = '<KCO>'
ORDER BY h.RPDOC;Tables Used by This Program
How these tables connect — join details in the list below.
R read · W write · R/W read + write