Skip to content
JDE Reference

F4074

transactionAlso in JDE World

Price adjustment ledger - the pricing history behind each order line, one row per adjustment applied by Advanced Pricing

Fields

39 fields · 11 key

KeyFieldAliasDescriptionTypeLengthFlags
Primary keyALDOCODOCOOrder numberNumeric8
Primary keyALDCTODCTOOrder document type (e.g. OP purchase order, SO sales order)String2
Primary keyALKCOOKCOOCompany that owns the order-number sequence; part of the composite order keyString5
Primary keyALSFXOSFXOOrder suffix distinguishing multiple documents under one order numberString3
Primary keyALLNIDLNIDOrder line number (3 implied decimals, e.g. 1.000)Numeric6
Primary keyALAKIDAKIDAlternate key tying the adjustment to its source transactionNumeric15
Primary keyALSRCFDSRCFDSource of the alternate key (which application wrote the row)String2
Primary keyALOSEQOSEQSequence of the adjustment within the scheduleNumeric4
Primary keyALSUBSEQSUBSEQSub-sequence when one adjustment level produces multiple rowsNumeric4
Primary keyALTIERTIERQuantity-break tier the line qualified forNumeric2
Primary keyALPA04PA04Target application flag (sales vs procurement pricing)Character1
ALASNASNPrice and adjustment scheduleString8
ALASTASTPrice adjustment name that generated this rowString8
ALITMITMShort internal item number - joins to F4101/F4102Numeric8
ALAN8AN8Customer or supplier address number the price was resolved forNumeric8
ALCRCDCRCDTransaction currency codeString3
ALUOMUOMTransaction unit of measureString2
ALMNQMNQFrom-quantity threshold of the price break appliedNumeric15
ALLEDGLEDGCost method used as the pricing basisString2
ALFRMNFRMNPrice formula applied, if formula-basedString10
ALBSCDBSCDBasis code - how the adjustment computes (percent, amount, formula, cost-plus)Character1
ALFVTRFVTRFactor value - the percent, amount, or multiplier appliedNumeric15
ALABASABASFlag: this adjustment overrides the base priceCharacter1
ALUPRCUPRCResulting unit price after the adjustment (4 implied decimals)Numeric15
ALFUPFUPUnit price in foreign (transaction) currencyNumeric15
ALGLCGLCG/L offset class used to derive distribution accountsString4
ALARSNARSNAdjustment reason codeString3
ALACNTACNTAdjustment control code (print/accrue behavior)Character1
ALMDEDMDEDFlag: adjustment was manually added or changedCharacter1
ALPROVPROVPrice override flagCharacter1
ALATIDATIDInternal key of the adjustment detail definitionNumeric8
ALIGIDIGIDItem group key the price was resolved fromNumeric8
ALCGIDCGIDCustomer group key the price was resolved fromNumeric8
ALOGIDOGIDOrder group key the price was resolved fromNumeric8
ALBSDVALBSDVALValue the adjustment calculation was based onNumeric15
ALOLVLOLVLLevel the adjustment applies at (line, basket, or order)Character1
ALADJSTSADJSTSAdjustment statusCharacter1
ALPMTNPMTNPromotion ID tied to the adjustmentString12
ALNBRORDNBRORDOrder count used for volume-incentive accumulationNumeric15

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

  • F4074F4211foreign key · N:1
    ON f4074.ALDOCO = f4211.SDDOCO

Programs That Use This Table

No program mappings populated for this table yet.