Skip to content
JDE Reference

F03B11

transaction

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.

Notes

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

KeyFieldAliasDescriptionTypeLengthFlags
Primary keyRPDOCDOCInvoice document numberNumeric8
Primary keyRPDCTDCTInvoice document type (RI standard invoice, RM credit memo, RU unapplied cash, etc.)String2
Primary keyRPKCOKCODocument company that owns the invoice number sequenceString5
Primary keyRPSFXSFXPay item — one invoice can split into multiple pay items with their own termsString3
RPAN8AN8Customer address book numberNumeric8
RPDGJDGJG/L date that places the invoice in a fiscal periodNumeric6
RPDIVJDIVJInvoice date printed on the document; aging can run on this or the G/L dateNumeric6
RPICUTICUTBatch type of the batch that created the row (IB invoices, G journal entries)String2
RPICUICUBatch number the invoice was entered underNumeric8
RPFYFYFiscal year of the G/L dateNumeric2
RPPNPNFiscal period of the G/L dateNumeric2
RPCOCOCompany the receivable belongs toString5
RPPYRPYRPayor address number expected to pay the invoiceNumeric8
RPPOSTPOSTG/L posted code; 'D' means the invoice has posted to F0911/F0902Character1
RPPSTPSTPay status (A approved, P paid, H held); the core open/closed indicatorCharacter1
RPAGAGGross invoice amount in domestic currencyNumeric15
RPAAPAAPOpen amount still unpaid — the column A/R aging sumsNumeric15
RPADSCADSCDiscount offered to the customer if paid by the discount due dateNumeric15
RPADSAADSADiscount actually taken when the invoice was paidNumeric15
RPATXAATXATaxable portion of the invoice amountNumeric15
RPSTAMSTAMTax amount on the invoiceNumeric15
RPBCRCBCRCBase (domestic) currency of the companyString3
RPCRRMCRRMCurrency mode — whether the invoice was entered in domestic or foreign currencyCharacter1
RPCRCDCRCDTransaction currency of the invoiceString3
RPCRRCRRExchange rate used to convert foreign to domestic amounts; implied decimals vary by setupNumeric15
RPACRACRGross invoice amount in the transaction (foreign) currencyNumeric15
RPFAPFAPOpen amount in the transaction (foreign) currencyNumeric15
RPTXA1TXA1Tax rate/area applied to the invoiceString10
RPMCUMCUBusiness unit for the receivable, used in AAI account resolutionString12
RPPTCPTCPayment terms code that set the due and discount datesString3
RPDDJDDJNet due date used for aging bucketsNumeric6
RPDDNJDDNJDiscount due date — pay by this date to earn the discountNumeric6
RPRSCORSCOWrite-off reason code when part of the balance was written offString2
RPODOCODOCOriginal document number when this row derives from another document (e.g. chargeback source)Numeric8
RPODCTODCTOriginal document type paired with the original document numberString2
RPVINVVINVCustomer's reference/invoice number as supplied on the remittanceString25
RPDCTODCTOSales order type when the invoice came from sales updateString2
RPSDOCSDOCSales order number that generated the invoice via R42800Numeric8
RPSDCTSDCTDocument type of the originating sales orderString2
RPVODVODVoid flag — voided invoices remain as rows, so filter them out of agingCharacter1
RPPYIDPYIDInternal payment ID linking to F03B13/F03B14 once cash is appliedNumeric15

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.

Query parameters
-- ============================================================
-- 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

  • F03B11F03012foreign key · N:1
    ON f03b11.RPAN8 = f03012.AIAN8
  • F03B11F0101foreign key · N:1
    ON f03b11.RPAN8 = f0101.ABAN8
  • F03B14F03B11foreign key · N:1
    ON f03b14.RZDOC = f03b11.RPDOC
  • F03B11F0005UDC decode · N:1
    ON f03b11.RPPST = f0005.DRKY
  • F47047F03B11foreign key · N:1
    ON f47047.SZDOC = f03b11.RPDOC

Programs That Use This Table

Primary programs