Document Links
ERP-1041 - Getting issue details... STATUS
Introduction
This Data Flow Specification (DFS) defines the end-to-end data flow required to meet the following requirements:
- Total stock balances (value and quantity) by Posting Date for every Material/Plant/Storage Location/Stock Type.
- Freight KPI scores (Freight Unit Compliance, FSD Timing, Freight Agreement Usage, Overall Compliance) tracked weekly and by business entity.
- Freight Cost analysis – breakdown of transportation charges by type, carrier, company code, purchasing organisation, plant, document and posting status.
- Carrier Performance – confirmed pick-up vs. actual, confirmed ETA vs. actual arrival, Proof-of-Delivery rate, and event-reporting rate.
- Freight Cost Allocation – breakdown of settled freight costs by company code, sales/purchase organisation, plant, order, material and G/L account.
KPI | Analytical Model |
|---|---|
Stock Balances | 4MA_P2FINV_MaterialStock |
Freight KPI Report (ERP-1795) | 4MA_P2FTMS_TransportationOrder |
Freight Cost Report (ERP-1792) | 4MA_P2FTMS_TransportationOrder |
Carrier Performance (ERP-1782) | 4MA_P2FTMS_TransportationOrder |
Freight Cost Allocation (ERP-2359) | 4MA_P2FTMS_FrtCstAlloc |
Document Relationships (ERP-1793) | 4MA_P2FTMS_DocRelationship |
Outbound Delivery Analytics | 4MA_P2FTMS_Outbound |
Transportation Analytics | 4MA_P2FTMS_TrpAnlytcs |
Stock Balances
The objective of the Stock Balances Analytical Model is to provide a comprehensive view of Material/Plant/Storage Location/Stock Type values and quantities at a given date, which reconciles to MB52.
Quantities and values are obtained from a combination of Goods Movement (MM) documents and Fi adjustment postings.
Snapshots of monthly and weekly inventories will be created and partitioned (how so it makes sense?)
A persisted/portioned flow, containing aggregated data will also be created. This aggregated view will carry the stock balances for a month by Material/Plant/Storage Location/Stock Type. The current month stock movements will be union-ed to it to get to the current month ending balance.
EWM Managed Plants:
No differentiation in the handling of EWM managed plants is required. EWM handles the process, but each movement is reflected as a GoodsMovementDocument in table MSEG. This allows for a single process to calculate Closing Inventory.
The standard CDS views for physical stock and plant stock for EWM managed plants will be extracted and made available for reporting (if required for cross-instance reporting).
Bonded Stock Reports:
| Req No | Requirement | Description | Source Tables | Analytical Model | Notes |
|---|---|---|---|---|---|
| 0 | Current Bonded Stock Position | Current stock quantity and value by Plant/SLOC/Material/Batch/StockType, filtered to bonded SLOCs and/or Plants | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | Already built - filter to bonded SLOC/Plant in SAC story. No new AM required. NonCumulative KF CurrentStock already defined. Reconciles to MB52. |
| 1 | Inward Movements | Procurement receipts (GR against PO), production FG receipts, intercompany inbound -> bonded plants/SLOCs only | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | Filter MvT: 101/501/531/561/101 interco. Plant/SLOC filter for bonded scope. PO reference available via PurchaseOrder field on GoodsMovementDocumentDEX. |
| 2 | Outward Movements - Export/Domestic Sales | GI against outbound delivery (MvT 601/641 etc.). Identifies export vs domestic via customer country or sales org. | 2VR_S4HARM_GoodsMovementDocumentDEX JOIN 2VR_S4HARM_I_OutboundDelivery JOIN 2VR_S4HARM_I_Customer | 4MA_P2FINV_MaterialStock (reuse) + new 3VR for delivery enrichment | Delivery join pattern already defined in 3VR_P2FINV_BatchDel -> reuse join logic. Customer country drives Export vs Domestic split (Recheck this) Possible ITAR - flag for DAE review before cross-region exposure. |
| 3 | Bonded <-> Non-Bonded Transfers | STOs and material documents transferring stock between bonded and non-bonded SLOCs/Plants. Must show STO reference, sending/receiving plant+SLOC. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 301/303/311/315/641 (STO). Both legs (issue+receive) present in MSEG. ReceivingPlant/StorageLocation/IssuingStorageLocation available on GoodsMovementDocumentDEX. No new source required. |
| 4 | Manufacturing Consumption | GI of bonded RM to Production Order (MvT 261). Shows Production Order number, component material, quantity consumed. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | ProductionOrder field available on GoodsMovementDocumentDEX. No BOM traversal required (confirmed in tech review). Filter MvT 261 + bonded SLOC/Plant. |
| 5 | Production FG Receipt - Bonded | GR of finished goods to bonded SLOC from Production Order (MvT 101 against order). Batch-level. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 101 with OrderID populated. Batch available. Distinguish from PO receipt (Req 1) by OrderID vs PurchaseOrder population. |
| 6 | Vendor Returns | Return deliveries to vendor (MvT 122) from bonded stock. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 122. PurchaseOrder/PurchaseOrderItem reference available. Bonded SLOC/Plant filter. |
| 7 | Duty-Triggering Movements | Movements associated with customs clearance requests' specific MvTs TBD with Saravanan/GTS team. Count of materials requested for clearance. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT list to be confirmed (GTS/CMS specific). May require Z-table for clearance reference if not on MSEG. If GTS integration exists, assess /SAPSLL/ table availability in DSP |
| 8 | Batch-Level Traceability | Batch identification on all movements above. No recursive chain traversal-> flat filter on MATNR/WERKS/CHARG. | 2VR_S4HARM_GoodsMovementDocumentDEX JOIN 2VD_S4HARM_I_Batch | 4MA_P2FINV_MaterialStock (reuse) | 2VD_S4HARM_I_Batch to be created (already planned for ERP-410) -> reuse. No TF required in contrast with ERP-410 recursive BOM requirements. Batch filter is user selection, not chain expansion. Join with 2VR_BatchWUL to add batch numbers. |
| 9 | Scrap | Scrapping of bonded stock where applicable (MvT 551). | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 551. Scope TBC 'where applicable' per functional requirements. Bonded SLOC/Plant filter. |
Global Batch Track & Trace
The following table is a mapping of ERP-410's requirements, the Analytical Model used and then a mapping to the legacy code Internal Table(s) used
| Req No | Requirement | Description | Internal Table | Source Tables | Analytical Model | Notes |
|---|---|---|---|---|---|---|
| 0 | Batch Chain - Primary Report | The main report results screen showing the full resolved batch genealogy chain for the selected material/plant/batch and direction | GT_WORKLIST | CHVW / MCH1 / MARA / MAKT / T001W | 4MA_P2FINV_BatchTrace | Entry point for all branching. Driven by TF_WPP_BatchTrace recursive traversal of CHVW. All 8 branch requirements filter against this result set |
| 1 | Material Movements | Reports all material movements for all materials/batches on the report results | GT_MSEG | MSEG / MKPF | 4MA_P2FINC_MaterialStock | Filtered by MATNR/WERKS/CHARG from batch chain. Movement types 101/102/531/532. MENGE calculated via SHKZG +/- |
| 2 | Stocks | Reports all current stock of all materials/batches on the report results | GT_MCHB | Derived from MSEG via GoodsMovementDocumentDEX aggregation | 4MA_P2FINC_MaterialStock | No separate MCHB extraction required - derived from GT_MSEG aggregated by MATNR/WERKS/CHARG per P2F DDFS pattern |
| 3 | NCN | Reports all NCN quality notifications for all the materials/batches on the report results | GT_NCN | New Z-table - pending CL_IT_NCN analysis | 4MA_P2FINV_QualityCompliance | Blocked pending CL_IT_NCN analysis. Join on MATNR/WERKS/CHARG from batch chain assumed. |
| 4 | Specs | Shows all entries in the multi spec table for all materials/batches on the report results | GT_SPECS | Unknown - pending parent class ZWPP_MDE_HCE analysis | 4MA_P2FINV_QualityCompliance | Blocked pending ZWPP_MDE_HCE. Shares AM with NCN and FG_CHARS assumed. |
| 5 | Finished Goods Characteristics | Reports characteristic values for all materials/batches on the report results | GT_CHAR | AUSP / CABN / CAWN via 3VR_CharcValue (already exists in DSP) | 4MA_P2FINV_QualityCompliance | 3VR_CharcValue already built - join to batch chain on ObjectInternalID = MATNR. Filter to relevant class type |
| J | ||||||
| 7 | Deliveries | Reports all outbound deliveries for all selected materials/batches including the first specification on the sales order | GT_DEL | LIKP / LIPS / KNA1 (via ZWPP_GET_MDE_DEL RFC) | 4MA_P2FINV_Deliveries | Two-hop join: MSEG VBELN_IM to delivery then validated against batch chain. Includes first spec from VGBEL/VGPOS - spec logic in parent class ZWPP_MDE_HCE |
| 8 | Delivery Specs | Reports all outbound deliveries for all selected materials/batches and all specifications on the sales order | GT_DEL_SPEC | LIKP / LIPS / KNA1 plus all spec entries via create_spec_table | 4MA_P2FINV_DeliverySpecs | Derived from GT_DEL via create_spec_table - returns full spec table per delivery item not just first entry. Spec logic blocked pending ZWPP_MDE_HCE availability |
Tolling Dashboad
| Req No | Requirement | Description | Source Tables | Analytical Model | Notes |
|---|---|---|---|---|---|
| 0 | Current Tolling Stock Position | Current stock quantity and value by Toller/Plant/SLOC/Material/Batch/StockType. Special stock type O (stock at vendor/toller) identified via InventoryStockType on GoodsMovementDocumentDEX. | 2VR_S4HARM_GoodsMovementDocumentDEX JOIN 2VR_S4HARM_I_BatchWhereUsedLevel (CHVW) | 4MA_P2FINV_MaterialStock (reuse) | Already built. InventoryStockType = O filters to subcontracting/tolling stock. NonCumulative KF CurrentStock and CurrentStockValue available. Batch dimension via CHVW join (per ERP-601 pattern). Excludes intercompany tolling (?). |
| 1 | Toller (Business Partner) Dimension | Resolve toller identity per stock position and movement. Toller = Supplier on subcontracting PO item (item category L). | 2VR_S4HARM_C_PurchaseOrderItem or 2VR_S4HARM_C_PurOrdScheduleLine JOIN 2VR_S4HARM_GoodsMovementDocumentDEX ON PurchaseOrder/PurchaseOrderItem | 4MA_P2FINV_MaterialStock (reuse) | Both 2VR_S4HARM_C_PurchaseOrderItem and 2VR_S4HARM_C_PurOrdScheduleLine already in harmonisation layer, No new extractor required. Filter PurchasingDocumentItemCategory = 'L' or '3'. Supplier field resolves toller identity. |
| 2 | Subcontracting Purchase Orders | Subcontracting PO header and item data — PO number, item, material, supplier (toller), plant, quantity, delivery dates. | 2VR_S4HARM_C_PurchaseOrderItem or 2VR_S4HARM_C_PurOrdScheduleLine | 4MA_P2FINV_MaterialStock (reuse) | Filter PurchasingDocumentItemCategory = 'L' or '3' Schedule line view preferred if delivery date granularity required. PO reference links to GR movements (MvT 101) and outbound deliveries. |
| 3 | Outbound Deliveries to Tollers | Outbound deliveries of components to tollers' delivery number, item, material, batch, plant, SLOC, quantity, goods issue date. | 2VR_S4HARM_I_OutboundDelivery | 4MA_P2FINV_MaterialStock (reuse) | 2VR_S4HARM_I_OutboundDelivery already exists (used in 3VR_P2FINV_BatchDel). Join to subcontracting PO via ReferenceSDDocument or PurchaseOrder on delivery item. Reuse join pattern from 3VR_P2FINV_BatchDel. |
| 4 | Goods Receipts from Tollers | GR of finished/semi-finished goods from toller (MvT 101 against subcontracting PO). Material, batch, quantity, plant, SLOC, posting date, PO reference. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 101 with PurchaseOrder populated and PurchasingDocumentItemCategory = L. Links back to subcontracting PO (Req 2). Batch available on movement line. |
| 5 | Component Issue to Toller | GI of components to toller (MvT 541 - transfer to subcontracting stock). Material, batch, quantity, plant, SLOC, posting date, PO reference. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 541. InventoryStockType changes to O on issue. Links to subcontracting PO. Component batch traceability available via Batch field on movement. |
| 6 | Component Return from Toller | Return of unused components from toller (MvT 542). Material, batch, quantity, plant, posting date. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | MvT 542. Reversal of MvT 541. Batch and PO reference available. |
| 7 | Batch Master Data and Shelf Life | Batch attributes for toller-produced batches -> ExternalBatch, VendorBatch, SLED/BBD, batch status, material. | 2VD_S4HARM_I_Batch (planned for ERP-410) | 4MA_P2FINV_MaterialStock (reuse) | 2VD_S4HARM_I_Batch to be created under ERP-410 delivery dependency. Shelf life (SLED) available on I_Batch standard CDS view. Reuse once available. |
| 8 | Batch Movement History | Full movement history per batch produced by toller -> all MvTs, quantities, dates, document references. Navigation from batch to documents. | 2VR_S4HARM_GoodsMovementDocumentDEX JOIN 2VR_S4HARM_I_BatchWhereUsedLevel | 4MA_P2FINV_MaterialStock (reuse) | CHVW join provides batch linkage across movements. No recursive traversal required flat filter on Material/Plant/Batch. Consistent with ERP-601 batch pattern. |
| 9 | Inventory Aging Indicators | Aging exposure for stock held at tollers -> time since component issue (MvT 541) without corresponding GR (MvT 101). Calculated measure in SAC. | 2VR_S4HARM_GoodsMovementDocumentDEX | 4MA_P2FINV_MaterialStock (reuse) | Aging exposure for stock held at tollers -> time since component issue (MvT 541) without corresponding GR (MvT 101). Calculated measure in SAC. |
Physical Inventory
Physical inventory adjustments are processed in SAP as material documents with movement types 701/702 (inventory difference posting). These postings are captured in MSEG and will flow through the standard I_GoodsMovementDocument CDS view. No separate extraction path is required; physical inventory adjustments are included in the GoodsMovementDocumentDEX flow and will be unioned with the period opening balance to produce the closing balance.
Dataflow Diagram
Source System Extractors
`
| Ref: | Abbrv,. | Source | Extractor Name | Description | Build Jira Ref For Extension Information |
|---|---|---|---|---|---|
XE-01 | XE_TransRoot | /SCMTMS/D_TORROT | /SYQ/I_TRANSROOT | Freight Order / Freight Unit / Freight Booking root records. TOR_TYPE distinguishes FU, FO (TO), and BK. FAG_KEY links to Freight Agreement. DB_KEY is the join anchor for all child tables. | |
XE-02 | XE_TransRootItm | /SCMTMS/D_TORITE | /SYQ/I_TRANSPROOTITEM | Freight Order item records. PARENT_KEY = DB_KEY of root (D_TORROT). BASE_BTD_ID / BASE_BTD_TCO carry the source document back-reference (Sales Order / PO / Delivery). TORITMUID links to execution events. | |
XE-03 | XE_TransChRoot | /SCMTMS/D_TCHRGR | /SYQ/I_TRANSPCHARGESROOT (XE_TransChRoot) | Freight charge root records. HOST_KEY = DB_KEY of the freight order. CALC_STATUS drives filter in harmonisation view. One row per charge root per freight order. | |
XE-04 | XE_TransChitem | /SCMTMS/D_TCHRGI | /SYQ/I__TRANSPCHARGESITEM (XE_TransChitem) | Freight charge item records. DB_KEY = PARENT_KEY of the charge root (D_TCHRGR). Carries carrier and party UUID fields. FAGRMNTID044 links to Freight Agreement. | |
XE-05 | XE_TransChItemE | /SCMTMS/D_TCHRGE | /SYQ/I__TRANSPCHARGESITEMELEMENT (XE_TransChItemE) | Freight charge element records. ROOT_KEY = charge root key; PARENT_KEY = charge item key. INVOICING and ANALYTICRELEV flags used for cost reporting filters. AMOUNT / CALC_AMOUNT / INVOICED_AMT are the key financial fields. | |
XE-06 | XE_TransExec | /SCMTMS/D_TOREXE | /SYQ/I__TRANSPEXECDATA (XE_TransExec) | Transportation order execution events. Linked via TORITMUID to freight order item. Provides EVENT_CODE, ACTUAL_DATE, DISCREPANCY, PROCESSING_STATUS for carrier performance KPIs (ERP-1782). Event code mappings are client-specific — must be configured as input parameters or reference table in DSP. | |
XE-07 | XE_TransRootN | /SCMTMS/D_SF_ROT | /SYQ/I__TRANSPROOTNODE (XE_TransRootN) | Freight Settlement Document (FSD) header records. SFIR_ID is the settlement document number. REF_KEY links back to the freight order DB_KEY. CARRIER_INVOICE_KEY links to D_INDSRT. Used for FSD Timing Compliance (ERP-1795) and Freight Cost Allocation (ERP-2359). | |
XE-08 | XE_BatchWUL | CHVW | /SYQ/I__BATCHWHEREUSEDLIUST (XE_BatchWUL) | Single-level CHVW extraction. One row per parent-child batch pair. No recursion here — handled in 3VR_P2FINV_TF_BatchTrace. | |
XE-09 | XE_NCN | TBD | /SYQ/I__NCN (XE_NCN) | NCN Z-table extraction. BLOCKED — source table and fields TBD. Pending CL_IT_NCN analysis. | |
XE-10 | XE_Specs | TBD | Placeholder (XE_Specs) | BLOCKED — Pending analysis for class ZWPP_MDE_HCE. | |
XE-11 | XE_FreighAgrmnt | /SCMTMS/D_FAGROT | /SYQ/I__FreightAgreement (XE_FreighAgrmnt) | ||
XE-12 | XE_EWM_PhysInv | I_EWM_PhysicalInventoryDocItem - Wrapper | /SYQ/I__EWM_PhysicalInventoryDocItem | ||
XE-13 | XE_MatClass | AUSP - Characteristic values assigned to objects CLF_HDR - Classification header (validity, deletion flag) CABNT - Characteristic descriptions (language-dependent) KSSK - Object-to-class assignment (resolved via I_ClfnObjectClassBasic) KLAH - Class header — class name, type, status | |||
XE-14 | XE_MatClassBase | AUSP: Characteristic values assigned to objects CLF_HDR - Classification header (validity, deletion flag) CABNT - Characteristic descriptions (language-dependent) | /SYQ/I__MATCLASSICIATION/SYQ/I__MATCLASSICIATIONBASE | ||
XE-15 | XE_InvoiceDisp | /SCMTMS/D_INDSRT | /SYQ/I_INVOICEDISP | Carrier invoice and dispute records. HOST_KEY is the primary key. CARRIER_INVOICE_KEY joins to D_SF_ROT (2VR_TransRootN). Provides INVOICE_ID, INVOICE_DATE, CARRIER_ID, STATUS. Required for ERP-1793 Document Relationships report. | |
XE-16 | XE_CustSettlmt | WBRP / WBRK (via C_CustSettlmtDEX) | C_CUSTSETTLMTDEX | Customer / Freight Settlement document items. Joined to G/L via CompanyCode + FiscalYear + ReferenceDocument. Provides settlement item-level cost allocation data (CustSettlmt, CustSettlmtItem, Plant, Material, PurchasingOrganization). Required for ERP-2359 Freight Cost Allocation. | |
XE-17 | XE_Outbound | LIKP | I_OUTBOUNDDELIVERY (standard CDS) | Outbound delivery header records. Provides ActualGoodsMovementDate (PGI date), TransportationPlanningStatus, OverallSDProcessStatus, ShipToParty, SoldToParty. Required for Freight Unit Compliance Score (ERP-1795) and Event Reporting Rate (ERP-1782). | |
XE-18 | XE_OutboundItem | LIPS | C_OUTBOUNDDELIVERYDEX (standard CDS) | Outbound delivery item records. Carries TransportationOrderItemUUID enabling the join from delivery item to TORROT for Freight Unit Compliance. Also provides Material, Plant, Batch, ReferenceSDDocument for batch-level reporting. | |
XE-19 | XE_SuplrCsg | TBD | TBD | BLOCKED — Supplier consignment extractor. Source table and CDS view TBD. Ccovers consignment stock movements (special stock type K) not covered by standard GoodsMovementDocumentDEX path. Pending functional scoping. | |
XE-20 | XE_TrStg | TBD | /SCMTMS/D_TORSTG (assumed) | Transport Order Stage records. Source table to be confirmed | |
XE-21 | XE_FrtDsputCase | C_FrtDsputCaseAnlytsDEX | C_FrtDsputCaseAnlytsDEX (standard CDS) | Freight Dispute Case analytics. Referenced in 4MA_P2FTMS_DocRelationship as the full dispute document track (XE_FrtDsputCase -> 1TL -> 2TL -> 2VR -> 3VR -> 4MA_P2FTMS_FrtDsputCase). Links to carrier invoice/dispute chain for ERP-1793 Document Relationships report. | |
XE-22 | XE_VPCD | I_MaterialBOMLink (MAST) / I_BillOfMaterialItem (STPO+STAS) / I_DocumentInfoRecord (DRAT) | /SYQ/WPP_PCDDOCUMENTS | PCD Document Links by Material/Plant. Custom CDS view /SYQ/WPP_PCDDocuments joining I_MaterialBOMLink, I_BillOfMaterialItem and I_DocumentInfoRecord. DOKAR = KPR AND DKTXT LIKE PCD%. Cross-instance report — potential ITAR restricted data. Presented in SAC only. ERP-410. |
VDM
/SYQ/WPP_PCDDocuments - WPP - PCD Document Links by Material/Plant
GAP: Report is cross instance, which means ROW and China data must be combined/. Cross plant BOMs?
| Jira | Requirement | Description |
|---|---|---|
| ERP-410 | PCD - Reports PCD document numbers for all materials/batches on the report results. | Custom CDS view for PCD documents. Join of legacy tables MAST/STPO/DRAT. New cds view will join I_MaterialBOMLink (MAST),I_BillOfMaterialItem (STPO & STAS), I_DocumentInfoRecord (DRAT) This requirement cannot be delivered by DSP as it is potential ITAR restricted data., will be presented in SAC. |
Sample Code: @AbapCatalog.sqlViewName: 'ZWPP_VPCD' |
|---|
Inbound Layer
Join conditions for TSM tables:
| Source | SAP Table | Extractor | Key Relationship |
|---|---|---|---|
| Freight Order | /SCMTMS/D_TORROT | XE_TransRoot = /SYQ/I_TRASPROOT | DB_KEY = TOR_ID |
| Freight Order Item | /SCMTMS/D_TORITE | XE_TrItemDex = /SYQ/I_TRASPROOTITEM | PARENT_KEY = DB_KEY (freight order root); BASE_BTD_ID / BASE_BTD_TCO = source doc reference (SO/PO/Delivery) |
| Charges Root | /SCMTMS/D_TCHRGR | XE_TransChRoot = /SYQ/I_TRANSPCHARGESROOT | HOST_KEY = DB_KEY (freight order) |
| Charges Item | /SCMTMS/D_TCHRGI | XE_TransChitem = /SYQ/I_TRANSPCHARGESITEM | DB_KEY = PARENT_KEY (charges root) |
| Charges Element | /SCMTMS/D_TCHRGE | XE_TransChItemE = /SYQ/I_TRANSPCHARGESITEMELEMENT | DB_KEY = ROOT_KEY (charges root) or PARENT_KEY (charges item) |
| Execution Events | /SCMTMS/D_TOREXE | XE_TransExec = /SYQ/I_TRANSPEXECDATA | Linked via TORITMUID to freight order item |
| Freight Settl. Doc | /SCMTMS/D_SF_ROT | XE_TransRootN = /SYQ/I_TRANSPROOTNODE | SFIR_ID; linked to freight order via REF_KEY |
| Freight Agreement | /SCMTMS/D_FAGROT | XE_FreightAgreement = /SYQ/I_FREIGHTAGREEMENT | FAG_KEY on D_TORROT / D_TORITE links to DB_KEY on D_FAGROT |
| Carrier Invoice / Dispute | /SCMTMS/D_INDSRT | XE_InvoiceDisp = /SYQ/I_INVOICEDISP | CARRIER_INVOICE_KEY on D_SF_ROT links to HOST_KEY on D_INDSRT |
| Customer Settlement | C_CustSettlmtDEX | XE_CustSettlmt = C_CUSTSETTLMTDEX | WBRP/WBRK; joined to GL via CompanyCode + FiscalYear + ReferenceDocument |
1TL_S4Hx_I_BATCHWHEREUSEDLIST
Purpose | Initial + delta load of single-level CHVW batch where-used records via /SYQ/I_BATCHWHEREUSEDLEVEL. |
Filled by | 1FR_S4Hx_I_BATCHWHEREUSEDLEVEL |
1FR_S4Hx_I_BATCHWHEREUSEDLIST
Source | /SYQ/BatchWhereUsedLevel (XE_BatchWUL) |
Purpose | Replication flow loading /SYQ/I_BATCHWHEREUSEDLEVEL into 1TL_S4Hx_I_BATCHWHEREUSEDLEVEL. No transformations. |
1TL_S4Hx_Specs
BLOCKED — source CDS view, tables and fields TBD. Pending ZWPP_MDE_HCE analysis.
1TL_S4Hx_I_FREIGHTAGREEMENT
Initial + delta load of Freight Agreement records from /SYQ/I_FREIGHTAGREEMENT (XE_FreightAgreement). Filled by 1FR_S4Hx_I_FREIGHTAGREEMENT.
TF 1FR_S4Hx_I_FREIGHTAGREEMENT
Source: /SYQ/FreightAgreement (XE_FreightAgreement)
Replication flow loading /SYQ/I_FREIGHTAGREEMENT into 1TL_S4Hx_I_FREIGHTAGREEMENT. No transformations.
1TL_S4Hx_I_INVOICEDISP
Initial + delta load of Carrier Invoice and Dispute records from /SYQ/I_INVOICEDISP (XE_InvoiceDisp). Filled by 1FR_S4Hx_I_InvoiceDisp.
1FR_S4Hx_I_NVOICEDISP
Source: /SYQ/InvoiceDisp (XE_InvoiceDisp)
Replication flow loading /SYQ/InvoiceDisp into 1TL_S4Hx_I_INVOICEDISP. No transformations.
1TL_S4Hx_I_OUTBOUND
Initial + delta load of Outbound Delivery header records from I_OUTBOUNDDELIVERY (XE_Outbound). Filled by 1FR_S4Hx_I_Outbound.
1FR_S4Hx_I_OUTBOUND
Source: I_OUTBOUNDDELIVERY (XE_Outbound)
Replication flow. No transformations.
1TL_S4Hx_I_OUTBOUNDITEM
Initial + delta load of Outbound Delivery item records from C_OUTBOUNDDELIVERYDEX (XE_OutboundItem). Filled by 1FR_S4Hx_I_OutboundItem.
1FR_S4Hx_I_OUTBOUNDITEM
Source: C_OUTBOUNDDELIVERYDEX (XE_OutboundItem)
Replication flow. No transformations.
Harmonisation Layer
2TL_S4HARM_GoodsMovementDocumentDEX
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_GOODSMOVEMENTDOCUMENTDEX
Purpose: Delta load of Material Documents. Set keys. Filled by 2FT_S4HARM_I_GoodsMovementDocumentDEX.
Projection:
Add as Key: MaterialDocumentYear
Add as Key: MaterialDocument
Add as Key: MaterialDocumentItem
Keep keys MaterialDocumentKey1-6 for Delta Capture.
2FT_S4HARM_I_GoodsMovementDocumentDEX
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_GOODSMOVEMENTDOCUMENTDEX
Purpose: Transformation flow for GoodsMovementDocumentDEX.
Projection:
Add as Key: MaterialDocumentYear
Add as Key: MaterialDocument
Add as Key: MaterialDocumentItem
2VR_S4HARM_GoodsMovementDocumentDEX
Type: VR (View)
Source: 2TL_S4HARM_GoodsMovementDocumentDEX
Purpose: View on harmonised goods movement data.
Projection:
Exclude: MaterialDocumentKey1
Exclude: MaterialDocumentKey2
Exclude: MaterialDocumentKey3
Exclude: MaterialDocumentKey4
Exclude: MaterialDocumentKey5
Exclude: MaterialDocumentKey6
Note: MaterialDocumentKey1-6 is a compound delta-capture key — discarded once DocNo, DocYr and DocItem are established as the key in the TL step.
2TL_S4HARM_C_TranspOrdItemAnlytsSDEX
Type: TL (Table/Load)
Source: 1TL_S4Hx_C_TRANSPORDITEMANALYSTDEX
Purpose: Delta load of Transportation Order Items. Filled by 2FT_S4HARM_C_TranspOrdItemAnlytsSDEX.
2FT_S4HARM_C_TranspOrdItemAnlytsSDEX
Type: TF (Transformation Flow)
Source: 1TL_S4HR_C_TRANSPORDITEMANALYSTDEX
Purpose: No transformations.
Notes: Filter documentation missing in source DDFS — to be confirmed.
2VR_S4HARM_C_TranspOrdItemAnlytsSDEX
Source: 2TL_S4HARM_C_TranspOrdItemAnlytsSDEX
View on harmonised transportation order item data.
Filter: TransportationOrder <> '' OR TransportationOrder IS NOT NULL.
Formula / Aggregation:
Field | Expression |
TransportationOrderItemUUID | BINTOHEX(TransportationOrderItemUUID) |
TransportationOrderUUID | BINTOHEX(TransportationOrderUUID) |
TranspOrdItemParentItemUUID | BINTOHEX(TranspOrdItemParentItemUUID) |
SourceStopUUID | BINTOHEX(SourceStopUUID) |
DestinationStopUUID | BINTOHEX(DestinationStopUUID) |
CarrierUUID | BINTOHEX(CarrierUUID) |
ShipperUUID | BINTOHEX(ShipperUUID) |
ConsigneeUUID | BINTOHEX(ConsigneeUUID) |
TranspOrdItemShipperUUID | BINTOHEX(TranspOrdItemShipperUUID) |
ProductUUID | BINTOHEX(ProductUUID) |
TranspOrdNetDuration | to_double(TranspOrdNetDuration) |
NetDurationInHours | to_decimal((to_integer(TranspOrdNetDuration/10000))+(to_integer((MOD(TranspOrdNetDuration,10000))/100)/60),5,2) |
2TL_S4HARM_I_TranspOrdStageAnalytics
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TRANSPORDSTAGEANALYTICS
Purpose: Delta load of Transportation Order Stage records. Filled by 2FT_S4HARM_I_TranspOrdStageAnalytics.
2FT_S4HARM_I_TranspOrdStageAnalytics
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TRANSPORDSTAGEANALYTICS
Purpose: No transformations.
2VR_S4HARM_I_TranspOrdStageAnalytics
Source: 2TL_S4HARM_I_TranspOrdStageAnalytics
View on stage analytics with distance and duration aggregation.
Filter: TranspOrdStageDestStopCategory = 'L'.
Projection: Exclude all except: TransportationOrderUUID, TranspOrdStageDistance, TranspOrdStageDistanceUnit, TranspOrdStageNetDuration.
Formula / Aggregation:
Field | Expression |
TransportationOrderStageUUID | BINTOHEX(TransportationOrderStageUUID) |
TransportationOrderUUID | BINTOHEX(TransportationOrderUUID) |
TranspOrdStageSrceStopUUID | BINTOHEX(TranspOrdStageSrceStopUUID) |
TranspOrdStageDestStopUUID | BINTOHEX(TranspOrdStageDestStopUUID) |
CarrierUUID | BINTOHEX(CarrierUUID) |
NumberOfStages | 1 (constant per stage row — aggregated SUM) |
TranspOrdStageDistance | SUM aggregation |
TranspOrdStageNetDuration | SUM aggregation |
2TL_S4HARM_I_TranspChargesRoot (2TL_TransChRoot)
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TranspChargesRoot (1TL_TransChRoot)
Purpose: Delta load of Freight Order Charge Root records (/SCMTMS/D_TCHRGR). Filled by 2FT_S4HARM_I_TranspChargesRoot.
2FT_S4HARM_I_TranspChargesRoot
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TranspChargesRoot (1TL_TransChRoot)
Purpose: No transformations.
2VR_S4HARM_I_TranspChargesRoot (2VR_TransChRoot)
Source: 2TL_S4HARM_I_TranspChargesRoot
View on Freight Order Charge Root records.
Filter: CALC_STATUS <> ''.
Formula / Aggregation:
Field | Expression |
HOST_KEY | BINTOHEX(HOST_KEY) |
HOST_BO_KEY | BINTOHEX(HOST_BO_KEY) |
HOST_NODE_KEY | BINTOHEX(HOST_NODE_KEY) |
2TL_S4HARM_I_TranspChargesItem (2TL_TransChitem)
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TranspChargesItem (1TL_TransChitem)
Purpose: Delta load of Freight Order Charge Item records (/SCMTMS/D_TCHRGI). Filled by 2FT_S4HARM_I_TranspChargesItem.
2FT_S4HARM_I_TranspChargesItem
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TranspChargesItem (1TL_TransChitem)
Purpose: No transformations.
2VR_S4HARM_I_TranspChargesItem (2VR_TransChitem)
Source: 2TL_S4HARM_I_TranspChargesItem
View on Freight Order Charge Item records.
Filter: HOST_KEY IS NOT NULL.
Formula / Aggregation:
Field | Expression |
HOST_KEY | BINTOHEX(HOST_KEY) |
HOST_BO_KEY | BINTOHEX(HOST_BO_KEY) |
HOST_NODE_KEY | BINTOHEX(HOST_NODE_KEY) |
HOST_ROOT_KEY | BINTOHEX(HOST_ROOT_KEY) |
PARENT_KEY | BINTOHEX(PARENT_KEY) |
PARENT_ITEM_KEY | BINTOHEX(PARENT_ITEM_KEY) |
EXECUTING_DOC_KEY | BINTOHEX(EXECUTING_DOC_KEY) |
DESTLOC_UUID | BINTOHEX(DESTLOC_UUID) |
SOURCELOC_UUID | BINTOHEX(SOURCELOC_UUID) |
CONTEXT_KEY | BINTOHEX(CONTEXT_KEY) |
ORIG_OP_UUID | BINTOHEX(ORIG_OP_UUID) |
PARTY_UUID | BINTOHEX(PARTY_UUID) |
REF_KEY | BINTOHEX(REF_KEY) |
REF_ROOT_KEY | BINTOHEX(REF_ROOT_KEY) |
UUID020 | BINTOHEX(UUID020) |
UUID057 | BINTOHEX(UUID057) |
2TL_S4HARM_I_TranspChargesItemElement (2TL_TransChItemE)
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TranspChargesItemElement (1TL_TransChItemE)
Purpose: Delta load of Freight Order Charge Element records (/SCMTMS/D_TCHRGE). Filled by 2FT_S4HARM_I_TranspChargesItemElement.
2FT_S4HARM_I_TranspChargesItemElement
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TranspChargesItemElement (1TL_TransChItemE)
Purpose: No transformations.
2VR_S4HARM_I_TranspChargesItemElement (2VR_TransChItemE)
Source: 2TL_S4HARM_I_TranspChargesItemElement
View on Freight Order Charge Element records.
Filter: ROOT_KEY IS NOT NULL AND INVOICING <> ''.
Formula / Aggregation:
Field | Expression |
ROOT_KEY | BINTOHEX(ROOT_KEY) |
PARENT_KEY | BINTOHEX(PARENT_KEY) |
PARENT_TCE | BINTOHEX(PARENT_TCE) |
DESTLOC_UUID | BINTOHEX(DESTLOC_UUID) |
SOURCELOC_UUID | BINTOHEX(SOURCELOC_UUID) |
DIST_ELEM_KEY | BINTOHEX(DIST_ELEM_KEY) |
REF_ELEM_KEY | BINTOHEX(REF_ELEM_KEY) |
RATE_RECORD_KEY | BINTOHEX(RATE_RECORD_KEY) |
CALCBASELINE_KEY | BINTOHEX(CALCBASELINE_KEY) |
UUID026 | BINTOHEX(UUID026) |
SPLIT_PARENT_KEY | BINTOHEX(SPLIT_PARENT_KEY) |
TARGET_ITEM_KEY | BINTOHEX(TARGET_ITEM_KEY) |
SRV_NODE | BINTOHEX(SRV_NODE) |
UUID_INDEX_RATE | BINTOHEX(UUID_INDEX_RATE) |
2TL_S4HARM_I_TranspExecData (2TL_TransExec)
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TranspExecData (1TL_TransExec)
Purpose: Delta load of Transportation Order Execution events (/SCMTMS/D_TOREXE). Provides event codes, actual dates/times, and discrepancy indicators for carrier performance KPIs (ERP-1782). Filled by 2FT_S4HARM_I_TranspExecData.
2FT_S4HARM_I_TranspExecData
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TranspExecData (1TL_TransExec)
Purpose: No transformations.
2VR_S4HARM_I_TranspExecData (2VR_TransExec)
Source: 2TL_S4HARM_I_TranspExecData
View on Transportation Order Execution event data.
Filter: EVENT_REVOKED <> 'X' AND EVENT_STATUS <> ''.
Note: Event code mappings (pick-up, arrival, POD) must be configured as input parameters or a reference table in DSP — client-specific customising values in /SCMTMS/D_TOREXE.
Formula / Aggregation:
Field | Expression |
TORITMUID | BINTOHEX(TORITMUID) |
TORSTOPUUID | BINTOHEX(TORSTOPUUID) |
TORSTSUID | BINTOHEX(TORSTSUID) |
PARENT_KEY | BINTOHEX(PARENT_KEY) |
EXT_LOC_UUID | BINTOHEX(EXT_LOC_UUID) |
ORIG_EXEC_KEY | BINTOHEX(ORIG_EXEC_KEY) |
ORIG_NODE_KEY | BINTOHEX(ORIG_NODE_KEY) |
REF_EXEC_KEY | BINTOHEX(REF_EXEC_KEY) |
ACTUAL_DATE | to_date(to_varchar(ACTUAL_DATE,'YYYYMMDD'),'YYYY-MM-DD') |
2TL_S4HARM_I_TranspRootNode (2TL_TransRootN)
Type: TL (Table/Load)
Source: 1TL_S4Hx_I_TranspRootNode (1TL_TransRootN)
Purpose: Delta load of Freight Settlement Documents (/SCMTMS/D_SF_ROT). Used for FSD Timing Compliance KPI (ERP-1795) and settlement header joins (ERP-2359). Filled by 2FT_S4HARM_I_TranspRootNode.
2FT_S4HARM_I_TranspRootNode
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_TranspRootNode (1TL_TransRootN)
Purpose: No transformations.
2VR_S4HARM_I_TranspRootNode (2VR_TransRootN)
Source: 2TL_S4HARM_I_TranspRootNode
View on Freight Settlement Document header records.
Filter: SFIR_TYPE <> '' AND LIFECYCLE <> 'X'.
Formula / Aggregation:
Field | Expression |
TSP_UUID | BINTOHEX(TSP_UUID) |
REF_BO_KEY | BINTOHEX(REF_BO_KEY) |
REF_KEY | BINTOHEX(REF_KEY) |
BILL_FROM_PARTY | BINTOHEX(BILL_FROM_PARTY) |
PAYEE_ID | BINTOHEX(PAYEE_ID) |
CARRIER_INVOICE_KEY | BINTOHEX(CARRIER_INVOICE_KEY) |
CREATED_ON | to_date(to_varchar(CREATED_ON,'YYYYMMDD'),'YYYY-MM-DD') |
CREATION_DATE_EXT | to_date(to_varchar(CREATION_DATE_EXT,'YYYYMMDD'),'YYYY-MM-DD') |
2TL_S4HARM_C_CustSettlmtDEX (2TL_CustSettlmt)
Type: TL (Table/Load)
Source: 1TL_S4Hx_C_CustSettlmtDEX (1TL_CustSettlmt)
Purpose: Delta load of Customer/Freight Settlement documents (C_CustSettlmtDEX — WBRP/WBRK). Settlement item data for Freight Cost Allocation (ERP-2359). Filled by 2FT_S4HARM_C_CustSettlmtDEX.
2FT_S4HARM_C_CustSettlmtDEX
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_C_CustSettlmtDEX (1TL_CustSettlmt)
Purpose: No transformations.
2VR_S4HARM_C_CustSettlmtDEX (2VR_CustSettlmt)
Type: VR (View)
Source: 2TL_S4HARM_C_CustSettlmtDEX
Purpose: View on Customer/Freight Settlement document items.
Filter: CustSettlmt IS NOT NULL
Projection:
Include: CustSettlmt
Include: CustSettlmtItem
Include: CompanyCode
Include: SettlementFiscalYear
Include: ControllingArea
Include: CostCenter
Include: BusinessArea
Include: PurchasingOrganization
Include: Plant
Include: Material
Include: CndnContrType
Include: ActualSettlmtDate
Include: CreationDate
Include: CreatedByUser
2FT_S4HARM_I_BatchWhereUsedLevel
Type: TF (Transformation Flow)
Source: 1TL_S4Hx_I_BatchWhereUsedLevel
Purpose: Transformation flow for batch where-used level data.
Projection:
Add as Key: Material
Add as Key: Plant
Add as Key: Batch
Add as Key: ParentMaterial
Add as Key: ParentPlant
Add as Key: ParentBatch
2TL_S4HARM_I_BatchWhereUsedLevel
Type: TL (Table/Load)
Source: 2FT_S4HARM_I_BatchWhereUsedLevel
Purpose: Load of single-level CHVW batch where-used records. Filled by 2FT_S4HARM_I_BatchWhereUsedLevel.
2VR_S4HARM_I_BatchWhereUsedLevel
Type: VR (View)
Source: 2TL_S4HARM_I_BatchWhereUsedLevel
Purpose: View on single-level batch where-used records.
Filter: Batch IS NOT NULL AND ParentBatch IS NOT NULL
Projection:
Include: Material
Include: Plant
Include: Batch
Include: ParentMaterial
Include: ParentPlant
Include: ParentBatch
2TL_S4HARM_I_NCN
Type: TL (Table/Load)
Source: /SYQ/NCN
Purpose: BLOCKED — pending CL_IT_NCN analysis. Source Z-table and fields TBD.
Notes: BLOCKED
BLOCKED — TBD
2VR_S4HARM_I_NCN
Type: VR (View)
Source: 2TL_S4HARM_I_NCN
Purpose: BLOCKED — pending CL_IT_NCN analysis. Filter, formula and projection TBD.
Notes: BLOCKED
BLOCKED — TBD
2TL_S4HARM_I_InvoiceDisp
Source: 1TL_S4Hx_I_InvoiceDisp
Delta load of Carrier Invoice and Dispute records (/SCMTMS/D_INDSRT). Filled by 2FT_S4HARM_I_InvoiceDisp.
2FT_S4HARM_I_InvoiceDisp
Source: 1TL_S4Hx_I_InvoiceDisp
No transformations.
2VR_S4HARM_I_InvoiceDisp (2VR_InvoiceDisp)
Source: 2TL_S4HARM_I_InvoiceDisp
View on Carrier Invoice and Dispute records. CARRIER_INVOICE_KEY is already present on 2VR_TransRootN and serves as the join key from the settlement document side. Used by ERP-1793 Document Relationships report.
Filter: HOST_KEY IS NOT NULL.
Projection: Include: HOST_KEY, REF_KEY, CARRIER_INVOICE_KEY, INVOICE_ID, INVOICE_DATE, CARRIER_ID, STATUS, CREATED_ON.
Formula / Aggregation:
Field | Expression |
HOST_KEY | BINTOHEX(HOST_KEY) |
REF_KEY | BINTOHEX(REF_KEY) |
CARRIER_INVOICE_KEY | BINTOHEX(CARRIER_INVOICE_KEY) |
2TL_S4HARM_I_Outbound
Source: 1TL_S4Hx_I_Outbound
Delta load of Outbound Delivery header records (I_OutboundDelivery / LIKP). Filled by 2FT_S4HARM_I_Outbound.
2FT_S4HARM_I_Outbound
Source: 1TL_S4Hx_I_Outbound
No transformations.
2VR_S4HARM_I_Outbound (2VR_Outbound)
Source: 2TL_S4HARM_I_Outbound
View on harmonised Outbound Delivery header data. Provides PGI date (ActualGoodsMovementDate) for Freight Unit Compliance planning-status determination (ERP-1795) and outbound/inbound split for Event Reporting Rate (ERP-1782).
Filter: OutboundDelivery IS NOT NULL AND ActualGoodsMovementDate IS NOT NULL.
Projection: Include: OutboundDelivery, ShippingPoint, ShipToParty, SoldToParty, ActualGoodsMovementDate, OverallSDProcessStatus, DeliveryDate, TransportationPlanningStatus, GoodsMovementStatus.
Formula / Aggregation:
Field | Expression |
OutboundDeliveryUUID | BINTOHEX(OutboundDeliveryUUID) |
ShipToPartyUUID | BINTOHEX(ShipToPartyUUID) |
SoldToPartyUUID | BINTOHEX(SoldToPartyUUID) |
TL 2TL_S4HARM_I_OutboundItem
Source: 1TL_S4Hx_I_OutboundItem
Delta load of Outbound Delivery item records (C_OutboundDeliveryDEX / LIPS). Filled by 2FT_S4HARM_I_OutboundItem.
TF 2FT_S4HARM_I_OutboundItem
Source: 1TL_S4Hx_I_OutboundItem
No transformations.
VR 2VR_S4HARM_I_OutboundItem (2VR_OutboundItem)
Source: 2TL_S4HARM_I_OutboundItem
View on harmonised Outbound Delivery item data. Carries TransportationOrderItemUUID enabling the join from delivery item to TORROT for Freight Unit Compliance. Also feeds 3VR_TrItemDex (already documented).
Filter: OutboundDelivery IS NOT NULL.
Projection: Include: OutboundDelivery, OutboundDeliveryItem, Material, Plant, StorageLocation, Batch, ActualDeliveredQuantity, DeliveryQuantityUnit, ReferenceSDDocument, ReferenceSDDocumentItem, TransportationOrderItem, PickingStatus, GoodsMovementStatus.
Formula / Aggregation:
Field | Expression |
OutboundDeliveryItemUUID | BINTOHEX(OutboundDeliveryItemUUID) |
TransportationOrderItemUUID | BINTOHEX(TransportationOrderItemUUID) |
Propagation Layer
3VR_P2FINC_MaterialStock
Type: VR (View)
Source: 2VR_S4HARM_I_GLAccountLineItemRAW UNION 2VR_S4HARM_I_GoodsMovementDocumentDEX
Purpose: Combined source view feeding the material stock flow. Union of GL adjustment postings and goods movement documents.
Filter: GLAccountLineItemRAW: ReferenceDocumentType = 'PRCHG' AND ControllingBusTransacType = '' AND SourceLedger = '0L' AND Product != '' GoodsMovementDocumentDEX: Material != '' AND InventoryStockType != ''
Formula / Aggregation:
Union: Accept default union mappings
3VF_P2FINV_MaterialStock
Type: VF (Formula/Fact View)
Source: 3VR_P2FINC_MaterialStock
Purpose: Fact view on material stock. Applies RecordType calculation for Non-Cumulative Key Figures.
Formula / Aggregation:
RecordType (Integer):
CASE WHEN PostingDate < '20251231' THEN 2
WHEN PostingDate = '20251231' THEN 1
ELSE 0 END
Note: Dates must be parameterised via input table.
3VR_P2FTMS_TransportationOrderSql (3VR_TranOrdSql)
Type: VR — SQL Table Function
Supports: ERP-1795, ERP-1792, ERP-1782
Source: 2VR_S4HARM_C_TranspOrdItemAnlytsDEX + 2VR_TransChRoot + 2VR_TransChitem + 2VR_TransChItemE + 2VR_TransExec (via join)
Purpose: SQL-level aggregation and pre-join of Transportation Order items with Charges Root, Item, Element data and Execution events. Filters and projects fields required downstream.
3VR_P2FTMS_TransportationOrder (3VR_TranOrd)
Type: VR (View)
Supports: ERP-1795, ERP-1792, ERP-1782
Source: 3VR_P2FTMS_TransportationOrderSql LEFT JOIN 2VR_S4HARM_C_TranspOrdStageAnalytics ON TransportationOrderUUID
Purpose: Core transportation order view used by all TMS analytical models.
Filter: TransportationOrder <> '' AND TranspOrdLifeCycleStatus NOT IN ('X', 'Z')
Projection:
Include: TransportationOrder, TransportationOrderUUID, TransportationOrderType, TransportationMode
Include: CarrierUUID, ShipperUUID, ConsigneeUUID, FreightAgreement
Include: PlannedDepartureDateTime, ActualDepartureDateTime, PlannedArrivalDateTime, ActualArrivalDateTime
Include: TranspOrdLifeCycleStatus, TranspOrdPlanningStatus, ShippingCondition
Include: TransportationOrderItemUUID, Product / ShipFromParty / ShipToParty
Include (from stage): NetDurationInHours, NumberOfStages, TranspOrdStageDistance / DistanceUnit
Charge fields: FAGRMNTID044, HOST_KEY, CALC_AMOUNT, AMOUNT, INVOICED_AMT, ANALYTICRELEV, CCOD, MANUALLY_CHANGED
Execution fields: EVENT_CODE, ACTUAL_DATE, DISCREPANCY, DISCR_TYPE, PROCESSING_STATUS
3VF_P2FTMS_TransportationOrder (3VF_TranOrd)
Type: VF (Formula/Fact View)
Supports: ERP-1795, ERP-1792, ERP-1782
Source: 3VR_P2FTMS_TransportationOrder
Purpose: Formula / Calculation view. Applies final field-level derivations and unit conversions before exposure to analytical model.
3VR_P2FTMS_FrtCstAlloc (3VR_FrtCstAlloc)
Type: VR (View)
Supports: ERP-2359
Source: 2VR_S4HARM_I_TranspRootNode JOIN 2VR_S4HARM_C_CustSettlmtDEX JOIN 2VR_S4HARM_I_GLAccountLineItemRAW
Purpose: Pre-join view for Freight Cost Allocation report (ERP-2359). Links FSD, settlement document, and G/L line items.
Filter: ReferenceDocumentContext = 'WB' AND S.CustSettlmt IS NOT NULL AND N.LIFECYCLE <> 'X'
Projection:
From CustSettlmt: CustSettlmt, CustSettlmtItem, CompanyCode, SettlementFiscalYear, PurchasingOrganization, Plant, Material, CndnContrType, ActualSettlmtDate
From GL Account Line Item: GLAccount, DebitCreditCode, AmountInCompanyCodeCurrency, CompanyCodeCurrency, AmountInTransactionCurrency, TransactionCurrency, CostCenter, ControllingArea, ProfitCenter, BusinessArea, SalesOrder / PurchaseOrder
From TranspRootNode: SFIR_ID, CREATED_ON, TSP_ID, PURCH_COMPANY_CODE, PURCH_ORG_ID, LIFECYCLE, BLOCK, BLOCK_REASON
Joins:
G.CompanyCode = S.CompanyCode
AND G.FiscalYear = S.SettlementFiscalYear
AND G.ReferenceDocument = S.CustSettlmt
AND G.ReferenceDocumentItem = S.CustSettlmtItem
AND G.ReferenceDocumentContext = 'WB'
AND N.REF_KEY = S.SettlmtRefDoc
3VF_P2FTMS_FrtCstAlloc (3VF_FrtCstAlloc)
Type: VF (Formula/Fact View)
Supports: ERP-2359
Source: 3VR_P2FTMS_FrtCstAlloc
Purpose: Formula / Calculation view. Applies final derivations (e.g. account type classification: Cost vs. Material) before exposure to analytical model.
3VR_P2FINV_TF_BatchChain
Type: TF (SQLScript Table Function)
Supports: ERP-410
Source: 2VR_S4HARM_I_BatchWhereUsedLevel (read at runtime — not persisted)
Purpose: SQLScript Table Function. Called dynamically at runtime by SAC. Recursive CHVW traversal for a single batch input. DSP equivalent of ZWPP_HCE GET_BATCHES WHILE loop. Output feeds 3VR_P2FINV_BatchTrace and 3VR_P2FINV_QC.
Projection:
Input Parameters: IV_Material NVARCHAR(18), IV_Plant NVARCHAR(4), IV_Batch NVARCHAR(10), IV_DIRECTION NVARCHAR(1) [B = Bottom Up / T = Top Down]
Output columns: Material, Plant, Batch, ParentMaterial, ParentPlant, ParentBatch, Level (0 = seed batch)
Formula / Aggregation:
Already-processed batches excluded via NOT EXISTS check.
Loops until no new batches returned.
Direction B: joins on Material/Plant/Batch to find ParentMaterial/ParentPlant/ParentBatch.
Direction T: reverses join direction.
3VR_P2FINV_BatchTrace
Type: VR (View)
Supports: ERP-410 Req 0
Source: 3VR_P2FINV_TF_BatchChain
Purpose: Primary result set for the batch traceability report. Enriches TF output with master data and classification. Filter anchor for all branch AMs.
Joins:
LEFT JOIN 2VD_S4HARM_I_Batch ON Material=Material AND Batch=Batch → adds ExternalBatch
LEFT JOIN 2VD_S4HARM_Material ON Material=Material → adds MaterialDescription, BaseUnit
LEFT JOIN 2VD_S4HARM_Plant ON Plant=Plant → adds PlantName
LEFT JOIN 3VR_P2FINV_CharcValue ON Material=ObjectInternalID → adds characteristic values (filter to relevant class type)
3VF_P2FINV_BatchTrace
Type: VF (Formula/Fact View)
Supports: ERP-410 Req 0
Source: 3VR_P2FINV_BatchTrace
Purpose: Formula only — makes the view a fact. No joins.
Formula / Aggregation:
ChainDirection: CASE WHEN Level = 0 THEN 'Seed' WHEN ParentMaterial = Material THEN 'Same Material' ELSE 'Cross Material' END
IsFinishedGood: CASE WHEN Level = 0 THEN 'X' ELSE '' END
3VR_P2FINV_BatchDel
Type: VR (View)
Supports: ERP-410 Req 7
Source: 2VR_S4HARM_GoodsMovementDocumentDEX + 2VR_S4HARM_I_OutboundDelivery + 2VR_S4HARM_I_Customer
Purpose: Resolves outbound deliveries for batches in the chain. Equivalent of GET_DEL in ZWPP_HCE.
Filter: Join 1 filter: ReferenceSDDocument IS NOT NULL AND PurchaseOrder IS NULL AND Material/Plant/Batch IN (SAC batch chain context)
Projection:
OutboundDelivery / OutboundDeliveryItem
ReferenceSDDocument / ReferenceSDDocumentItem / ReferenceSDDocumentCategory (TBD)
PurchaseOrder / PurchaseOrderItem
SoldToParty / Country (TBD) / CustomerName (TBD) / CityName (TBD)
Material / Batch / Plant
ActualGoodsmovementDate
ActualDeliveryQuantity / DeliveryQuantityUnit
SalesGroup / SalesOffice
Joins:
Join 1: GoodsMovementDocumentDEX INNER JOIN OutboundDelivery ON ReferenceSDDocument = OutboundDelivery
Join 2: Result of Join 1 INNER JOIN Customer ON SoldToParty = KUNNR
3VF_P2FINV_BatchDel
Type: VF (Formula/Fact View)
Supports: ERP-410 Req 7
Source: 3VR_P2FINV_BatchDel
Purpose: Final derivations on delivery data before AM exposure.
3VR_P2FINV_BatchDelSpec
Type: VR (View)
Supports: ERP-410 Req 8
Source: 3VR_P2FINV_BatchDel
Purpose: All spec entries per delivery item. Contrast with BatchDel which carries first spec only.
Notes: BLOCKED — create_spec_table / init_specs / get_spec all in ZWPP_MDE_HCE. Source tables and join keys TBD.
BLOCKED — TBD
3VF_P2FINV_BatchDelSpec
Type: VF (Formula/Fact View)
Supports: ERP-410 Req 8
Source: 3VR_P2FINV_BatchDelSpec
Purpose: BLOCKED — dependent on 3VR_P2FINV_BatchDelSpec.
BLOCKED — TBD
3VR_P2FINV_QC
Type: VR (View)
Supports: ERP-410 Req 3 (NCN) / Req 4 (Specs) / Req 5 (FG Characteristics)
Source: 3VR_P2FINV_TF_BatchChain (shared with BatchTrace)
Purpose: NCN records, specifications and FG characteristics for all batches in the chain.
Joins:
INNER JOIN 3VR_CharcValue ON ObjectInternalID = MATNR (filter to relevant class type) → STATUS: Available
INNER JOIN 2VR_S4HARM_I_NCN ON MATNR/WERKS/CHARG → STATUS: BLOCKED pending CL_IT_NCN
INNER JOIN TBD (Specifications) → STATUS: BLOCKED pending ZWPP_MDE_HCE
Notes: Partial BLOCKED — NCN and Specs TBD. CharcValue join is available.
3VF_P2FINV_QC
Type: VF (Formula/Fact View)
Supports: ERP-410 Req 3, 4, 5
Source: 3VR_P2FINV_QC
Purpose: Final derivations on quality and compliance data.
Notes: Partial BLOCKED — NCN and Specs TBD.
3VR_P2FTMS_DocRelationship
Source: 2VR_S4HARM_C_TranspOrdItemAnlytsSDEX JOIN 2VR_S4HARM_I_TranspRoot JOIN 2VR_S4HARM_I_TranspRootNode JOIN 2VR_S4HARM_I_FreightAgreement JOIN 2VR_S4HARM_I_InvoiceDisp JOIN 2VR_S4HARM_C_PurchaseOrderItem JOIN 2VR_S4HARM_C_SupplierInvoiceItem
Pre-join propagation view for the Document Relationships report (ERP-1793). Resolves all freight document references back to the originating source document (Sales Order / PO / Delivery).
Filter: BASE_BTD_ID IS NOT NULL.
Joins: TORITE.BASE_BTD_ID -> TORROT (FU/FO/BK via TOR_TYPE) -> SF_ROT (FSD via REF_KEY; Cost Dist via SFIR_TYPE) -> FAGROT (FA via FAG_KEY) -> INDSRT (Carrier Invoice/Dispute via CARRIER_INVOICE_KEY) -> EKKO/EKPO (Freight PO, item category L) -> RBKP (Invoice Receipt via PO reference).
Note: Memory consumption risk flagged (13/Apr/26) — UUID-based joins and relationship fan-out may require scope reduction during Detailed Design. Single instance only. Real-time not required.
3VF_P2FTMS_DocRelationship
Source: 3VR_P2FTMS_DocRelationship
Formula / Calculation view. Applies final derivations before exposure to analytical model. ERP-1793.
3VR_P2FTMS_Outbound (3VR_Outbound)
Source: 2VR_S4HARM_I_Outbound (header) INNER JOIN 2VR_S4HARM_I_OutboundItem (item) JOIN 2VR_S4HARM_C_TranspOrdItemAnlytsSDEX ON TransportationOrderItemUUID
Propagation view joining outbound delivery header and item data with the transportation order item. Provides the delivery-to-freight-unit linkage required for Freight Unit Compliance Score (ERP-1795) and the outbound leg for Event Reporting Rate (ERP-1782).
Filter: TransportationOrderItem IS NOT NULL.
Projection: Include: OutboundDelivery, OutboundDeliveryItem, TransportationOrderItem, TransportationOrder, ShipToParty, SoldToParty, Material, Plant, Batch, ActualGoodsMovementDate, ActualDeliveredQuantity, DeliveryQuantityUnit, TransportationPlanningStatus, GoodsMovementStatus, OverallSDProcessStatus.
Joins: INNER JOIN on OutboundDelivery = OutboundDelivery (header to item). LEFT JOIN to 2VR_S4HARM_C_TranspOrdItemAnlytsSDEX ON TransportationOrderItemUUID to resolve Freight Unit / Freight Order reference.
3VF_P2FTMS_Outbound (3VF_Outbound)
Source: 3VR_P2FTMS_Outbound
Formula / Calculation view. Applies final derivations before exposure to 4MA_P2FTMS_Outbound.
3VR_P2FTMS_TrpAnlytcs
Source: 2VR_S4HARM_I_TranspRoot JOIN
2VR_S4HARM_C_TranspOrdItemAnlytsSDEX JOIN
2VR_S4HARM_I_TranspChargesRoot JOIN
2VR_S4HARM_I_TranspChargesItem JOIN
2VR_S4HARM_I_TranspChargesItemElement JOIN
2VR_S4HARM_I_TranspExecData JOIN
2VR_S4HARM_I_TranspRootNode JOIN
2VR_S4HARM_I_FreightAgreement JOIN
2VR_S4HARM_I_TranspOrdStageAnalytics
SQL(?)-level aggregation and join of all TMS operational data.
Central propagation view for 4MA_P2FTMS_TrpAnlytcs.
Brings together freight order core data, charge detail, execution events, settlement documents, freight agreements, and stage distance/duration into a single queryable structure.
Filter: TransportationOrder <> '' AND TranspOrdLifeCycleStatus NOT IN ('X', 'Z').
Joins: TransRoot (header) JOIN TransRootItm (item) ON DB_KEY = PARENT_KEY.
JOIN ChargesRoot ON HOST_KEY = DB_KEY (freight order).
JOIN ChargesItem ON DB_KEY = PARENT_KEY (charges root).
JOIN ChargesItemElement ON ROOT_KEY = charges root key.
JOIN TransExec ON TORITMUID = freight order item.
JOIN TransRootNode ON REF_KEY = freight order DB_KEY.
JOIN FreightAgreement ON FAG_KEY = freight order FAG_KEY.
LEFT JOIN StageAnalytics ON TransportationOrderUUID.
Note: Stage data (distance, duration) aggregated at freight order level before join. Charge amounts summed per charge root. Execution events filtered to non-revoked, non-empty status.
3VF_P2FTMS_TrpAnlytcs
Source: 3VR_P2FTMS_TrpAnlytcs
Formula / Calculation view. Applies final field derivations and unit conversions before exposure to 4MA_P2FTMS_TrpAnlytcs.
3VR_P2FTMS_DocRelationship
Source: 2VR_S4HARM_C_TranspOrdItemAnlytsSDEX JOIN
2VR_S4HARM_I_TranspRoot JOIN
2VR_S4HARM_I_TranspRootNode JOIN
2VR_S4HARM_I_FreightAgreement JOIN
2VR_S4HARM_I_InvoiceDisp JOIN
2VR_S4HARM_C_PurchaseOrderItem JOIN
2VR_S4HARM_C_SupplierInvoiceItem
Pre-join view for the Document Relationships report (ERP-1793). Resolves all freight document references back to the originating source document (Sales Order / PO / Delivery).
Filter: BASE_BTD_ID IS NOT NULL.
Joins: TORITE.BASE_BTD_ID -> TORROT (FU/FO/BK via TOR_TYPE) -> SF_ROT (FSD via REF_KEY; Cost Dist via SFIR_TYPE) -> FAGROT (FA via FAG_KEY) -> INDSRT (Carrier Invoice/Dispute via CARRIER_INVOICE_KEY) -> EKKO/EKPO (Freight PO, item category L) -> RBKP (Invoice Receipt via PO reference).
Note: Memory consumption risk (13/Apr/26) — UUID-based joins and relationship fan-out may require scope reduction during Detailed Design.
Single instance only.
Real-time not required.
3VF_P2FTMS_DocRelationship
Source: 3VR_P2FTMS_DocRelationship
Formula / Calculation view. Applies final derivations before exposure to 4MA_P2FTMS_DocRelationship. ERP-1793.
Reporting Layer
4MA_P2FINV_DowntimeFact
Supports:
Includes technical details for:
Calculated Measures (Post Aggregation Calculations / exception aggregation etc)
| Report Field Description | SAP Table-Field Name / process | Comments / Calculation / Formula / Restriction dimensions and values | Aggregation of data | Example SAP field data |
| CurrentStock | MatlStkChangeQtyInBaseUnit | Non-Cumulative Record Type Field: RecordType TimeDimension: PostingDate Earliest Reporting Start Date: TBD LatestReportingEndDate: TBD Set Unbooked Values to 0: X | LAST | 1,000 |
CurrentStockValue | InventoryValuationAmtInCoCodeCrcy | Non-Cumulative – same parameters as CurrentStock | SUM |
4MA_P2FTMS_TransportationOrder (4MA_TranOrd) — updated
Source: 3VF_P2FTMS_TransportationOrder (3VF_TranOrd)
Supports ERP-1795, ERP-1792, and ERP-1782. This single analytical model serves all three TMS KPI reports via 3VF_TranOrd (freight charge pre-aggregation view).
Freight KPI Report (ERP-1795) — Intended KPI measures (draft):
Measure | Logic / Source |
FreightUnitComplianceScore | Ratio of Freight Units planned prior to PGI. Source: 2VR_S4HARM_I_Outbound + 2VR_S4HARM_I_TranspRoot. Hierarchy: Syensqo Country CompanyCode Plant. |
FSDTimingComplianceScore | Ratio of FSDs where CREATED_ON <= ActualDepartureDateTime (PlannedDeparture as fallback). Source: 2VR_S4HARM_I_TranspRootNode. |
FreightAgreementUsageScore | Ratio of FSD items where FAGRMNTID044 IS NOT NULL. MANUALLY_CHANGED = 'X' on charges element counted as manual update. Excludes non-FA charge types (configurable list). |
OverallComplianceScore | Weighted average of the three scores. Weighting factors configurable per project agreement. Score = SUM(weight_i * score_i) / total_weight. |
Freight Cost Report (ERP-1792) — Intended measures (draft):
Measure | Logic / Source |
TotalChargeAmount | Sum of AMOUNT from Charges Element, restricted to INVOICING <> '' and ANALYTICRELEV = 'X'. |
ManualChargeVariance | CALC_AMOUNT vs AMOUNT where MANUALLY_CHANGED = 'X'. Supports ERP-1792: Manual Updated Charges vs FA Calculated Amount. |
InvoicedAmount | INVOICED_AMT at Charges Root (total) and Element (detail) level. |
WeightedAvgFreightRate | TotalChargeAmount / TotalWeight (CHRG_WEI_VAL). Post-aggregation in SAC. |
Carrier Performance Report (ERP-1782) — Intended measures (draft):
Shared analytical model with ERP-1795 and ERP-1792.
Measure | Logic / Source |
PickupOnTimeRate | Earliest actual pick-up event (EVENT_CODE = pick-up) vs PlannedDepartureDateTime +/- threshold. Source: 2VR_S4HARM_I_TranspExecData. |
ETAOnTimeRate | Earliest arrival event vs PlannedArrivalDateTime +/- threshold. Confirmed ETA from Transportation Order extension field. |
ProofOfDeliveryRate | Ratio of FOs with POD event reported (EVENT_CODE = POD, PROCESSING_STATUS = Confirmed). |
EventReportingRate | Compliance per defined event rules (ERP-1782). Separate rate for Outbound / Inbound FOs. Source: 2VR_S4HARM_I_Outbound + 2VR_S4HARM_I_TranspExecData. |
Note: Event code mappings (pick-up, arrival, POD) must be configured as input parameters or a reference table in DSP — client-specific values in /SCMTMS/D_TOREXE.
Carrier Performance Report (ERP-1782) — Intended measures (draft):
Shared analytical model with ERP-1795 and ERP-1792.
Measure | Logic / Source |
PickupOnTimeRate | Earliest actual pick-up event (EVENT_CODE = pick-up) vs PlannedDepartureDateTime +/- threshold. Source: 2VR_S4HARM_I_TranspExecData. |
ETAOnTimeRate | Earliest arrival event vs PlannedArrivalDateTime +/- threshold. Confirmed ETA from Transportation Order extension field. |
ProofOfDeliveryRate | Ratio of FOs with POD event reported (EVENT_CODE = POD, PROCESSING_STATUS = Confirmed). |
EventReportingRate | Compliance per defined event rules (ERP-1782). Separate rate for Outbound / Inbound FOs. Source: 2VR_S4HARM_I_Outbound + 2VR_S4HARM_I_TranspExecData. |
Note: Event code mappings (pick-up, arrival, POD) must be configured as input parameters or a reference table in DSP — client-specific values in /SCMTMS/D_TOREXE.
4MA_P2FTMS_Outbound (4MA_Outbound)
Source: 3VF_P2FTMS_Outbound (3VF_Outbound)
Supports Freight Unit Compliance dimension analysis (ERP-1795) and outbound event reporting (ERP-1782). Provides outbound delivery data linked to freight units, enabling planning-status-at-PGI calculations in SAC.
Dimension / Measure | Description |
OutboundDelivery | Outbound delivery document number |
OutboundDeliveryItem | Delivery item |
TransportationOrder | Linked freight unit / freight order number |
ShipToParty / SoldToParty | Customer dimensions |
Material / Plant / Batch | Product dimensions |
ActualGoodsMovementDate | PGI date — time dimension for compliance scoring |
TransportationPlanningStatus | Planning status at time of PGI — key field for FreightUnitComplianceScore |
ActualDeliveredQuantity (SUM) | Measure |
DeliveryCount (COUNT) | Calculated measure — number of deliveries |
4MA_P2FTMS_TrpAnlytcs (4MA_TrpAnlytcs)
Source: 3VF_P2FTMS_TrpAnlytcs (3VF_TrpAnlytcs)
Broader transportation analytics model. Combines freight order core data, charge totals, execution events, stage distance/duration, settlement documents, and freight agreements into a single analytical model. Distinct from 4MA_TranOrd which serves the freight charge pre-aggregation path — TrpAnlytcs serves operational transportation reporting including carrier performance, route analytics, and freight cost overview.
Dimension / Measure | Description |
TransportationOrder | Freight Order / Freight Unit / Freight Booking number (TOR_TYPE dimension) |
TransportationOrderType | FU / FO / BK type code |
CarrierUUID / Carrier | Carrier dimension |
FreightAgreement | Linked freight agreement number |
PlannedDeparture / ActualDeparture | Time dimensions for FSD timing and carrier pickup KPIs |
PlannedArrival / ActualArrival | Time dimensions for ETA compliance |
TranspOrdStageDistance (SUM) | Total route distance |
NetDurationInHours (SUM) | Total transit time in hours |
AMOUNT (SUM) | Total charge amount (ANALYTICRELEV = X) |
CALC_AMOUNT (SUM) | FA-calculated charge amount for manual variance |
EVENT_CODE / ACTUAL_DATE | Execution event dimensions for carrier performance KPIs |
PROCESSING_STATUS | POD confirmation status |
4MA_P2FTMS_DocRelationship
Source: 3VF_P2FTMS_DocRelationship
Supports ERP-1793 — Document Relationships Report. Holistic view of all shipment documents related to a source Sales Order, Purchase Order, or Delivery. Single SAC list report, Tier 1 object.
Input parameters: Date range, Created By, Created On.
Document Field | Source Table / Field | Notes |
Freight Unit No. | /SCMTMS/D_TORROT — TOR_ID, TOR_TYPE = FU | Filter TOR_TYPE = 'FU'. Reuse XE_TransRoot. |
Freight Order No. | /SCMTMS/D_TORROT — TOR_ID, TOR_TYPE = TO | Same extractor as FU. TOR_TYPE filter only. |
Freight Booking No. | /SCMTMS/D_TORROT — TOR_ID, TOR_TYPE = BK | Same extractor. Single extraction path covers all three TOR types. |
Source Doc Ref (SO/PO/Delivery) | /SCMTMS/D_TORITE — BASE_BTD_ID, BASE_BTD_TCO | TORITE back-reference. Reuse XE_TrItemDex. |
Freight Agreement No. | /SCMTMS/D_FAGROT — DB_KEY / FAG_KEY | New: XE_FreightAgreement. Join via FAG_KEY on TORROT. New 1TL + 2TL + 2VR. |
Freight Settlement Doc No. | /SCMTMS/D_SF_ROT — SFIR_ID | Reuse XE_TransRootN. REF_KEY links to TORROT. |
Cost Distribution Document No. | /SCMTMS/D_SF_ROT — SFIR_ID (SFIR_TYPE filter) | Same SF_ROT. Distinguish via SFIR_TYPE in propagation. |
Carrier Invoice No. | /SCMTMS/D_INDSRT — CARRIER_INVOICE_KEY | New: XE_InvoiceDisp. Join via CARRIER_INVOICE_KEY on TransRootN. New 1TL + 2TL + 2VR. |
Dispute Document No. | C_FrtDsputCaseAnlytsDEX | Reuse. Full track: XE_FrtDsputCase -> 1TL -> 2TL -> 2VR -> 3VR -> 4MA_P2FTMS_FrtDsputCase. |
Freight Purchase Order No. | EKKO / EKPO | Reuse 2VR_S4HARM_C_PurchaseOrderItem. Filter item category = 'L'. |
Invoice Receipt Document No. | RBKP — I_SupplierInvoice (standard CDS) | Standard CDS. Join to Freight PO via PO/POItem. New 2TL + 2VR required. |
Measures: Document count per relationship type (SUM).
Note: Memory consumption risk due to UUID-based joins — scope may be reduced during Detailed Design. Single instance only.
4MA_P2FTMS_FrtCstAlloc (4MA_FrtCstAlloc)
Source: 3VF_P2FTMS_FrtCstAlloc (3VF_FrtCstAlloc)
- Supports: ERP-2359 – Freight Cost Allocation Report.
Calculated Measures:
Measure | Base Fields | Calculation / Logic | Aggregation |
FreightCostToCostAccount | AmountInCompanyCodeCurrency | Sum of amounts where GLAccount is classified as an expense/cost account. | SUM |
FreightCostToMaterialAccount | AmountInCompanyCodeCurrency | Sum of amounts where GLAccount is classified as a material/stock account. | SUM |
CostVsMaterialSplit | FreightCostToCostAccount / TotalFreightCost | Ratio split between cost and material account postings. Expressed as %. | PERCENTAGE |
Dimensions:
- Company Code, Purchasing Organisation, Sales Organisation (where populated)
- Plant, Material, Sales Order / Purchase Order
- G/L Account, Cost Center, Controlling Area, Business Area
- Period (ActualSettlmtDate)
Out of Scope:
Breakdown by charge type or carrier – refer to Freight Cost Report (ERP-1792) for that analysis.
4MA_P2FINV_BatchTrace
Source | 3VF_P2FINV_BatchTrace |
Supports | ERP-410 Req 0 — Primary batch chain report. Entry point for all 7 branch AMs. |
Input Parameters:
Parameter | Description |
IV_Material | Material |
IV_Plant | Plant |
IV_Batch | Batch |
IV_DIRECTION | B = Bottom Up / T = Top Down |
Dimensions:
Material / Plant / Batch / Vendor Batch / Material Description / Plant Name / Parent Material / Parent Plant / Parent Batch / Chain Level / Chain Direction
Measures:
Batch count by level.
4MA_P2FINV_QC
Source | 3VF_P2FINV_QC |
Supports | ERP-410 Req 3 (NCN) / Req 4 (Specs) / Req 5 (FG Characteristics) |
Dimensions:
Material / Plant / Batch / Class / Characteristic / Characteristic Value / NCN Number / NCN Status
Measures:
NCN Count (SUM)
Partially BLOCKED — NCN and Specs TBD.
4MA_P2FINV_BatchDel
Source | 3VF_P2FINV_BatchDel |
Supports | ERP-410 Req 7 — Deliveries incl. first spec on sales order. |
Dimensions:
OutboundDelivery / OutboundDeliveryItem / SoldToParty / Material / Plant / Batch / ReferenceSDDocument / ReferenceSDDocumentItem / ActualGoodsmovementDate / SalesGroup / SalesOffice / PurchaseOrder / PurchaseOrderItem / ActualDeliveryQuantity / DeliveryQuantityUnit
Measures:
Delivery Quantity (SUM)
BLOCKED — pending ZWPP_MDE_HCE analysis.
4MA_P2FINV_BatchDelSpec
Source | 3VF_P2FINV_BatchDelSpec |
Supports | ERP-410 Req 8 — All specs per delivery item. |
Dimensions:
Delivery / Item / Customer / Material / Plant / Batch / Specification / Specification Value
Measures: TBD
BLOCKED — pending ZWPP_MDE_HCE analysis.
Restricted Measures
tbd
Currency Conversions
tbd
Variables
Data access controls
Outbound Layer
Appendix
Effort Estimate and Object Count
S/4 Custom CDS | 1 - Medium | 13 * 5 | Refer Source System Extractors |
S/4 Custom CDS (VDM) | 1` - Medium | 1 * 5 | Custom CDS view for PCD documents. Join of legacy tables MAST/STPO/DRAT. New cds view will join I_MaterialBOMLink (MAST),I_BillOfMaterialItem (STPO & STAS), I_DocumentInfoRecord (DRAT) ERP-410 Refer VDM |
Extract cds views, all require wrappers. I_ClfnCharcDesc I_ClfnObjectCharcValue I_ClfnInternalIdObjectMapping I_ClfnClass I_ClfnCharcDesc I_ClfnClassCharcBasic ERP - 1422 |
TMS KPI to source mapping
| Jira | KPI | 2VR_TransRoot | 2VR_TrItemDex | 2VR_TransChRoot | 2VR_TransChitem | 2VR_TransChItemE | 2VR_TransExec | 2VR_TransRootN | 2VR_FreightAgreement | 2VR_InvoiceDisp | 2VR_FrtDsputCase | 2VR_Outbound | 2VR_CustSettlmt | 2VR_GL_Acc_Line | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| /SYQ/I_TRANSPROOT /SCMTMS/D_TORROT | /SYQ/I_TRANSPROOTITEM /SCMTMS/D_TORITE | /SYQ/I_TRANSPCHARGESROOT /SCMTMS/D_TCHRGR | /SYQ/I_TRANSPCHARGESITEM /SCMTMS/D_TCHRGI | /SYQ/I_TRANSPCHARGESITEMELEMENT /SCMTMS/D_TCHRGE | /SYQ/I_TRANSPEXECDATA /SCMTMS/D_TOREXE | /SYQ/I_TRANSPROOTNODE /SCMTMS/D_SF_ROT | /SYQ/I_FREIGHTAGREEMENT /SCMTMS/D_FAGROT | /SYQ/I_INVOICEDISP /SCMTMS/D_INDSRT | XE_FrtDsputCase C_FrtDsputCaseAnlytsDEX | I_OUTBOUNDDELIVERY LIKP/LIPS | C_CUSTSETTLMNTDEX WBRK/WBRP | I_GLAccountLineItemRAW ACDOCA | |||
| ERP-1795 | Freight Unit Compliance Score | X | X | FUs with planning status at time of PGI. Delivery goods movement date as base. | |||||||||||
| ERP-1795 | FSD Timing Compliance Score | X | FSD CREATED_ON vs ActualDeparture (PlannedDeparture as fallback). | ||||||||||||
| ERP-1795 | Freight Agreement Usage Score | X | X | FAGRMNTID044 presence on charge items; MANUALLY_CHANGED on charge elements. | |||||||||||
| ERP-1795 | Overall Compliance Score | Weighted average of the three scores above. | |||||||||||||
| ERP-1792 | Manual Charges vs FA Calculated | X | CALC_AMOUNT vs AMOUNT where MANUALLY_CHANGED = X on charge elements. | ||||||||||||
| ERP-1792 | 3rd Party Charges Overview | X | X | Charges assigned to 3rd party; filtered by charge type on element. | |||||||||||
| ERP-1792 | Freight Agreement Utilisation | X | X | All freight orders linked to a freight agreement including costs. | |||||||||||
| ERP-1792 | Freight Charge Breakdown | X | X | X | X | Breakdown by charge type carrier posting/doc status timeline. | |||||||||
| ERP-1782 | Confirmed Pick-up vs Actual | X | X | Earliest pick-up event vs confirmed pickup date on freight order. | |||||||||||
| ERP-1782 | Confirmed ETA vs Actual Arrival | X | X | Earliest arrival event vs confirmed ETA on freight order. | |||||||||||
| ERP-1782 | Proof of Delivery Rate | X | X | POD event reported (PROCESSING_STATUS = Confirmed) as % of total FOs. | |||||||||||
| ERP-1782 | Event Reporting Rate | X | X | Critical event compliance per defined rules; split Outbound / Inbound. | |||||||||||
| ERP-2359 | Freight Cost to Cost Account/Material Account | X | X | Amount posted to material/expense/P&L G/L accounts after settlement. | |||||||||||
| ERP-2359 | Cost Allocation Breakdown | X | X | X | Breakdown by CompanyCode PurchOrg Plant Material SalesOrder/PO G/L. | ||||||||||
| ERP-1793 | Document Relationships - Freight Unit No. | X (TOR_TYPE=FU) | Filter TOR_TYPE = FU on /SCMTMS/D_TORROT. | ||||||||||||
| ERP-1793 | Document Relationships - Freight Order No. | X (TOR_TYPE=TO) | Filter TOR_TYPE = TO on /SCMTMS/D_TORROT. Same extractor as FU. | ||||||||||||
| ERP-1793 | Document Relationships - Freight Booking No. | X (TOR_TYPE=BK) | Filter TOR_TYPE = BK on /SCMTMS/D_TORROT. | ||||||||||||
| ERP-1793 | Document Relationships - Link Source Doc to Freight Doc (SO/PO/Delivery) | X | X (NEW) | /SCMTMS/D_TORITE. BASE_BTD_ID and BASE_BTD_TCO carry back-reference to originating Sales Order/PO/Delivery. . | |||||||||||
| ERP-1793 | Document Relationships - Freight Agreement No. | X | X | /SCMTMS/D_FAGROT. Join to TORROT via FAG_KEY already on TORROT. | |||||||||||
| ERP-1793 | Document Relationships - Freight Settlement Doc No. | X | SFIR_ID is settlement document number. REF_KEY links to TORROT. | ||||||||||||
| ERP-1793 | Document Relationships - Cost Distribution Document No. | X | Same SF_ROT table as settlement doc. Distinguish via SFIR_TYPE filter in propagation view. | ||||||||||||
| ERP-1793 | Document Relationships - Carrier Invoice No. | X | X | /SCMTMS/D_INDSRT. CARRIER_INVOICE_KEY already on 2VR_TransRootN as join key. | |||||||||||
| ERP-1793 | Document Relationships - Dispute Document No. | X | C_FrtDsputCaseAnlytsDEX full extraction track already in DDFS (XE_FrtDsputCase -> 1TL -> 2TL -> 2VR -> 3VR_P2FTMS_FrtDsputCase -> 4MA_P2FTMS_FrtDsputCase). | ||||||||||||
| ERP-1793 | Document Relationships - Document Relationship Chain (propagation) | X | X | X | X | X | X | X | Source Doc (TORITE.BASE_BTD_ID) -> TORROT (FU/FO/BK) -> SF_ROT (FSD/Cost Dist) -> FAGROT (FA via FAG_KEY) -> INDSRT (Carrier Invoice/Dispute via CARRIER_INVOICE_KEY). |