Skip to content
JDE Reference

F4945

transaction

One row per calculated freight charge on a shipment routing step or load - billable (customer) and payable (carrier) charges by rate name and charge code, as they stand before freight update moves them to history.

Notes

Working table: rows are recalculated as shipments change and cleared by freight update. For final freight spend use F4981; use this one for in-flight charge visibility. Always split on BLPB.

Fields

30 fields · 1 key

KeyFieldAliasDescriptionTypeLengthFlags
SCSHPNSHPNShipment number - the system-assigned key that groups order lines for transport; the same value lands on F4211.SDSHPN.Numeric8
SCRSSNRSSNRouting step number within the shipment.Numeric3
SCVMCUVMCUTrip depot business unit - first half of the load key; join to F4960.TMVMCU.String12
SCLDNMLDNMLoad number - second half of the load key; join to F4960/F4961.Numeric8
SCDLNODLNODelivery number, used when freight is charged at the delivery level.Numeric8
SCOSEQOSEQCharge sequence number within the routing step.Numeric4
SCRTNMRTNMRate name that produced this charge.String10
SCNMFCNMFCNational Motor Freight Classification used for LTL rating.String4
SCDSGPDSGPDispatch group - groups compatible products for transport.String3
SCFRT1FRT1Freight category code 1 used in rating.String6
SCFRT2FRT2Freight category code 2 used in rating.String6
SCCGC1CGC1Charge code classifying the freight charge (line haul, fuel surcharge...).String3
SCAGAGGross charge amount; 2 implied decimals.Numeric15
SCBLPBBLPBCharge direction: billable to the customer or payable to the carrier - always filter or group on this.Character1
SCCRDCCRDCBilling (to) currency code.String3
SCFAAFAAGross charge amount in foreign currency; 2 implied decimals.Numeric15
SCNAMFNAMFNet charge amount in foreign currency; 2 implied decimals.Numeric15
SCRTDQRTDQQuantity the rate was applied against; 4 implied decimals.Numeric15
SCNAMTNAMTNet charge amount after discounts; 2 implied decimals - the number to aggregate for freight spend.Numeric15
SCUOMUOMUnit of measure of the transaction quantity.String2
SCRTGBRTGBRate basis the charge was computed on (weight, volume, pieces...).Character1
SCCRCDCRCDTransaction (from) currency code.String3
SCDOCODOCOOrder number of the related order line - joins F4211.SDDOCO (or F4311 for inbound).Numeric8
SCDCTODCTOOrder type of the related order line.String2
SCKCOOKCOOOrder key company of the related order line.String5
SCLNIDLNIDOrder line number; 3 implied decimals - matches F4211.SDLNID as stored.Numeric6
SCOVFGOVFGManual override flag on the charge.Character1
SCUKIDUKIDInternal unique key ID.Numeric15
Primary keySCUK01UK01Internal unique key - the physical primary key of this table.Numeric15
SCEFTJEFTJEffective date of the rate used.Numeric6

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading F4945on 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  : F4945 One row per calculated freight charge on a shipment routing step or load - billable (customer) and payable (carrier) charges by rate name and charge code, as they stand before freight update moves them to history.
-- Purpose: Column-selected read of F4945 — auto-generated from field metadata
-- Grain  : One row per SCUK01
-- 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.SCUK01 AS "Internal unique key - the physical primary key of this table.",
  f.SCSHPN AS "Shipment number - the system-assigned key that groups order lines for transport; the same value lands on F4211.SDSHPN.",
  f.SCRSSN / POWER(10, 1) AS "Routing step number within the shipment.",  -- implied decimals: 1 (verify in F9210)
  TRIM(f.SCVMCU) AS "Trip depot business unit - first half of the load key; join to F4960.TMVMCU.",
  f.SCLDNM AS "Load number - second half of the load key; join to F4960/F4961.",
  f.SCDLNO AS "Delivery number, used when freight is charged at the delivery level.",
  f.SCOSEQ AS "Charge sequence number within the routing step.",
  f.SCRTNM AS "Rate name that produced this charge.",
  f.SCNMFC AS "National Motor Freight Classification used for LTL rating.",
  f.SCDSGP AS "Dispatch group - groups compatible products for transport.",
  f.SCFRT1 AS "Freight category code 1 used in rating.",
  f.SCFRT2 AS "Freight category code 2 used in rating.",
  f.SCCGC1 AS "Charge code classifying the freight charge (line haul, fuel surcharge...).",
  f.SCAG / POWER(10, 2) AS "Gross charge amount; 2 implied decimals.",  -- implied decimals: 2 (verify in F9210)
  f.SCBLPB AS "Charge direction: billable to the customer or payable to the carrier - always filter or group on this.",
  f.SCCRDC AS "Billing (to) currency code.",
  f.SCFAA / POWER(10, 2) AS "Gross charge amount in foreign currency; 2 implied decimals.",  -- implied decimals: 2 (verify in F9210)
  f.SCNAMF / POWER(10, 2) AS "Net charge amount in foreign currency; 2 implied decimals.",  -- implied decimals: 2 (verify in F9210)
  f.SCRTDQ / POWER(10, 4) AS "Quantity the rate was applied against; 4 implied decimals.",  -- implied decimals: 4 (verify in F9210)
  f.SCNAMT / POWER(10, 2) AS "Net charge amount after discounts; 2 implied decimals - the number to aggregate for freight spend.",  -- implied decimals: 2 (verify in F9210)
  f.SCUOM AS "Unit of measure of the transaction quantity.",
  f.SCRTGB AS "Rate basis the charge was computed on (weight, volume, pieces...).",
  f.SCCRCD AS "Transaction (from) currency code.",
  f.SCDOCO AS "Order number of the related order line - joins F4211.SDDOCO (or F4311 for inbound).",
  f.SCDCTO AS "Order type of the related order line.",
  f.SCKCOO AS "Order key company of the related order line.",
  f.SCLNID / POWER(10, 3) AS "Order line number; 3 implied decimals - matches F4211.SDLNID as stored.",  -- implied decimals: 3 (verify in F9210)
  f.SCOVFG AS "Manual override flag on the charge.",
  f.SCUKID AS "Internal unique key ID.",
  CASE WHEN f.SCEFTJ IS NULL OR f.SCEFTJ = 0 THEN NULL ELSE DATE_ADD(MAKE_DATE(1900 + CAST(f.SCEFTJ AS INT) DIV 1000, 1, 1), CAST(f.SCEFTJ AS INT) % 1000 - 1) END AS "Effective date of the rate used."  -- CYYDDD Julian → DATE
FROM <catalog>.<schema_data>.f4945 f
ORDER BY f.SCUK01;

2 parameters not filled: <catalog>, <schema_data>

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.