I_TranspInvcPreparationData

DDL: I_TRANSPINVCPREPARATIONDATA SQL: ITMINVCPREPDATA Type: view BASIC

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)

SourceAliasJoin Type
erptm_iv_data erptm_iv_data from

Annotations (12)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;