Skip to content
JDE Reference

F03012

master

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.

Notes

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

KeyFieldAliasDescriptionTypeLengthFlags
Primary keyAIAN8AN8Customer address book number; join to F0101 for name and to F03B11 for invoicesNumeric8
Primary keyAICOCOCompany this customer record applies to; company 00000 holds the default line-of-business recordString5
AIARCARCG/L offset class that routes A/R postings to the right trade account via AAIsString4
AICRCDCRCDDefault transaction currency assigned to this customerString3
AITXA1TXA1Default tax rate/area applied to invoices for this customerString10
AIACLACLCredit limit granted to the customer, in whole currency unitsNumeric15
AIHDARHDARHold-invoices flag that blocks new invoice entry for the customerCharacter1
AITRARTRARA/R payment terms code that drives due-date and discount calculationString3
AIRYINRYINDefault payment instrument (check, EFT, draft) expected from this customerCharacter1
AIARPYARPYAlternate payor address number when someone other than the customer paysNumeric8
AIDSODSODays sales outstanding as computed by the credit analysis refreshNumeric5
AICMGRCMGRCredit manager assigned to the accountString10
AICLMGCLMGCollection manager assigned to the accountString10
AIAFCAFCWhether finance charges are applied to late balances for this customerCharacter1
AIDLIJDLIJDate of the most recent invoice raised for the customerNumeric6
AIABC1ABC1ABC ranking of the customer by sales volumeCharacter1
AIDLPDLPDate a payment was last received from the customerNumeric6
AIAVDAVDAverage days late across paid invoices, from credit analysisNumeric3
AIADADTotal amount currently due from the customerNumeric15
AIASTYASTYAmount invoiced year-to-dateNumeric15
AISPYESPYEAmount invoiced in the prior yearNumeric15
AIAHBAHBHighest open balance the account has reachedNumeric15
AIAPRCAPRCValue of open sales orders not yet invoiced (credit exposure)Numeric15
AIDAOJDAOJDate the customer account was openedNumeric6
AICPGPCPGPCustomer price group used by base pricing and adjustmentsString8
AITRDCTRDCTrade discount percent applied to sales order pricingNumeric7
AIHOLDHOLDOrder hold code that stops new sales orders for this customerString2
AIROUTROUTDelivery route code for shipment planningString3
AIZONZONDelivery zone number for freight and route assignmentString3
AICARSCARSDefault carrier address number for shipments to this customerNumeric8
AILTDTLTDTStandard transit days from ship point to the customerNumeric5
AIFRTHFRTHFreight handling code defining FOB terms and freight responsibilityString3
AIBACKBACKWhether backorders are allowed on sales orders for this customerCharacter1
AIPORQPORQWhether a customer PO number is required on sales ordersCharacter1
AIARTOARTOLevel at which credit checking runs (customer, parent, or line of business)Character1
AIBLFRBLFRBilling frequency for invoice consolidation and cycle billingCharacter1
AIAC01AC01Address book category code 01 — first of thirty customer classification bucketsString3
AIAC11AC11Address book category code 11, commonly repurposed as sales regionString3
AIBSCBSCBuying segment code used by CRM and sales analysisString10
AICUSTSCUSTSCustomer status code (active, inactive, prospect)Character1

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.

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

Join details

  • F03012F0101foreign key · N:1
    ON f03012.AIAN8 = f0101.ABAN8
  • F03B11F03012foreign key · N:1
    ON f03b11.RPAN8 = f03012.AIAN8

Programs That Use This Table