F42119
historyAlso in JDE WorldSales order detail history — lines moved out of F4211 at sales update; same layout as F4211
Sales-update destination: R42800 moves finished F4211 lines here. Open + closed sales = F4211 UNION ALL F42119.
Open + closed sales
F42119 holds the lines moved out of F4211 at sales update. To see all sales — open and closed — query F4211 UNION F42119. See the sales-history pattern →
Fields
47 fields · 4 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | SDKCOO | KCOO | Order key company - disambiguates order numbers across companies | String | 5 | |
| Primary key | SDDOCO | DOCO | Order number | Numeric | 8 | |
| Primary key | SDDCTO | DCTO | Order type code (SO, ST, CO, ...) | String | 2 | |
| Primary key | SDLNID | LNID | Order line number, stored x1000 (3 implied decimals) | Numeric | 6 | |
| SDSFXO | SFXO | Order suffix, used to split partial shipments/invoices | String | 3 | ||
| SDMCU | MCU | Business unit / branch plant (right-justified, space-padded to 12) | String | 12 | ||
| SDCO | CO | Company the transaction belongs to | String | 5 | ||
| SDEMCU | EMCU | Header branch plant of the order (right-justified, space-padded) | String | 12 | ||
| SDOORN | OORN | Original order number when this order was generated from another | String | 8 | ||
| SDOCTO | OCTO | Original order type | String | 2 | ||
| SDRORN | RORN | Related order number (e.g. transfer or work order) | String | 8 | ||
| SDAN8 | AN8 | Sold-to customer address book number | Numeric | 8 | ||
| SDSHAN | SHAN | Ship-to address book number | Numeric | 8 | ||
| SDITM | ITM | Short item number - the internal numeric item key | Numeric | 8 | ||
| SDLITM | LITM | Second item number - the primary user-facing item code | String | 25 | ||
| SDAITM | AITM | Third item number - catalog or cross-reference item code | String | 25 | ||
| SDLOCN | LOCN | Storage location within the branch plant | String | 20 | ||
| SDLOTN | LOTN | Lot or serial number | String | 30 | ||
| SDDSC1 | DSC1 | Description line 1 | String | 30 | ||
| SDLNTY | LNTY | Line type controlling inventory/GL/AR interfaces (S, N, F, ...) | String | 2 | ||
| SDLTTR | LTTR | Last status the line has reached in the order activity flow | String | 3 | ||
| SDNXTR | NXTR | Next expected status in the order activity flow | String | 3 | ||
| SDTRDJ | TRDJ | Order/transaction date | Numeric | 6 | ||
| SDDRQJ | DRQJ | Date the customer requested the goods | Numeric | 6 | ||
| SDPDDJ | PDDJ | Scheduled pick date | Numeric | 6 | ||
| SDOPDJ | OPDJ | Original promised delivery date, kept for on-time measurement | Numeric | 6 | ||
| SDPPDJ | PPDJ | Currently promised ship date | Numeric | 6 | ||
| SDADDJ | ADDJ | Actual ship date | Numeric | 6 | ||
| SDIVD | IVD | Invoice date | Numeric | 6 | ||
| SDCNDJ | CNDJ | Date the order or line was canceled | Numeric | 6 | ||
| SDDGL | DGL | General ledger date the transaction posts to | Numeric | 6 | ||
| SDUOM | UOM | Unit of measure the transaction was entered in | String | 2 | ||
| SDUORG | UORG | Quantity ordered, in transaction UOM | Numeric | 15 | ||
| SDSOQS | SOQS | Quantity shipped | Numeric | 15 | ||
| SDSOBK | SOBK | Quantity backordered or on hold | Numeric | 15 | ||
| SDSOCN | SOCN | Quantity canceled | Numeric | 15 | ||
| SDAOPN | AOPN | Open amount not yet shipped/invoiced | Numeric | 15 | ||
| SDUPRC | UPRC | Unit price in domestic currency (4 implied decimals) | Numeric | 15 | ||
| SDAEXP | AEXP | Extended price in domestic currency | Numeric | 15 | ||
| SDUNCS | UNCS | Unit cost (4 implied decimals) | Numeric | 15 | ||
| SDECST | ECST | Extended cost in domestic currency | Numeric | 15 | ||
| SDCRCD | CRCD | Transaction (from) currency code | String | 3 | ||
| SDCRR | CRR | Currency conversion spot rate; implied decimals vary by setup | Numeric | 15 | ||
| SDFUP | FUP | Unit price in foreign (transaction) currency | Numeric | 15 | ||
| SDFEA | FEA | Extended price in foreign currency | Numeric | 15 | ||
| SDVR01 | VR01 | Reference field - commonly holds the customer PO number | String | 25 | ||
| SDGLC | GLC | G/L offset class the AAIs use to derive revenue/COGS accounts | String | 4 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F42119on 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 : F42119 Sales order detail history — lines moved out of F4211 at sales update; same layout as F4211
-- Purpose: Column-selected read of F42119 — auto-generated from field metadata
-- Grain : One row per SDKCOO + SDDOCO + SDDCTO + SDLNID
-- 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
dh.SDKCOO AS "Order key company - disambiguates order numbers across companies",
dh.SDDOCO AS "Order number",
dh.SDDCTO AS "Order type code (SO, ST, CO, ...)",
dh.SDLNID / POWER(10, 3) AS "Order line number, stored x1000 (3 implied decimals)", -- implied decimals: 3 (verify in F9210)
dh.SDSFXO AS "Order suffix, used to split partial shipments/invoices",
TRIM(dh.SDMCU) AS "Business unit / branch plant (right-justified, space-padded to 12)",
dh.SDCO AS "Company the transaction belongs to",
TRIM(dh.SDEMCU) AS "Header branch plant of the order (right-justified, space-padded)",
dh.SDOORN AS "Original order number when this order was generated from another",
dh.SDOCTO AS "Original order type",
dh.SDRORN AS "Related order number (e.g. transfer or work order)",
dh.SDAN8 AS "Sold-to customer address book number",
dh.SDSHAN AS "Ship-to address book number",
dh.SDITM AS "Short item number - the internal numeric item key",
dh.SDLITM AS "Second item number - the primary user-facing item code",
dh.SDAITM AS "Third item number - catalog or cross-reference item code",
dh.SDLOCN AS "Storage location within the branch plant",
dh.SDLOTN AS "Lot or serial number",
dh.SDDSC1 AS "Description line 1",
dh.SDLNTY AS "Line type controlling inventory/GL/AR interfaces (S, N, F, ...)",
dh.SDLTTR AS "Last status the line has reached in the order activity flow",
dh.SDNXTR AS "Next expected status in the order activity flow",
CASE WHEN dh.SDTRDJ IS NULL OR dh.SDTRDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDTRDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDTRDJ AS INT) % 1000 - 1) END AS "Order/transaction date", -- CYYDDD Julian → DATE
CASE WHEN dh.SDDRQJ IS NULL OR dh.SDDRQJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDDRQJ AS INT) DIV 1000, 1, 1), CAST(dh.SDDRQJ AS INT) % 1000 - 1) END AS "Date the customer requested the goods", -- CYYDDD Julian → DATE
CASE WHEN dh.SDPDDJ IS NULL OR dh.SDPDDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDPDDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDPDDJ AS INT) % 1000 - 1) END AS "Scheduled pick date", -- CYYDDD Julian → DATE
CASE WHEN dh.SDOPDJ IS NULL OR dh.SDOPDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDOPDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDOPDJ AS INT) % 1000 - 1) END AS "Original promised delivery date, kept for on-time measurement", -- CYYDDD Julian → DATE
CASE WHEN dh.SDPPDJ IS NULL OR dh.SDPPDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDPPDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDPPDJ AS INT) % 1000 - 1) END AS "Currently promised ship date", -- CYYDDD Julian → DATE
CASE WHEN dh.SDADDJ IS NULL OR dh.SDADDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDADDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDADDJ AS INT) % 1000 - 1) END AS "Actual ship date", -- CYYDDD Julian → DATE
CASE WHEN dh.SDIVD IS NULL OR dh.SDIVD = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDIVD AS INT) DIV 1000, 1, 1), CAST(dh.SDIVD AS INT) % 1000 - 1) END AS "Invoice date", -- CYYDDD Julian → DATE
CASE WHEN dh.SDCNDJ IS NULL OR dh.SDCNDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDCNDJ AS INT) DIV 1000, 1, 1), CAST(dh.SDCNDJ AS INT) % 1000 - 1) END AS "Date the order or line was canceled", -- CYYDDD Julian → DATE
CASE WHEN dh.SDDGL IS NULL OR dh.SDDGL = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(dh.SDDGL AS INT) DIV 1000, 1, 1), CAST(dh.SDDGL AS INT) % 1000 - 1) END AS "General ledger date the transaction posts to", -- CYYDDD Julian → DATE
dh.SDUOM AS "Unit of measure the transaction was entered in",
dh.SDUORG AS "Quantity ordered, in transaction UOM",
dh.SDSOQS AS "Quantity shipped",
dh.SDSOBK AS "Quantity backordered or on hold",
dh.SDSOCN AS "Quantity canceled",
dh.SDAOPN / POWER(10, 2) AS "Open amount not yet shipped/invoiced", -- implied decimals: 2 (verify in F9210)
dh.SDUPRC / POWER(10, 4) AS "Unit price in domestic currency (4 implied decimals)", -- implied decimals: 4 (verify in F9210)
dh.SDAEXP / POWER(10, 2) AS "Extended price in domestic currency", -- implied decimals: 2 (verify in F9210)
dh.SDUNCS / POWER(10, 4) AS "Unit cost (4 implied decimals)" -- implied decimals: 4 (verify in F9210)
-- … plus 7 more columns — full list in the Fields section above
FROM <catalog>.<schema_data>.f42119 dh
WHERE
dh.SDKCOO = '<KCOO>'
-- AND dh.SDDOCO = <DOCO>
-- AND dh.SDDCTO = '<DCTO>'
-- AND dh.SDTRDJ >= <TRDJ_FROM> -- Julian CYYDDD, e.g. 126001
-- AND dh.SDTRDJ <= <TRDJ_TO> -- Julian CYYDDD, e.g. 126365
ORDER BY dh.SDKCOO;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.
Join details
ON f4211.SDDOCO = f42119.SDDOCO