F42199
historyAlso in JDE WorldSales order detail ledger - writes a history row every time an F4211 line changes, so each line can appear many times keyed by update date/time
Sales order change ledger — every change writes a row; not the same as F42119 sales-update history.
Fields
49 fields · 6 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | SLKCOO | KCOO | Company that owns the order-number sequence; part of the composite order key | String | 5 | |
| Primary key | SLDOCO | DOCO | Order number | Numeric | 8 | |
| Primary key | SLDCTO | DCTO | Order document type (e.g. OP purchase order, SO sales order) | String | 2 | |
| Primary key | SLLNID | LNID | Order line number (3 implied decimals, e.g. 1.000) | Numeric | 6 | |
| Primary key | SLUPMJ | UPMJ | Date this ledger snapshot was written; part of the primary key | Numeric | 6 | |
| Primary key | SLTDAY | TDAY | Time this ledger snapshot was written; part of the primary key | Numeric | 6 | |
| SLSFXO | SFXO | Order suffix distinguishing multiple documents under one order number | String | 3 | ||
| SLMCU | MCU | Detail branch/plant the line ships from; right-justified, space-padded to 12 | String | 12 | ||
| SLCO | CO | Company code | String | 5 | ||
| SLEMCU | EMCU | Header (originating) business unit; right-justified, space-padded to 12 | String | 12 | ||
| SLOORN | OORN | Order number of the originating document this record came from | String | 8 | ||
| SLOCTO | OCTO | Document type of the originating order | String | 2 | ||
| SLRORN | RORN | Cross-referenced related order number (PO, SO, or work order) | String | 8 | ||
| SLAN8 | AN8 | Sold-to customer address book number | Numeric | 8 | ||
| SLSHAN | SHAN | Ship-to address book number | Numeric | 8 | ||
| SLITM | ITM | Short internal item number - joins to F4101/F4102 | Numeric | 8 | ||
| SLLITM | LITM | Second item number, the long code users normally key | String | 25 | ||
| SLAITM | AITM | Third item number (catalog or alternate identifier) | String | 25 | ||
| SLLOCN | LOCN | Warehouse storage location | String | 20 | ||
| SLLOTN | LOTN | Lot or serial number | String | 30 | ||
| SLDSC1 | DSC1 | Line description | String | 30 | ||
| SLLNTY | LNTY | Line type controlling G/L, inventory, and A/P-A/R interfaces | String | 2 | ||
| SLLTTR | LTTR | Last completed status in the order activity flow | String | 3 | ||
| SLNXTR | NXTR | Next expected status in the order activity flow | String | 3 | ||
| SLTRDJ | TRDJ | Order/transaction date | Numeric | 6 | ||
| SLDRQJ | DRQJ | Requested date | Numeric | 6 | ||
| SLPDDJ | PDDJ | Scheduled/promised delivery date | Numeric | 6 | ||
| SLOPDJ | OPDJ | Original promised delivery date | Numeric | 6 | ||
| SLPPDJ | PPDJ | Promised ship date | Numeric | 6 | ||
| SLADDJ | ADDJ | Actual ship or delivery date | Numeric | 6 | ||
| SLIVD | IVD | Invoice date | Numeric | 6 | ||
| SLCNDJ | CNDJ | Cancel date | Numeric | 6 | ||
| SLDGL | DGL | General ledger date the transaction posts to | Numeric | 6 | ||
| SLUOM | UOM | Transaction unit of measure | String | 2 | ||
| SLUORG | UORG | Ordered quantity in the transaction unit of measure | Numeric | 15 | ||
| SLSOQS | SOQS | Quantity shipped | Numeric | 15 | ||
| SLSOBK | SOBK | Quantity backordered or held | Numeric | 15 | ||
| SLSOCN | SOCN | Quantity canceled | Numeric | 15 | ||
| SLAOPN | AOPN | Open amount remaining on the line | Numeric | 15 | ||
| SLUPRC | UPRC | Unit price in domestic currency (4 implied decimals) | Numeric | 15 | ||
| SLAEXP | AEXP | Extended price of the line in domestic currency | Numeric | 15 | ||
| SLUNCS | UNCS | Unit cost in domestic currency (4 implied decimals) | Numeric | 15 | ||
| SLECST | ECST | Extended cost (quantity x unit cost) in domestic currency | Numeric | 15 | ||
| SLCRCD | CRCD | Transaction currency code | String | 3 | ||
| SLCRR | CRR | Currency conversion spot rate; implied decimals vary by setup | Numeric | 15 | ||
| SLFUP | FUP | Unit price in foreign (transaction) currency | Numeric | 15 | ||
| SLFEA | FEA | Extended price in foreign currency | Numeric | 15 | ||
| SLVR01 | VR01 | Reference field, commonly the customer or supplier PO number | String | 25 | ||
| SLGLC | GLC | G/L offset class used to derive distribution accounts | String | 4 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F42199on 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 : F42199 Sales order detail ledger - writes a history row every time an F4211 line changes, so each line can appear many times keyed by update date/time
-- Purpose: Column-selected read of F42199 — auto-generated from field metadata
-- Grain : One row per SLKCOO + SLDOCO + SLDCTO + SLLNID + SLUPMJ + SLTDAY
-- 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.SLKCOO AS "Company that owns the order-number sequence; part of the composite order key",
f.SLDOCO AS "Order number",
f.SLDCTO AS "Order document type (e.g. OP purchase order, SO sales order)",
f.SLLNID / POWER(10, 3) AS "Order line number (3 implied decimals, e.g. 1.000)", -- implied decimals: 3 (verify in F9210)
CASE WHEN f.SLUPMJ IS NULL OR f.SLUPMJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLUPMJ AS INT) DIV 1000, 1, 1), CAST(f.SLUPMJ AS INT) % 1000 - 1) END AS "Date this ledger snapshot was written; part of the primary key", -- CYYDDD Julian → DATE
f.SLTDAY AS "Time this ledger snapshot was written; part of the primary key",
f.SLSFXO AS "Order suffix distinguishing multiple documents under one order number",
TRIM(f.SLMCU) AS "Detail branch/plant the line ships from; right-justified, space-padded to 12",
f.SLCO AS "Company code",
TRIM(f.SLEMCU) AS "Header (originating) business unit; right-justified, space-padded to 12",
f.SLOORN AS "Order number of the originating document this record came from",
f.SLOCTO AS "Document type of the originating order",
f.SLRORN AS "Cross-referenced related order number (PO, SO, or work order)",
f.SLAN8 AS "Sold-to customer address book number",
f.SLSHAN AS "Ship-to address book number",
f.SLITM AS "Short internal item number - joins to F4101/F4102",
f.SLLITM AS "Second item number, the long code users normally key",
f.SLAITM AS "Third item number (catalog or alternate identifier)",
f.SLLOCN AS "Warehouse storage location",
f.SLLOTN AS "Lot or serial number",
f.SLDSC1 AS "Line description",
f.SLLNTY AS "Line type controlling G/L, inventory, and A/P-A/R interfaces",
f.SLLTTR AS "Last completed status in the order activity flow",
f.SLNXTR AS "Next expected status in the order activity flow",
CASE WHEN f.SLTRDJ IS NULL OR f.SLTRDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLTRDJ AS INT) DIV 1000, 1, 1), CAST(f.SLTRDJ AS INT) % 1000 - 1) END AS "Order/transaction date", -- CYYDDD Julian → DATE
CASE WHEN f.SLDRQJ IS NULL OR f.SLDRQJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLDRQJ AS INT) DIV 1000, 1, 1), CAST(f.SLDRQJ AS INT) % 1000 - 1) END AS "Requested date", -- CYYDDD Julian → DATE
CASE WHEN f.SLPDDJ IS NULL OR f.SLPDDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLPDDJ AS INT) DIV 1000, 1, 1), CAST(f.SLPDDJ AS INT) % 1000 - 1) END AS "Scheduled/promised delivery date", -- CYYDDD Julian → DATE
CASE WHEN f.SLOPDJ IS NULL OR f.SLOPDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLOPDJ AS INT) DIV 1000, 1, 1), CAST(f.SLOPDJ AS INT) % 1000 - 1) END AS "Original promised delivery date", -- CYYDDD Julian → DATE
CASE WHEN f.SLPPDJ IS NULL OR f.SLPPDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLPPDJ AS INT) DIV 1000, 1, 1), CAST(f.SLPPDJ AS INT) % 1000 - 1) END AS "Promised ship date", -- CYYDDD Julian → DATE
CASE WHEN f.SLADDJ IS NULL OR f.SLADDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLADDJ AS INT) DIV 1000, 1, 1), CAST(f.SLADDJ AS INT) % 1000 - 1) END AS "Actual ship or delivery date", -- CYYDDD Julian → DATE
CASE WHEN f.SLIVD IS NULL OR f.SLIVD = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLIVD AS INT) DIV 1000, 1, 1), CAST(f.SLIVD AS INT) % 1000 - 1) END AS "Invoice date", -- CYYDDD Julian → DATE
CASE WHEN f.SLCNDJ IS NULL OR f.SLCNDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLCNDJ AS INT) DIV 1000, 1, 1), CAST(f.SLCNDJ AS INT) % 1000 - 1) END AS "Cancel date", -- CYYDDD Julian → DATE
CASE WHEN f.SLDGL IS NULL OR f.SLDGL = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SLDGL AS INT) DIV 1000, 1, 1), CAST(f.SLDGL AS INT) % 1000 - 1) END AS "General ledger date the transaction posts to", -- CYYDDD Julian → DATE
f.SLUOM AS "Transaction unit of measure",
f.SLUORG AS "Ordered quantity in the transaction unit of measure",
f.SLSOQS AS "Quantity shipped",
f.SLSOBK AS "Quantity backordered or held",
f.SLSOCN AS "Quantity canceled",
f.SLAOPN / POWER(10, 2) AS "Open amount remaining on the line", -- implied decimals: 2 (verify in F9210)
f.SLUPRC / POWER(10, 4) AS "Unit price in domestic currency (4 implied decimals)" -- implied decimals: 4 (verify in F9210)
-- … plus 9 more columns — full list in the Fields section above
FROM <catalog>.<schema_data>.f42199 f
WHERE
f.SLKCOO = '<KCOO>'
-- AND f.SLDOCO = <DOCO>
-- AND f.SLDCTO = '<DCTO>'
-- AND f.SLTRDJ >= <TRDJ_FROM> -- Julian CYYDDD, e.g. 126001
-- AND f.SLTRDJ <= <TRDJ_TO> -- Julian CYYDDD, e.g. 126365
ORDER BY f.SLKCOO;7 parameters not filled: <catalog>, <schema_data>, <KCOO>, <DOCO>, <DCTO>, <TRDJ_FROM>, <TRDJ_TO>
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
No program mappings populated for this table yet.