JDE Reference
F4074
transactionAlso in JDE WorldPrice adjustment ledger - the pricing history behind each order line, one row per adjustment applied by Advanced Pricing
Module: 40 · Distribution BaseColumn prefix: AL
Fields
39 fields · 11 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | ALDOCO | DOCO | Order number | Numeric | 8 | |
| Primary key | ALDCTO | DCTO | Order document type (e.g. OP purchase order, SO sales order) | String | 2 | |
| Primary key | ALKCOO | KCOO | Company that owns the order-number sequence; part of the composite order key | String | 5 | |
| Primary key | ALSFXO | SFXO | Order suffix distinguishing multiple documents under one order number | String | 3 | |
| Primary key | ALLNID | LNID | Order line number (3 implied decimals, e.g. 1.000) | Numeric | 6 | |
| Primary key | ALAKID | AKID | Alternate key tying the adjustment to its source transaction | Numeric | 15 | |
| Primary key | ALSRCFD | SRCFD | Source of the alternate key (which application wrote the row) | String | 2 | |
| Primary key | ALOSEQ | OSEQ | Sequence of the adjustment within the schedule | Numeric | 4 | |
| Primary key | ALSUBSEQ | SUBSEQ | Sub-sequence when one adjustment level produces multiple rows | Numeric | 4 | |
| Primary key | ALTIER | TIER | Quantity-break tier the line qualified for | Numeric | 2 | |
| Primary key | ALPA04 | PA04 | Target application flag (sales vs procurement pricing) | Character | 1 | |
| ALASN | ASN | Price and adjustment schedule | String | 8 | ||
| ALAST | AST | Price adjustment name that generated this row | String | 8 | ||
| ALITM | ITM | Short internal item number - joins to F4101/F4102 | Numeric | 8 | ||
| ALAN8 | AN8 | Customer or supplier address number the price was resolved for | Numeric | 8 | ||
| ALCRCD | CRCD | Transaction currency code | String | 3 | ||
| ALUOM | UOM | Transaction unit of measure | String | 2 | ||
| ALMNQ | MNQ | From-quantity threshold of the price break applied | Numeric | 15 | ||
| ALLEDG | LEDG | Cost method used as the pricing basis | String | 2 | ||
| ALFRMN | FRMN | Price formula applied, if formula-based | String | 10 | ||
| ALBSCD | BSCD | Basis code - how the adjustment computes (percent, amount, formula, cost-plus) | Character | 1 | ||
| ALFVTR | FVTR | Factor value - the percent, amount, or multiplier applied | Numeric | 15 | ||
| ALABAS | ABAS | Flag: this adjustment overrides the base price | Character | 1 | ||
| ALUPRC | UPRC | Resulting unit price after the adjustment (4 implied decimals) | Numeric | 15 | ||
| ALFUP | FUP | Unit price in foreign (transaction) currency | Numeric | 15 | ||
| ALGLC | GLC | G/L offset class used to derive distribution accounts | String | 4 | ||
| ALARSN | ARSN | Adjustment reason code | String | 3 | ||
| ALACNT | ACNT | Adjustment control code (print/accrue behavior) | Character | 1 | ||
| ALMDED | MDED | Flag: adjustment was manually added or changed | Character | 1 | ||
| ALPROV | PROV | Price override flag | Character | 1 | ||
| ALATID | ATID | Internal key of the adjustment detail definition | Numeric | 8 | ||
| ALIGID | IGID | Item group key the price was resolved from | Numeric | 8 | ||
| ALCGID | CGID | Customer group key the price was resolved from | Numeric | 8 | ||
| ALOGID | OGID | Order group key the price was resolved from | Numeric | 8 | ||
| ALBSDVAL | BSDVAL | Value the adjustment calculation was based on | Numeric | 15 | ||
| ALOLVL | OLVL | Level the adjustment applies at (line, basket, or order) | Character | 1 | ||
| ALADJSTS | ADJSTS | Adjustment status | Character | 1 | ||
| ALPMTN | PMTN | Promotion ID tied to the adjustment | String | 12 | ||
| ALNBRORD | NBRORD | Order count used for volume-incentive accumulation | Numeric | 15 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F4074on 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 : F4074 Price adjustment ledger - the pricing history behind each order line, one row per adjustment applied by Advanced Pricing
-- Purpose: Column-selected read of F4074 — auto-generated from field metadata
-- Grain : One row per ALDOCO + ALDCTO + ALKCOO + ALSFXO + ALLNID + ALAKID + ALSRCFD + ALOSEQ + ALSUBSEQ + ALTIER + ALPA04
-- 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.ALDOCO AS "Order number",
f.ALDCTO AS "Order document type (e.g. OP purchase order, SO sales order)",
f.ALKCOO AS "Company that owns the order-number sequence; part of the composite order key",
f.ALSFXO AS "Order suffix distinguishing multiple documents under one order number",
f.ALLNID / POWER(10, 3) AS "Order line number (3 implied decimals, e.g. 1.000)", -- implied decimals: 3 (verify in F9210)
f.ALAKID AS "Alternate key tying the adjustment to its source transaction",
f.ALSRCFD AS "Source of the alternate key (which application wrote the row)",
f.ALOSEQ AS "Sequence of the adjustment within the schedule",
f.ALSUBSEQ AS "Sub-sequence when one adjustment level produces multiple rows",
f.ALTIER AS "Quantity-break tier the line qualified for",
f.ALPA04 AS "Target application flag (sales vs procurement pricing)",
f.ALASN AS "Price and adjustment schedule",
f.ALAST AS "Price adjustment name that generated this row",
f.ALITM AS "Short internal item number - joins to F4101/F4102",
f.ALAN8 AS "Customer or supplier address number the price was resolved for",
f.ALCRCD AS "Transaction currency code",
f.ALUOM AS "Transaction unit of measure",
f.ALMNQ AS "From-quantity threshold of the price break applied",
f.ALLEDG AS "Cost method used as the pricing basis",
f.ALFRMN AS "Price formula applied, if formula-based",
f.ALBSCD AS "Basis code - how the adjustment computes (percent, amount, formula, cost-plus)",
f.ALFVTR / POWER(10, 4) AS "Factor value - the percent, amount, or multiplier applied", -- implied decimals: 4 (verify in F9210)
f.ALABAS AS "Flag: this adjustment overrides the base price",
f.ALUPRC / POWER(10, 4) AS "Resulting unit price after the adjustment (4 implied decimals)", -- implied decimals: 4 (verify in F9210)
f.ALFUP / POWER(10, 4) AS "Unit price in foreign (transaction) currency", -- implied decimals: 4 (verify in F9210)
f.ALGLC AS "G/L offset class used to derive distribution accounts",
f.ALARSN AS "Adjustment reason code",
f.ALACNT AS "Adjustment control code (print/accrue behavior)",
f.ALMDED AS "Flag: adjustment was manually added or changed",
f.ALPROV AS "Price override flag",
f.ALATID AS "Internal key of the adjustment detail definition",
f.ALIGID AS "Item group key the price was resolved from",
f.ALCGID AS "Customer group key the price was resolved from",
f.ALOGID AS "Order group key the price was resolved from",
f.ALBSDVAL / POWER(10, 4) AS "Value the adjustment calculation was based on", -- implied decimals: 4 (verify in F9210)
f.ALOLVL AS "Level the adjustment applies at (line, basket, or order)",
f.ALADJSTS AS "Adjustment status",
f.ALPMTN AS "Promotion ID tied to the adjustment",
f.ALNBRORD AS "Order count used for volume-incentive accumulation"
FROM <catalog>.<schema_data>.f4074 f
WHERE
f.ALDOCO = <DOCO>
-- AND f.ALDCTO = '<DCTO>'
-- AND f.ALKCOO = '<KCOO>'
ORDER BY f.ALDOCO;5 parameters not filled: <catalog>, <schema_data>, <DOCO>, <DCTO>, <KCOO>
Relationships
1-hop neighbors — click a table to navigate there. UDC decode edges point coded fields at their F0005 lookup.
Join details
ON f4074.ALDOCO = f4211.SDDOCO
Programs That Use This Table
No program mappings populated for this table yet.