F03012
masterCustomer master by line of business: one row per customer address number and company holding A/R credit terms, collection settings, sales defaults, and rolled-up invoice history.
Company 00000 row carries the default credit/collection profile; company-specific rows override it — joins on AN8 alone fan out when a customer has both, so also match on company (or filter AICO = '00000'). World A9.x kept this data on F0301 instead.
Fields
40 fields · 2 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | AIAN8 | AN8 | Customer address book number; join to F0101 for name and to F03B11 for invoices | Numeric | 8 | |
| Primary key | AICO | CO | Company this customer record applies to; company 00000 holds the default line-of-business record | String | 5 | |
| AIARC | ARC | G/L offset class that routes A/R postings to the right trade account via AAIs | String | 4 | ||
| AICRCD | CRCD | Default transaction currency assigned to this customer | String | 3 | ||
| AITXA1 | TXA1 | Default tax rate/area applied to invoices for this customer | String | 10 | ||
| AIACL | ACL | Credit limit granted to the customer, in whole currency units | Numeric | 15 | ||
| AIHDAR | HDAR | Hold-invoices flag that blocks new invoice entry for the customer | Character | 1 | ||
| AITRAR | TRAR | A/R payment terms code that drives due-date and discount calculation | String | 3 | ||
| AIRYIN | RYIN | Default payment instrument (check, EFT, draft) expected from this customer | Character | 1 | ||
| AIARPY | ARPY | Alternate payor address number when someone other than the customer pays | Numeric | 8 | ||
| AIDSO | DSO | Days sales outstanding as computed by the credit analysis refresh | Numeric | 5 | ||
| AICMGR | CMGR | Credit manager assigned to the account | String | 10 | ||
| AICLMG | CLMG | Collection manager assigned to the account | String | 10 | ||
| AIAFC | AFC | Whether finance charges are applied to late balances for this customer | Character | 1 | ||
| AIDLIJ | DLIJ | Date of the most recent invoice raised for the customer | Numeric | 6 | ||
| AIABC1 | ABC1 | ABC ranking of the customer by sales volume | Character | 1 | ||
| AIDLP | DLP | Date a payment was last received from the customer | Numeric | 6 | ||
| AIAVD | AVD | Average days late across paid invoices, from credit analysis | Numeric | 3 | ||
| AIAD | AD | Total amount currently due from the customer | Numeric | 15 | ||
| AIASTY | ASTY | Amount invoiced year-to-date | Numeric | 15 | ||
| AISPYE | SPYE | Amount invoiced in the prior year | Numeric | 15 | ||
| AIAHB | AHB | Highest open balance the account has reached | Numeric | 15 | ||
| AIAPRC | APRC | Value of open sales orders not yet invoiced (credit exposure) | Numeric | 15 | ||
| AIDAOJ | DAOJ | Date the customer account was opened | Numeric | 6 | ||
| AICPGP | CPGP | Customer price group used by base pricing and adjustments | String | 8 | ||
| AITRDC | TRDC | Trade discount percent applied to sales order pricing | Numeric | 7 | ||
| AIHOLD | HOLD | Order hold code that stops new sales orders for this customer | String | 2 | ||
| AIROUT | ROUT | Delivery route code for shipment planning | String | 3 | ||
| AIZON | ZON | Delivery zone number for freight and route assignment | String | 3 | ||
| AICARS | CARS | Default carrier address number for shipments to this customer | Numeric | 8 | ||
| AILTDT | LTDT | Standard transit days from ship point to the customer | Numeric | 5 | ||
| AIFRTH | FRTH | Freight handling code defining FOB terms and freight responsibility | String | 3 | ||
| AIBACK | BACK | Whether backorders are allowed on sales orders for this customer | Character | 1 | ||
| AIPORQ | PORQ | Whether a customer PO number is required on sales orders | Character | 1 | ||
| AIARTO | ARTO | Level at which credit checking runs (customer, parent, or line of business) | Character | 1 | ||
| AIBLFR | BLFR | Billing frequency for invoice consolidation and cycle billing | Character | 1 | ||
| AIAC01 | AC01 | Address book category code 01 — first of thirty customer classification buckets | String | 3 | ||
| AIAC11 | AC11 | Address book category code 11, commonly repurposed as sales region | String | 3 | ||
| AIBSC | BSC | Buying segment code used by CRM and sales analysis | String | 10 | ||
| AICUSTS | CUSTS | Customer status code (active, inactive, prospect) | Character | 1 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F03012on 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 : F03012 Customer master by line of business: one row per customer address number and company holding A/R credit terms, collection settings, sales defaults, and rolled-up invoice history.
-- Purpose: Column-selected read of F03012 — auto-generated from field metadata
-- Grain : One row per AIAN8 + AICO
-- 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.AIAN8 AS "Customer address book number; join to F0101 for name and to F03B11 for invoices",
f.AICO AS "Company this customer record applies to; company 00000 holds the default line-of-business record",
f.AIARC AS "G/L offset class that routes A/R postings to the right trade account via AAIs",
f.AICRCD AS "Default transaction currency assigned to this customer",
f.AITXA1 AS "Default tax rate/area applied to invoices for this customer",
f.AIACL AS "Credit limit granted to the customer, in whole currency units",
f.AIHDAR AS "Hold-invoices flag that blocks new invoice entry for the customer",
f.AITRAR AS "A/R payment terms code that drives due-date and discount calculation",
f.AIRYIN AS "Default payment instrument (check, EFT, draft) expected from this customer",
f.AIARPY AS "Alternate payor address number when someone other than the customer pays",
f.AIDSO AS "Days sales outstanding as computed by the credit analysis refresh",
f.AICMGR AS "Credit manager assigned to the account",
f.AICLMG AS "Collection manager assigned to the account",
f.AIAFC AS "Whether finance charges are applied to late balances for this customer",
CASE WHEN f.AIDLIJ IS NULL OR f.AIDLIJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.AIDLIJ AS INT) DIV 1000, 1, 1), CAST(f.AIDLIJ AS INT) % 1000 - 1) END AS "Date of the most recent invoice raised for the customer", -- CYYDDD Julian → DATE
f.AIABC1 AS "ABC ranking of the customer by sales volume",
CASE WHEN f.AIDLP IS NULL OR f.AIDLP = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.AIDLP AS INT) DIV 1000, 1, 1), CAST(f.AIDLP AS INT) % 1000 - 1) END AS "Date a payment was last received from the customer", -- CYYDDD Julian → DATE
f.AIAVD AS "Average days late across paid invoices, from credit analysis",
f.AIAD / POWER(10, 2) AS "Total amount currently due from the customer", -- implied decimals: 2 (verify in F9210)
f.AIASTY / POWER(10, 2) AS "Amount invoiced year-to-date", -- implied decimals: 2 (verify in F9210)
f.AISPYE / POWER(10, 2) AS "Amount invoiced in the prior year", -- implied decimals: 2 (verify in F9210)
f.AIAHB / POWER(10, 2) AS "Highest open balance the account has reached", -- implied decimals: 2 (verify in F9210)
f.AIAPRC / POWER(10, 2) AS "Value of open sales orders not yet invoiced (credit exposure)", -- implied decimals: 2 (verify in F9210)
CASE WHEN f.AIDAOJ IS NULL OR f.AIDAOJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.AIDAOJ AS INT) DIV 1000, 1, 1), CAST(f.AIDAOJ AS INT) % 1000 - 1) END AS "Date the customer account was opened", -- CYYDDD Julian → DATE
f.AICPGP AS "Customer price group used by base pricing and adjustments",
f.AITRDC / POWER(10, 3) AS "Trade discount percent applied to sales order pricing", -- implied decimals: 3 (verify in F9210)
f.AIHOLD AS "Order hold code that stops new sales orders for this customer",
f.AIROUT AS "Delivery route code for shipment planning",
f.AIZON AS "Delivery zone number for freight and route assignment",
f.AICARS AS "Default carrier address number for shipments to this customer",
f.AILTDT AS "Standard transit days from ship point to the customer",
f.AIFRTH AS "Freight handling code defining FOB terms and freight responsibility",
f.AIBACK AS "Whether backorders are allowed on sales orders for this customer",
f.AIPORQ AS "Whether a customer PO number is required on sales orders",
f.AIARTO AS "Level at which credit checking runs (customer, parent, or line of business)",
f.AIBLFR AS "Billing frequency for invoice consolidation and cycle billing",
f.AIAC01 AS "Address book category code 01 — first of thirty customer classification buckets",
f.AIAC11 AS "Address book category code 11, commonly repurposed as sales region",
f.AIBSC AS "Buying segment code used by CRM and sales analysis",
f.AICUSTS AS "Customer status code (active, inactive, prospect)"
FROM <catalog>.<schema_data>.f03012 f
WHERE
f.AIAN8 = <AN8>
-- AND f.AICO = '<CO>'
ORDER BY f.AIAN8;4 parameters not filled: <catalog>, <schema_data>, <AN8>, <CO>
Relationships
1-hop neighbors — click a table to navigate there. UDC decode edges point coded fields at their F0005 lookup.
Programs That Use This Table
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 accessInteractive
- 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 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
- 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
- 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 accessBatch UBE