I_TranspOrdExecution

DDL: I_TRANSPORDEXECUTION Type: view_entity BASIC Package: VDM_TM_BO_TOR

Transportation Order: Execution

I_TranspOrdExecution is a Basic CDS View that provides data about "Transportation Order: Execution" in SAP S/4HANA. It reads from 1 data source (/scmtms/d_torexe) and exposes 86 fields with key field TransportationOrderEventUUID. It has 27 associations to related views. Part of development package VDM_TM_BO_TOR.

Data Sources (1)

SourceAliasJoin Type
/scmtms/d_torexe /scmtms/d_torexe from

Associations (27)

CardinalityTargetAliasCondition
[1..1] I_TransportationOrder _TransportationOrder $projection.TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID
[0..1] I_TransportationOrderItem _TransportationOrderItem $projection.TransportationOrderItemUUID = _TransportationOrderItem.TransportationOrderItemUUID
[0..1] I_TransportationOrderStop _TransportationOrderStop $projection.TransportationOrderStopUUID = _TransportationOrderStop.TransportationOrderStopUUID
[0..1] I_TranspOrdEventCode _TranspOrdEventCode $projection.TranspOrdEventCode = _TranspOrdEventCode.TranspOrdEventCode
[0..1] I_TranspOrdEventCode _TranspOrdReferenceEventCode $projection.TranspOrdReferenceEventCode = _TranspOrdReferenceEventCode.TranspOrdEventCode
[0..1] I_TranspOrdEventStatus _TranspOrdEventStatus $projection.TranspOrdEventStatus = _TranspOrdEventStatus.TranspOrdEventStatus
[0..1] I_TranspOrdHasQtyDiscrepancy _TranspOrdHasQtyDiscrepancy $projection.TranspOrdHasQtyDiscrepancy = _TranspOrdHasQtyDiscrepancy.TranspOrdHasQtyDiscrepancy
[0..1] I_TranspOrdIsDiscrepant _TranspOrdIsDiscrepant $projection.TranspOrdIsDiscrepant = _TranspOrdIsDiscrepant.TranspOrdIsDiscrepant
[0..1] I_DiscrepancyType _DiscrepancyType $projection.DiscrepancyType = _DiscrepancyType.DiscrepancyType
[0..1] I_TranspOrdIsDscrptWthoutBlk _TranspOrdIsDscrptWthoutBlk $projection.TranspOrdIsDscrptWthoutBlk = _TranspOrdIsDscrptWthoutBlk.TranspOrdIsDscrptWthoutBlk
[0..1] I_TranspExecDscrcySubCat _TranspExecDscrcySubCat $projection.TranspOrdExecDscrcySubCat = _TranspExecDscrcySubCat.TranspOrdExecDscrcySubCat
[0..1] I_TransportationActivity _TransportationActivity $projection.TransportationActivity = _TransportationActivity.TransportationActivity
[0..1] I_TranspOrdEventIsRecalled _TranspOrdEventIsRecalled $projection.TranspOrdEventIsRecalled = _TranspOrdEventIsRecalled.TranspOrdEventIsRecalled
[0..1] I_LocationBasic _LocationAdditional $projection.LocationAdditionalUUID = _LocationAdditional.LocationAdditionalUUID
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_UnitOfMeasure _TranspOrdExecGrossWeightUnit $projection.TranspOrdExecGrossWeightUnit = _TranspOrdExecGrossWeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecGrossVolumeUnit $projection.TranspOrdExecGrossVolumeUnit = _TranspOrdExecGrossVolumeUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecNetWeightUnit $projection.TranspOrdExecNetWeightUnit = _TranspOrdExecNetWeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecQuantityUnit $projection.TranspOrdExecQuantityUnit = _TranspOrdExecQuantityUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecAltvQtyUnit $projection.TranspOrdExecAltvQtyUnit = _TranspOrdExecAltvQtyUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecBaseQtyUnit $projection.TranspOrdExecBaseQtyUnit = _TranspOrdExecBaseQtyUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecTareWeightUnit $projection.TranspOrdExecTareWeightUnit = _TranspOrdExecTareWeightUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecNumberOfCtnsUnit $projection.TranspOrdExecNumberOfCtnsUnit = _TranspOrdExecNumberOfCtnsUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecDngrsGdsExmppUoM $projection.TranspOrdExecDngrsGdsExmppUnit = _TranspOrdExecDngrsGdsExmppUoM.UnitOfMeasure
[0..1] I_UnitOfMeasure _TranspOrdExecLengthUnit $projection.TranspOrdExecLengthUnit = _TranspOrdExecLengthUnit.UnitOfMeasure
[0..1] I_TranspOrdExecInfoSource _TranspOrdExecInfoSource $projection.TranspOrdExecInfoSource = _TranspOrdExecInfoSource.TranspOrdExecInfoSource

