F47047
workfileAlso in JDE WorldOne row per line on an outbound EDI invoice (810); billed quantities and prices by sales order line, staged for transmission.
KCO/DOC/DCT is the invoice key into F03B11; billed amount here versus the A/R open amount is the standard staged-versus-ledger billing reconciliation.
What the badges mean
- Superseded
- Superseded — a newer table has replaced it, but older scripts still read this one.
- Also in JDE World
- Also present in JDE World A9.x on the same table name.
- master
- Data class: what the table holds — master data, transaction documents, control/setup values, history, or a workfile.
- Read/write access
- Access mode: how the paired program reads or writes this table — R (read), W (write), or R/W (both).
Fields
34 fields · 4 key
34 fields.
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Primary key | SZEKCO | EKCO | Key company that scopes the EDI document number; part of the staging primary key. | String | 5 | |
| Primary key | SZEDOC | EDOC | EDI document number assigned when the transaction is staged; the primary handle for one staged EDI document. | Numeric | 9 | |
| Primary key | SZEDCT | EDCT | EDI document type qualifier; pairs with document number and key company to complete the staging key. | String | 2 | |
| Primary key | SZEDLN | EDLN | EDI line number within the document; three implied decimals, so line 1.000 is stored as 1000. | Numeric | 7 | |
| SZEDST | EDST | X12 transaction-set number this row stages (850, 855, 856, 810). | String | 6 | ||
| SZEDER | EDER | Direction flag: R for documents received from the trading partner, S for documents JDE is sending. | Character | 1 | ||
| SZEDSP | EDSP | Processed flag: Y once the edit/update program has moved this row to or from the live application tables. Filter N for the open queue; Y rows are the reconciliation audit trail. | Character | 1 | ||
| SZEDBT | EDBT | Batch number grouping documents staged in the same translator run. | String | 15 | ||
| SZPNID | PNID | Trading partner identifier agreed with the customer or supplier; the natural grain for partner-level EDI scorecards. | String | 15 | ||
| SZKCOO | KCOO | Company segment of the JDE order number key. | String | 5 | ||
| SZDOCO | DOCO | JDE sales order number the invoice line bills; the join to F4211. | Numeric | 8 | ||
| SZDCTO | DCTO | JDE order type of the related order (SO, OP, and so on). | String | 2 | ||
| SZLNID | LNID | JDE order line number; three implied decimals (line 1.000 stored as 1000). | Numeric | 6 | ||
| SZMCU | MCU | Branch/plant on the order; right-justified 12-character business unit. | String | 12 | ||
| SZAN8 | AN8 | Primary address book number on the document: customer sold-to on sales documents, supplier on purchasing documents. | Numeric | 8 | ||
| SZSHAN | SHAN | Ship-to address book number. | Numeric | 8 | ||
| SZTRDJ | TRDJ | Order or transaction date (Julian). | Numeric (DD type: Date) | 6 | ||
| SZADDJ | ADDJ | Actual ship date (Julian). | Numeric (DD type: Date) | 6 | ||
| SZIVD | IVD | Invoice date (Julian). | Numeric (DD type: Date) | 6 | ||
| SZVR01 | VR01 | Free-form customer reference; on customer-facing documents this usually carries the customer's PO number. | String | 25 | ||
| SZITM | ITM | Short (internal numeric) item number. | Numeric | 8 | ||
| SZLITM | LITM | Second item number, the human-readable part number analysts usually report on. | String | 25 | ||
| SZCITM | CITM | The trading partner's own item number as sent on the EDI document; key for cross-reference quality checks. | String | 25 | ||
| SZLNTY | LNTY | Line type controlling how the line hits inventory and the ledger (stock, non-stock, freight). | String | 2 | ||
| SZUOM | UOM | Unit of measure the quantity was transacted in. | String | 2 | ||
| SZUORG | UORG | Ordered or transaction quantity for the line. | Numeric | 15 | ||
| SZSOQS | SOQS | Quantity shipped on the line. | Numeric | 15 | ||
| SZUPRC | UPRC | Unit price for the line; four implied decimals. | Numeric | 15 | ||
| SZAEXP | AEXP | Extended price (quantity times unit price) for the line. | Numeric | 15 | ||
| SZKCO | KCO | Document company of the A/R invoice key; joins to F03B11 KCO. | String | 5 | ||
| SZDOC | DOC | A/R invoice number for the line; joins to F03B11 DOC. | Numeric | 8 | ||
| SZDCT | DCT | A/R invoice document type; joins to F03B11 DCT. | String | 2 | ||
| SZCRCD | CRCD | Transaction currency code. | String | 3 | ||
| SZSHPN | SHPN | Shipment number linking the line to the shipment workbench (F4215). | Numeric | 8 |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading F47047 on 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.
4 parameters not filled: <catalog>, <schema_data>, <TRDJ_FROM>, <TRDJ_TO>
-- ============================================================
-- Table : F47047 One row per line on an outbound EDI invoice (810); billed quantities and prices by sales order line, staged for transmission.
-- Purpose: Column-selected read of F47047 — auto-generated from field metadata
-- Grain : One row per SZEKCO + SZEDOC + SZEDCT + SZEDLN
-- 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.SZEKCO AS "Key company that scopes the EDI document number; part of the staging primary key.",
f.SZEDOC AS "EDI document number assigned when the transaction is staged; the primary handle for one staged EDI document.",
f.SZEDCT AS "EDI document type qualifier; pairs with document number and key company to complete the staging key.",
f.SZEDLN / POWER(10, 3) AS "EDI line number within the document; three implied decimals, so line 1.000 is stored as 1000.", -- implied decimals: 3 (verify in F9210)
f.SZEDST AS "X12 transaction-set number this row stages (850, 855, 856, 810).",
f.SZEDER AS "Direction flag: R for documents received from the trading partner, S for documents JDE is sending.",
f.SZEDSP AS "Processed flag: Y once the edit/update program has moved this row to or from the live application tables. Filter N for the open queue; Y rows are the reconciliation audit trail.",
f.SZEDBT AS "Batch number grouping documents staged in the same translator run.",
f.SZPNID AS "Trading partner identifier agreed with the customer or supplier; the natural grain for partner-level EDI scorecards.",
f.SZKCOO AS "Company segment of the JDE order number key.",
f.SZDOCO AS "JDE sales order number the invoice line bills; the join to F4211.",
f.SZDCTO AS "JDE order type of the related order (SO, OP, and so on).",
f.SZLNID / POWER(10, 3) AS "JDE order line number; three implied decimals (line 1.000 stored as 1000).", -- implied decimals: 3 (verify in F9210)
TRIM(f.SZMCU) AS "Branch/plant on the order; right-justified 12-character business unit.",
f.SZAN8 AS "Primary address book number on the document: customer sold-to on sales documents, supplier on purchasing documents.",
f.SZSHAN AS "Ship-to address book number.",
CASE WHEN f.SZTRDJ IS NULL OR f.SZTRDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SZTRDJ AS INT) DIV 1000, 1, 1), CAST(f.SZTRDJ AS INT) % 1000 - 1) END AS "Order or transaction date (Julian).", -- CYYDDD Julian → DATE
CASE WHEN f.SZADDJ IS NULL OR f.SZADDJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SZADDJ AS INT) DIV 1000, 1, 1), CAST(f.SZADDJ AS INT) % 1000 - 1) END AS "Actual ship date (Julian).", -- CYYDDD Julian → DATE
CASE WHEN f.SZIVD IS NULL OR f.SZIVD = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SZIVD AS INT) DIV 1000, 1, 1), CAST(f.SZIVD AS INT) % 1000 - 1) END AS "Invoice date (Julian).", -- CYYDDD Julian → DATE
f.SZVR01 AS "Free-form customer reference; on customer-facing documents this usually carries the customer's PO number.",
f.SZITM AS "Short (internal numeric) item number.",
f.SZLITM AS "Second item number, the human-readable part number analysts usually report on.",
f.SZCITM AS "The trading partner's own item number as sent on the EDI document; key for cross-reference quality checks.",
f.SZLNTY AS "Line type controlling how the line hits inventory and the ledger (stock, non-stock, freight).",
f.SZUOM AS "Unit of measure the quantity was transacted in.",
f.SZUORG AS "Ordered or transaction quantity for the line.",
f.SZSOQS AS "Quantity shipped on the line.",
f.SZUPRC / POWER(10, 4) AS "Unit price for the line; four implied decimals.", -- implied decimals: 4 (verify in F9210)
f.SZAEXP / POWER(10, 2) AS "Extended price (quantity times unit price) for the line.", -- implied decimals: 2 (verify in F9210)
f.SZKCO AS "Document company of the A/R invoice key; joins to F03B11 KCO.",
f.SZDOC AS "A/R invoice number for the line; joins to F03B11 DOC.",
f.SZDCT AS "A/R invoice document type; joins to F03B11 DCT.",
f.SZCRCD AS "Transaction currency code.",
f.SZSHPN AS "Shipment number linking the line to the shipment workbench (F4215)."
FROM <catalog>.<schema_data>.f47047 f
WHERE
f.SZTRDJ >= <TRDJ_FROM> -- Julian CYYDDD, e.g. 126001
-- AND f.SZTRDJ <= <TRDJ_TO> -- Julian CYYDDD, e.g. 126365
ORDER BY f.SZEKCO;Verified September 2026
Relationships
Diagram of 1-hop neighbors — join details below. UDC decode edges point coded fields at their F0005 lookup.
Programs That Use This Table
R read · W write · R/W read + write
Primary programs
- R47042CEDI Invoice Extraction Conversion — the batch job that converts outbound EDI invoice records (X12 810 staged by Invoice Print) from the EDI invoice tables into the flat file handed to the EDI translatorRead accessBatch UBE
- R47049EDI Invoice Outbound Purge — the batch job that removes outbound EDI invoice transactions from the EDI invoice tables once they have been marked as sent by EDI Invoice Update as Sent (R47047)Write accessBatch UBE
Secondary programs
- P03505A/R Simple Invoice Print - EDI — the JDE World DREAM Writer whose EDI version copies invoice information straight from the receivables ledger into the outbound EDI invoice files, bypassing the sales order path entirelyWrite accessBatch UBE
- R47047EDI Invoice Update as Sent — the batch job that flags extracted outbound EDI invoice (810) records as sent once the translator has picked them up, setting the processed flag so they are not re-extractedRead/write accessBatch UBE
More Electronic Data Interchange tables
- F47011One row per inbound EDI customer purchase order (X12 850) waiting to become a JDE sales order header; staging mirror of F4201.
- F47012One row per line on an inbound EDI customer purchase order (850); staging mirror of the sales order detail F4211.
- F47021One row per inbound EDI purchase order acknowledgment (X12 855) from a supplier, staged against a JDE purchase order header.
- F47022One row per acknowledged purchase order line on an inbound 855; staging mirror of the PO detail F4311.
- F47036One row per outbound advance ship notice (X12 856) at the shipment level, written by the R47032 extraction at the top hierarchy break.
- F47037One row per hierarchy line of an outbound 856 (order, pack, or item level) under a shipment header; sales-order lines plus SSCC/UPC pack identifiers.