F03B11
transactionCustomer ledger: one row per invoice pay item carrying gross, open, discount, and tax amounts plus the dates and status codes that drive A/R aging and collections.
E1-only design: World A9.x keeps invoices and receipts together in F0311. Exclude voided rows (RPVOD) and unapplied-cash types when totaling open A/R.
Fields
41 fields · 4 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | RPDOC | DOC | Invoice document number | Numeric | 8 | |
| Primary key | RPDCT | DCT | Invoice document type (RI standard invoice, RM credit memo, RU unapplied cash, etc.) | String | 2 | |
| Primary key | RPKCO | KCO | Document company that owns the invoice number sequence | String | 5 | |
| Primary key | RPSFX | SFX | Pay item — one invoice can split into multiple pay items with their own terms | String | 3 | |
| RPAN8 | AN8 | Customer address book number | Numeric | 8 | ||
| RPDGJ | DGJ | G/L date that places the invoice in a fiscal period | Numeric | 6 | ||
| RPDIVJ | DIVJ | Invoice date printed on the document; aging can run on this or the G/L date | Numeric | 6 | ||
| RPICUT | ICUT | Batch type of the batch that created the row (IB invoices, G journal entries) | String | 2 | ||
| RPICU | ICU | Batch number the invoice was entered under | Numeric | 8 | ||
| RPFY | FY | Fiscal year of the G/L date | Numeric | 2 | ||
| RPPN | PN | Fiscal period of the G/L date | Numeric | 2 | ||
| RPCO | CO | Company the receivable belongs to | String | 5 | ||
| RPPYR | PYR | Payor address number expected to pay the invoice | Numeric | 8 | ||
| RPPOST | POST | G/L posted code; 'D' means the invoice has posted to F0911/F0902 | Character | 1 | ||
| RPPST | PST | Pay status (A approved, P paid, H held); the core open/closed indicator | Character | 1 | ||
| RPAG | AG | Gross invoice amount in domestic currency | Numeric | 15 | ||
| RPAAP | AAP | Open amount still unpaid — the column A/R aging sums | Numeric | 15 | ||
| RPADSC | ADSC | Discount offered to the customer if paid by the discount due date | Numeric | 15 | ||
| RPADSA | ADSA | Discount actually taken when the invoice was paid | Numeric | 15 | ||
| RPATXA | ATXA | Taxable portion of the invoice amount | Numeric | 15 | ||
| RPSTAM | STAM | Tax amount on the invoice | Numeric | 15 | ||
| RPBCRC | BCRC | Base (domestic) currency of the company | String | 3 | ||
| RPCRRM | CRRM | Currency mode — whether the invoice was entered in domestic or foreign currency | Character | 1 | ||
| RPCRCD | CRCD | Transaction currency of the invoice | String | 3 | ||
| RPCRR | CRR | Exchange rate used to convert foreign to domestic amounts; implied decimals vary by setup | Numeric | 15 | ||
| RPACR | ACR | Gross invoice amount in the transaction (foreign) currency | Numeric | 15 | ||
| RPFAP | FAP | Open amount in the transaction (foreign) currency | Numeric | 15 | ||
| RPTXA1 | TXA1 | Tax rate/area applied to the invoice | String | 10 | ||
| RPMCU | MCU | Business unit for the receivable, used in AAI account resolution | String | 12 | ||
| RPPTC | PTC | Payment terms code that set the due and discount dates | String | 3 | ||
| RPDDJ | DDJ | Net due date used for aging buckets | Numeric | 6 | ||
| RPDDNJ | DDNJ | Discount due date — pay by this date to earn the discount | Numeric | 6 | ||
| RPRSCO | RSCO | Write-off reason code when part of the balance was written off | String | 2 | ||
| RPODOC | ODOC | Original document number when this row derives from another document (e.g. chargeback source) | Numeric | 8 | ||
| RPODCT | ODCT | Original document type paired with the original document number | String | 2 | ||
| RPVINV | VINV | Customer's reference/invoice number as supplied on the remittance | String | 25 | ||
| RPDCTO | DCTO | Sales order type when the invoice came from sales update | String | 2 | ||
| RPSDOC | SDOC | Sales order number that generated the invoice via R42800 | Numeric | 8 | ||
| RPSDCT | SDCT | Document type of the originating sales order | String | 2 | ||
| RPVOD | VOD | Void flag — voided invoices remain as rows, so filter them out of aging | Character | 1 | ||
| RPPYID | PYID | Internal payment ID linking to F03B13/F03B14 once cash is applied | Numeric | 15 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F03B11on Databricks — Julian dates, implied decimals, and padded strings are already converted. Set your Unity Catalog location and filter values below; they’re substituted into the SQL and the copy button.
-- ============================================================
-- Table : F03B11 Customer ledger: one row per invoice pay item carrying gross, open, discount, and tax amounts plus the dates and status codes that drive A/R aging and collections.
-- Purpose: Column-selected read of F03B11 — auto-generated from field metadata
-- Grain : One row per RPDOC + RPDCT + RPKCO + RPSFX
-- Notes : Auto-generated skeleton. Julian dates (CYYDDD) are converted to DATE and implied-decimal amounts are scaled (verify decimals in F9210); padded business-unit/UDC keys are TRIMmed. 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
f.RPDOC AS "Invoice document number",
f.RPDCT AS "Invoice document type (RI standard invoice, RM credit memo, RU unapplied cash, etc.)",
f.RPKCO AS "Document company that owns the invoice number sequence",
f.RPSFX AS "Pay item — one invoice can split into multiple pay items with their own terms",
f.RPAN8 AS "Customer address book number",
CASE WHEN f.RPDGJ IS NULL OR f.RPDGJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.RPDGJ AS INT) DIV 1000, 1, 1), CAST(f.RPDGJ AS INT) % 1000 - 1) END AS "G/L date that places the invoice in a fiscal period", -- CYYDDD Julian → DATE
CASE WHEN f.RPDIVJ IS NULL OR f.RPDIVJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.RPDIVJ AS INT) DIV 1000, 1, 1), CAST(f.RPDIVJ AS INT) % 1000 - 1) END AS "Invoice date printed on the document; aging can run on this or the G/L date", -- CYYDDD Julian → DATE
f.RPICUT AS "Batch type of the batch that created the row (IB invoices, G journal entries)",
f.RPICU AS "Batch number the invoice was entered under",
f.RPFY AS "Fiscal year of the G/L date",
f.RPPN AS "Fiscal period of the G/L date",
f.RPCO AS "Company the receivable belongs to",
f.RPPYR AS "Payor address number expected to pay the invoice",
f.RPPOST AS "G/L posted code; 'D' means the invoice has posted to F0911/F0902",
f.RPPST AS "Pay status (A approved, P paid, H held); the core open/closed indicator",
f.RPAG / POWER(10, 2) AS "Gross invoice amount in domestic currency", -- implied decimals: 2 (verify in F9210)
f.RPAAP / POWER(10, 2) AS "Open amount still unpaid — the column A/R aging sums", -- implied decimals: 2 (verify in F9210)
f.RPADSC / POWER(10, 2) AS "Discount offered to the customer if paid by the discount due date", -- implied decimals: 2 (verify in F9210)
f.RPADSA / POWER(10, 2) AS "Discount actually taken when the invoice was paid", -- implied decimals: 2 (verify in F9210)
f.RPATXA / POWER(10, 2) AS "Taxable portion of the invoice amount", -- implied decimals: 2 (verify in F9210)
f.RPSTAM / POWER(10, 2) AS "Tax amount on the invoice", -- implied decimals: 2 (verify in F9210)
f.RPBCRC AS "Base (domestic) currency of the company",
f.RPCRRM AS "Currency mode — whether the invoice was entered in domestic or foreign currency",
f.RPCRCD AS "Transaction currency of the invoice",
f.RPCRR AS "Exchange rate used to convert foreign to domestic amounts; implied decimals vary by setup",
f.RPACR / POWER(10, 2) AS "Gross invoice amount in the transaction (foreign) currency", -- implied decimals: 2 (verify in F9210)
f.RPFAP / POWER(10, 2) AS "Open amount in the transaction (foreign) currency", -- implied decimals: 2 (verify in F9210)
f.RPTXA1 AS "Tax rate/area applied to the invoice",
TRIM(f.RPMCU) AS "Business unit for the receivable, used in AAI account resolution",
f.RPPTC AS "Payment terms code that set the due and discount dates",
CASE WHEN f.RPDDJ IS NULL OR f.RPDDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.RPDDJ AS INT) DIV 1000, 1, 1), CAST(f.RPDDJ AS INT) % 1000 - 1) END AS "Net due date used for aging buckets", -- CYYDDD Julian → DATE
CASE WHEN f.RPDDNJ IS NULL OR f.RPDDNJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.RPDDNJ AS INT) DIV 1000, 1, 1), CAST(f.RPDDNJ AS INT) % 1000 - 1) END AS "Discount due date — pay by this date to earn the discount", -- CYYDDD Julian → DATE
f.RPRSCO AS "Write-off reason code when part of the balance was written off",
f.RPODOC AS "Original document number when this row derives from another document (e.g. chargeback source)",
f.RPODCT AS "Original document type paired with the original document number",
f.RPVINV AS "Customer's reference/invoice number as supplied on the remittance",
f.RPDCTO AS "Sales order type when the invoice came from sales update",
f.RPSDOC AS "Sales order number that generated the invoice via R42800",
f.RPSDCT AS "Document type of the originating sales order",
f.RPVOD AS "Void flag — voided invoices remain as rows, so filter them out of aging"
-- … plus 1 more columns — full list in the Fields section above
FROM <catalog>.<schema_data>.f03b11 f
ORDER BY f.RPDOC;2 parameters not filled: <catalog>, <schema_data>
Relationships
1-hop neighbors — click a table to navigate there. UDC decode edges point coded fields at their F0005 lookup.
Join details
Programs That Use This Table
Primary programs
- P03B11Standard Invoice Entry — the screen where A/R invoices and credit memos are entered manually, creating the receivable and its offsetting G/L distribution.Read/write accessInteractive
- P03B2002Customer Ledger Inquiry — the screen for researching a customer's invoice history: open items, payment status, and drill-down into receipts and G/L detail.Read accessInteractive
- R03B5001Statement Print — the batch job that formats and prints customer statements from the refreshed statement records.Read accessBatch UBE
- R03B500XStatement Notification Refresh — the batch job that gathers open invoice activity into statement records, driving which customers get statements and what appears on them.Read accessBatch UBE
- R03B571Create Automatic Debit Batch — the batch job that builds bank files to pull payment directly from customer accounts for open invoices under automatic debit agreements.Read/write accessBatch UBE
Secondary programs
- P03B102Standard Receipts Entry — the screen where cash receipts are entered and applied against open invoices, handling short pays, chargebacks, and unearned discounts.Read/write accessInteractive
- R03B50Apply Receipts to Invoices — the batch job that matches unapplied receipts to open invoices using execution-list algorithms, completing automatic cash application.Read/write accessBatch UBE
- R03B551Update Receipts Header — the batch job in the automatic receipts process that turns uploaded bank payment records into unapplied receipt headers ready for matching.Read accessBatch UBE