Annotations (8)

NameValueLevelField
EndUserText.label Transportation Order: Execution view
ObjectModel.representativeKey TransportationOrderEventUUID view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
Metadata.allowExtensions true view

Fields (86)

KeyFieldSource TableSource FieldDescription
KEY TransportationOrderEventUUID db_key UUID
TransportationOrderUUID UUID
TranspOrdExecution Item
TransportationOrderStopUUID torstopuuid UUID of TO Stop
TransportationOrderItemUUID toritmuuid UUID of TO Item
CreatedByUser created_by Version Created By
CreationDateTime Variant created on
LastChangedByUser changed_by User Name
ChangedDateTime Variant Changed on
TranspOrdEventCode event_code Event
TranspOrdEventStatus event_status Event Status
TransportationActivity trans_activity Transp. Activity
TranspOrdEventIsRecalled Event Recalled
TranspOrdEventReasonCode event_reason_code EvR.Int. Code
TranspOrdEventReasonDesc event_reason Event Reason
TranspOrdExecInfoSource Exec. Info Source
TranspOrdReferenceEventCode ref_event_code Event
TranspOrdEvtActualDateTime ActWDOrderDate
TranspOrdEvtActualDateTimeZone Time Zone
TranspOrdEvtExpdEndDateTime Date/Time
TranspOrdEvtEstimatedDateTime Date/Time
LocationAdditionalUUID Location
LocationUUID
GeographicalLocationLatitude geolat Latitude
GeographicalLocationLongitude geolon Longitude
GeographicalLocationAltitude geoalt Height
TranspOrdHasQtyDiscrepancy qty_discrepancy Quantity Discrepancy
TranspOrdIsDiscrepant discrepancy Discrepancy
DiscrepancyType discr_type Discrepancy Type
TranspOrdIsDscrptWthoutBlk discr_no_block No Block
TranspOrdIsDiscrepantWithinTol discr_inside_tlr Within Tolerance
TranspOrdExecDscrcySubCat dsc_subcat Discr. Subcategory
TranspOrdExecGrossWeight Gross Weight
TranspOrdExecGrossWeightUnit Gr. Wt UoM
TranspOrdExecGrossVolume Gross Volume
TranspOrdExecGrossVolumeUnit Gross Vol. UoM
TranspOrdExecNetWeight Net Weight
TranspOrdExecNetWeightUnit Net Wt UoM
TranspOrdExecQuantity Quantity
TranspOrdExecQuantityUnit Quantity UoM
TranspOrdExecAltvQty Alternative Quantity
TranspOrdExecAltvQtyUnit Alternative Qty UoM
TranspOrdExecBaseQty Base Quantity
TranspOrdExecBaseQtyUnit Base UoM
TranspOrdExecTareWeight Tare Weight
TranspOrdExecTareWeightUnit Tare Weight UoM
TranspOrdExecNumberOfCtns No. of TEUs
TranspOrdExecNumberOfCtnsUnit Number of TEU UoM
TranspOrdExecDngrsGdsExmpp ADR Points
TranspOrdExecDngrsGdsExmppUnit ADR Points UoM
ShippersLoadAndCountQuantity slac_val SLAC
TranspOrdExecLength Text Length
TranspOrdExecWidth Width
TranspOrdExecHeight Height
TranspOrdExecLengthUnit Unit of Measure
TranspOrdExecutionNetDuration Duration
TranspOrdExecRecordingMethod recording_method Used Method
TranspOrdExecPersnRespRecg recording_person Person
TranspOrdExecPartnerFunction Partner Functn
_TransportationOrder _TransportationOrder
_TransportationOrderStop _TransportationOrderStop
_TransportationOrderItem _TransportationOrderItem
_LocationAdditional _LocationAdditional
_TranspOrdEventCode _TranspOrdEventCode
_TranspOrdReferenceEventCode _TranspOrdReferenceEventCode
_TranspOrdEventStatus _TranspOrdEventStatus
_TransportationActivity _TransportationActivity
_TranspOrdEventIsRecalled _TranspOrdEventIsRecalled
_TranspOrdHasQtyDiscrepancy _TranspOrdHasQtyDiscrepancy
_TranspOrdIsDiscrepant _TranspOrdIsDiscrepant
_DiscrepancyType _DiscrepancyType
_TranspOrdIsDscrptWthoutBlk _TranspOrdIsDscrptWthoutBlk
_TranspExecDscrcySubCat _TranspExecDscrcySubCat
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_TranspOrdExecGrossWeightUnit _TranspOrdExecGrossWeightUnit
_TranspOrdExecGrossVolumeUnit _TranspOrdExecGrossVolumeUnit
_TranspOrdExecNetWeightUnit _TranspOrdExecNetWeightUnit
_TranspOrdExecQuantityUnit _TranspOrdExecQuantityUnit
_TranspOrdExecAltvQtyUnit _TranspOrdExecAltvQtyUnit
_TranspOrdExecBaseQtyUnit _TranspOrdExecBaseQtyUnit
_TranspOrdExecTareWeightUnit _TranspOrdExecTareWeightUnit
_TranspOrdExecNumberOfCtnsUnit _TranspOrdExecNumberOfCtnsUnit
_TranspOrdExecDngrsGdsExmppUoM _TranspOrdExecDngrsGdsExmppUoM
_TranspOrdExecLengthUnit _TranspOrdExecLengthUnit
_TranspOrdExecInfoSource _TranspOrdExecInfoSource

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_TranspOrdExecution.
-- 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.

