I_TranspInvcPreparationData
TM and PO Data for Invoice Preperation
I_TranspInvcPreparationData is a Basic CDS View that provides data about "TM and PO Data for Invoice Preperation" in SAP S/4HANA. It reads from 1 data source (erptm_iv_data) and exposes 41 fields with key fields SAPClient, PurchasingDocument, PurchasingDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| erptm_iv_data | erptm_iv_data | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | TM and PO Data for Invoice Preperation | view | |
| AbapCatalog.sqlViewName | ITMINVCPREPDATA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.representativeKey | PurchasingDocument | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SAPClient | |||
| KEY | PurchasingDocument | po_id | Purchasing Doc. | |
| KEY | PurchasingDocumentItem | po_item | PO Item | |
| TransportationOrder | tor_id | Freight Order | ||
| TranspOrdItem | tor_item | Fr.Order Item | ||
| MasterBillOfLading | bordero_id | |||
| Carrier | Carrier | |||
| SupplierFreightInvoiceRequest | sfir_id | Freight Sett. Doc. | ||
| SupplierFreightInvoiceReqItem | sfir_item | Item | ||
| TranspOrdInvoicingParty | ivp_id | Business Partner | ||
| TranspOrdLogicalSystem | logsys | Source system | ||
| TranspOrdStageSrceLocation | srce_loc | Source Location | ||
| TranspOrdStageDestLocation | dest_loc | Destination Location | ||
| TranspOrdStgeArrivalDate | del_d | Arrival Date | ||
| TranspOrdStgeDepartureDate | pickup_d | Departure Date | ||
| CreationDate | cpudt | Imported On | ||
| PurchasingDocumentCreationTime | cputm | Time | ||
| TranspOrdStageDistance | distance | Travel Distance | ||
| TranspOrdStageDistanceUnit | dist_uom | Unit of Length | ||
| TranspInvcPrepShipper | shipper | Shipper | ||
| TranspInvcPrepConsignee | consignee | Customer | ||
| EquipmentType | equipment_type | Equipment Type | ||
| TranspOrdStageSrceLocCntry | srce_ctry | Dep. Ctry/Reg. | ||
| TranspOrdStageDestLocCntry | dest_ctry | Dest. Ctry/Reg | ||
| TranspOrdSourceCountryCode | tor_src_ctry | Dep. Ctry/Reg. | ||
| TranspOrdDestCountryCode | tor_dest_ctry | Dest. Ctry/Reg | ||
| ProductID | product_id | Simulated Product ID | ||
| TranspOrdItemPackageID | package_id | Report Chain ID | ||
| TransportationShippingType | shipping_type | Shipping Type | ||
| TranspOrdActvVehRscePltNmbr | platenumber | Registration Number | ||
| TranspOrdSrceLocation | tor_src_loc | Source Location | ||
| TranspOrdDestLocation | tor_dest_loc | Destination Location | ||
| TranspOrdAccrProcVar | accr_proc_var | Accrual process var | ||
| TranspOrdArrivalDate | tor_del_d | Arrival Date | ||
| TranspOrdDepartureDate | tor_pickup_d | Departure Date | ||
| TranspOrdDistance | total_distance | Distance | ||
| TranspOrdDistanceUnit | total_distance_uom | Distance UOM | ||
| TransportationModeCategory | trmodcat | TrM Category | ||
| TranspChargeType | charge_type | Charge Type | ||
| TransportationOrderStop | tor_stpsucc_id | Stage ID | ||
| TranspInvcPrepIsInactive | inactive | WO Locked |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_TranspInvcPreparationData.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ITMINVCPREPDATA
CREATE VIEW I_TranspInvcPreparationData AS
SELECT
$session.client AS SAPClient,
po_id AS PurchasingDocument,
po_item AS PurchasingDocumentItem,
tor_id AS TransportationOrder,
tor_item AS TranspOrdItem,
bordero_id AS MasterBillOfLading,
cast(tsp_id as erptms_party_id preserving type) AS Carrier,
sfir_id AS SupplierFreightInvoiceRequest,
sfir_item AS SupplierFreightInvoiceReqItem,
ivp_id AS TranspOrdInvoicingParty,
logsys AS TranspOrdLogicalSystem,
srce_loc AS TranspOrdStageSrceLocation,
dest_loc AS TranspOrdStageDestLocation,
del_d AS TranspOrdStgeArrivalDate,
pickup_d AS TranspOrdStgeDepartureDate,
cpudt AS CreationDate,
cputm AS PurchasingDocumentCreationTime,
distance AS TranspOrdStageDistance,
dist_uom AS TranspOrdStageDistanceUnit,
shipper AS TranspInvcPrepShipper,
consignee AS TranspInvcPrepConsignee,
equipment_type AS EquipmentType,
srce_ctry AS TranspOrdStageSrceLocCntry,
dest_ctry AS TranspOrdStageDestLocCntry,
tor_src_ctry AS TranspOrdSourceCountryCode,
tor_dest_ctry AS TranspOrdDestCountryCode,
product_id AS ProductID,
package_id AS TranspOrdItemPackageID,
shipping_type AS TransportationShippingType,
platenumber AS TranspOrdActvVehRscePltNmbr,
tor_src_loc AS TranspOrdSrceLocation,
tor_dest_loc AS TranspOrdDestLocation,
accr_proc_var AS TranspOrdAccrProcVar,
tor_del_d AS TranspOrdArrivalDate,
tor_pickup_d AS TranspOrdDepartureDate,
total_distance AS TranspOrdDistance,
total_distance_uom AS TranspOrdDistanceUnit,
trmodcat AS TransportationModeCategory,
charge_type AS TranspChargeType,
tor_stpsucc_id AS TransportationOrderStop,
inactive AS TranspInvcPrepIsInactive
FROM erptm_iv_data
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA