C_TripCostAllocationMMTP

DDL: C_TRIPCOSTALLOCATIONMMTP SQL: CTRPCOSTMMTP Type: view CONSUMPTION

Cost allocation for MM

C_TripCostAllocationMMTP is a Consumption CDS View that provides data about "Cost allocation for MM" in SAP S/4HANA. It reads from 1 data source (I_TripCostAllocationMMTP) and exposes 15 fields with key fields TripDoc, TripDocItem, DemurrageChargeKey, SequenceNumber. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_TripCostAllocationMMTP I_TripCostAllocationMMTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_TripSchedOfChargesTP _TripSchedOfChargesTP $projection.TripDoc = _TripSchedOfChargesTP.TripDoc and $projection.TripDocItem = _TripSchedOfChargesTP.TripDocItem and $projection.DemurrageChargeKey = _TripSchedOfChargesTP.DemurrageChargeKey
[1..1] C_TripHeadTP _TripHeadTP $projection.TripDoc = _TripHeadTP.TripDoc

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CTRPCOSTMMTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.createEnabled false view
ObjectModel.deleteEnabled false view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
AbapCatalog.preserveKey true view
EndUserText.label Cost allocation for MM view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY TripDoc TripDoc Trip ID
KEY TripDocItem TripDocItem Trip Item
KEY DemurrageChargeKey DemurrageChargeKey Charge Key
KEY SequenceNumber SequenceNumber Sort sequence
Asset Asset Asset
NetworkName NetworkName Network
CostCenter CostCenter Cost Center
WBSElement WBSElement WBS Element
OrderID OrderID Order ID
OrderItem OrderItem Order Item
_TripOrderNumberVH _TripOrderNumberVH
_MasterFixedAssetStdVH _MasterFixedAssetStdVH
_CostCenterStdVH _CostCenterStdVH
_TripHeadTP _TripHeadTP
_TripSchedOfChargesTP _TripSchedOfChargesTP

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 C_TripCostAllocationMMTP.
-- 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: CTRPCOSTMMTP

CREATE VIEW C_TripCostAllocationMMTP AS
SELECT
  TripDoc,
  TripDocItem,
  DemurrageChargeKey,
  SequenceNumber,
  Asset,
  NetworkName,
  CostCenter,
  WBSElement,
  OrderID,
  OrderItem
FROM I_TripCostAllocationMMTP
LEFT OUTER JOIN C_TripSchedOfChargesTP AS _TripSchedOfChargesTP ON TripDoc = _TripSchedOfChargesTP.TripDoc AND TripDocItem = _TripSchedOfChargesTP.TripDocItem AND DemurrageChargeKey = _TripSchedOfChargesTP.DemurrageChargeKey  -- association [1..1]
LEFT OUTER JOIN C_TripHeadTP AS _TripHeadTP ON TripDoc = _TripHeadTP.TripDoc  -- association [1..1]
;