CREATE VIEW I_TranspOrdExecution AS
SELECT
  db_key AS TransportationOrderEventUUID,
  cast(parent_key as /scmtms/vdm_tor_db_key preserving type) AS TransportationOrderUUID,
  cast(execution_id as /scmtms/vdm_execution_id preserving type) AS TranspOrdExecution,
  torstopuuid AS TransportationOrderStopUUID,
  toritmuuid AS TransportationOrderItemUUID,
  created_by AS CreatedByUser,
  cast(created_on as /scmtms/vdm_tm_tstmp_crt preserving type) AS CreationDateTime,
  changed_by AS LastChangedByUser,
  cast(changed_on as /scmtms/vdm_tm_tstmp_cht preserving type) AS ChangedDateTime,
  event_code AS TranspOrdEventCode,
  event_status AS TranspOrdEventStatus,
  trans_activity AS TransportationActivity,
  cast(event_revoked as /scmtms/event_revoked preserving type) AS TranspOrdEventIsRecalled,
  event_reason_code AS TranspOrdEventReasonCode,
  event_reason AS TranspOrdEventReasonDesc,
  cast(execinfo_source as /scmtms/execinfo_source preserving type) AS TranspOrdExecInfoSource,
  ref_event_code AS TranspOrdReferenceEventCode,
  cast(actual_date as /scmtms/vdm_event_actl_dtetme preserving type) AS TranspOrdEvtActualDateTime,
  cast(actual_tzone as /scmtms/vdm_actual_timezone preserving type) AS TranspOrdEvtActualDateTimeZone,
  cast(exp_end_date as /scmtms/vdm_expd_end_datetime preserving type) AS TranspOrdEvtExpdEndDateTime,
  cast(estimated_date as /scmtms/vdm_estimated_datetime preserving type) AS TranspOrdEvtEstimatedDateTime,
  cast (ext_loc_uuid as /scmtms/vdm_location_adtl_uuid preserving type) AS LocationAdditionalUUID,
  cast (_LocationAdditional.LocationUUID as /scmtms/vdm_location_uuid preserving type) AS LocationUUID,
  geolat AS GeographicalLocationLatitude,
  geolon AS GeographicalLocationLongitude,
  geoalt AS GeographicalLocationAltitude,
  qty_discrepancy AS TranspOrdHasQtyDiscrepancy,
  discrepancy AS TranspOrdIsDiscrepant,
  discr_type AS DiscrepancyType,
  discr_no_block AS TranspOrdIsDscrptWthoutBlk,
  discr_inside_tlr AS TranspOrdIsDiscrepantWithinTol,
  dsc_subcat AS TranspOrdExecDscrcySubCat,
  cast(gro_wei_val as /scmtms/vdm_exec_grss_wgt preserving type) AS TranspOrdExecGrossWeight,
  cast(gro_wei_uni as /scmtms/vdm_exec_grss_wgt_unit preserving type) AS TranspOrdExecGrossWeightUnit,
  cast(gro_vol_val as /scmtms/vdm_exec_grss_vol preserving type) AS TranspOrdExecGrossVolume,
  cast(gro_vol_uni as /scmtms/vdm_exec_grss_vol_unit preserving type) AS TranspOrdExecGrossVolumeUnit,
  cast(net_wei_val as /scmtms/vdm_exec_net_wgt preserving type) AS TranspOrdExecNetWeight,
  cast(net_wei_uni as /scmtms/vdm_exec_net_wgt_unit preserving type) AS TranspOrdExecNetWeightUnit,
  cast(qua_pcs_val as /scmtms/vdm_exec_qty preserving type) AS TranspOrdExecQuantity,
  cast(qua_pcs_uni as /scmtms/vdm_exec_qty_unit preserving type) AS TranspOrdExecQuantityUnit,
  cast(qua_pcs2_val as /scmtms/vdm_exec_qty_altv preserving type) AS TranspOrdExecAltvQty,
  cast(qua_pcs2_uni as /scmtms/vdm_exec_qty_altv_unit preserving type) AS TranspOrdExecAltvQtyUnit,
  cast(base_uom_val as /scmtms/vdm_exec_qty_base preserving type) AS TranspOrdExecBaseQty,
  cast(base_uom_uni as /scmtms/vdm_exec_qty_base_unit preserving type) AS TranspOrdExecBaseQtyUnit,
  cast(pkgun_wei_val as /scmtms/vdm_exec_tare_wgt preserving type) AS TranspOrdExecTareWeight,
  cast(pkgun_wei_uni as /scmtms/vdm_exec_tare_wgt_unit preserving type) AS TranspOrdExecTareWeightUnit,
  cast(cont_cnt_val as /scmtms/vdm_exec_ctn_nmbr preserving type) AS TranspOrdExecNumberOfCtns,
  cast(cont_cnt_uni as /scmtms/vdm_exec_ctn_nmbr_unit preserving type) AS TranspOrdExecNumberOfCtnsUnit,
  cast(dg_adr_pts_val as /scmtms/vdm_dngrsgd_exmpp preserving type) AS TranspOrdExecDngrsGdsExmpp,
  cast(dg_adr_pts_uni as /scmtms/vdm_dngrsgd_exmpp_unit preserving type) AS TranspOrdExecDngrsGdsExmppUnit,
  slac_val AS ShippersLoadAndCountQuantity,
  cast(length as /scmtms/vdm_exec_length preserving type) AS TranspOrdExecLength,
  cast(width as /scmtms/vdm_exec_width preserving type) AS TranspOrdExecWidth,
  cast(height as /scmtms/vdm_exec_height preserving type) AS TranspOrdExecHeight,
  cast(measuom as /scmtms/vdm_exec_length_unit preserving type) AS TranspOrdExecLengthUnit,
  cast (net_duration as /scmtms/vdm_net_duration) AS TranspOrdExecutionNetDuration,
  recording_method AS TranspOrdExecRecordingMethod,
  recording_person AS TranspOrdExecPersnRespRecg,
  cast(exec_role_cat as /scmtms/vdm_partner_function preserving type ) AS TranspOrdExecPartnerFunction
FROM /scmtms/d_torexe
LEFT OUTER JOIN I_TransportationOrder AS _TransportationOrder ON TransportationOrderUUID = _TransportationOrder.TransportationOrderUUID  -- association [1..1]
LEFT OUTER JOIN I_TransportationOrderItem AS _TransportationOrderItem ON TransportationOrderItemUUID = _TransportationOrderItem.TransportationOrderItemUUID  -- association [0..1]
LEFT OUTER JOIN I_TransportationOrderStop AS _TransportationOrderStop ON TransportationOrderStopUUID = _TransportationOrderStop.TransportationOrderStopUUID  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdEventCode AS _TranspOrdEventCode ON TranspOrdEventCode = _TranspOrdEventCode.TranspOrdEventCode  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdEventCode AS _TranspOrdReferenceEventCode ON TranspOrdReferenceEventCode = _TranspOrdReferenceEventCode.TranspOrdEventCode  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdEventStatus AS _TranspOrdEventStatus ON TranspOrdEventStatus = _TranspOrdEventStatus.TranspOrdEventStatus  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdHasQtyDiscrepancy AS _TranspOrdHasQtyDiscrepancy ON TranspOrdHasQtyDiscrepancy = _TranspOrdHasQtyDiscrepancy.TranspOrdHasQtyDiscrepancy  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdIsDiscrepant AS _TranspOrdIsDiscrepant ON TranspOrdIsDiscrepant = _TranspOrdIsDiscrepant.TranspOrdIsDiscrepant  -- association [0..1]
LEFT OUTER JOIN I_DiscrepancyType AS _DiscrepancyType ON DiscrepancyType = _DiscrepancyType.DiscrepancyType  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdIsDscrptWthoutBlk AS _TranspOrdIsDscrptWthoutBlk ON TranspOrdIsDscrptWthoutBlk = _TranspOrdIsDscrptWthoutBlk.TranspOrdIsDscrptWthoutBlk  -- association [0..1]
LEFT OUTER JOIN I_TranspExecDscrcySubCat AS _TranspExecDscrcySubCat ON TranspOrdExecDscrcySubCat = _TranspExecDscrcySubCat.TranspOrdExecDscrcySubCat  -- association [0..1]
LEFT OUTER JOIN I_TransportationActivity AS _TransportationActivity ON TransportationActivity = _TransportationActivity.TransportationActivity  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdEventIsRecalled AS _TranspOrdEventIsRecalled ON TranspOrdEventIsRecalled = _TranspOrdEventIsRecalled.TranspOrdEventIsRecalled  -- association [0..1]
LEFT OUTER JOIN I_LocationBasic AS _LocationAdditional ON LocationAdditionalUUID = _LocationAdditional.LocationAdditionalUUID  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecGrossWeightUnit ON TranspOrdExecGrossWeightUnit = _TranspOrdExecGrossWeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecGrossVolumeUnit ON TranspOrdExecGrossVolumeUnit = _TranspOrdExecGrossVolumeUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecNetWeightUnit ON TranspOrdExecNetWeightUnit = _TranspOrdExecNetWeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecQuantityUnit ON TranspOrdExecQuantityUnit = _TranspOrdExecQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecAltvQtyUnit ON TranspOrdExecAltvQtyUnit = _TranspOrdExecAltvQtyUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecBaseQtyUnit ON TranspOrdExecBaseQtyUnit = _TranspOrdExecBaseQtyUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecTareWeightUnit ON TranspOrdExecTareWeightUnit = _TranspOrdExecTareWeightUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecNumberOfCtnsUnit ON TranspOrdExecNumberOfCtnsUnit = _TranspOrdExecNumberOfCtnsUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecDngrsGdsExmppUoM ON TranspOrdExecDngrsGdsExmppUnit = _TranspOrdExecDngrsGdsExmppUoM.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _TranspOrdExecLengthUnit ON TranspOrdExecLengthUnit = _TranspOrdExecLengthUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_TranspOrdExecInfoSource AS _TranspOrdExecInfoSource ON TranspOrdExecInfoSource = _TranspOrdExecInfoSource.TranspOrdExecInfoSource  -- association [0..1]
;