I_VehSchedgActyHierSource

DDL: I_VEHSCHEDGACTYHIERSOURCE Type: view_entity COMPOSITE

Activity Hierarchy Source

I_VehSchedgActyHierSource is a Composite CDS View that provides data about "Activity Hierarchy Source" in SAP S/4HANA. It reads from 1 data source (I_VehSchedgActivitySolution) and exposes 46 fields with key fields VehSchedgExplanationLogUUID, VehSchedgProblem, VehSchedgSolutionStep, VehSchedgTranspActivity. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_VehSchedgActivitySolution ActivitySolution from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_VehSchedgExplanationLog _ExplanationLog $projection.VehSchedgExplanationLogUUID = _ExplanationLog.VehSchedgExplanationLogUUID
[0..1] I_VehSchedgActyHierSource _ActyHierSource $projection.VehSchedgExplanationLogUUID = _ActyHierSource.VehSchedgExplanationLogUUID and $projection.VehSchedgProblem = _ActyHierSource.VehSchedgProblem and $projection.VehSchedgSolutionStep = _ActyHierSource.VehSchedgSolutionStep and $projection.VehSchedgTranspParentActivity = _ActyHierSource.VehSchedgTranspActivity
[1..1] I_TransportationOrderCategoryT _OrderCatText $projection.TransportationOrderCategory = _OrderCatText.TransportationOrderCategory and _OrderCatText.Language = $session.system_language
[1..1] I_VehSchedgActivityCatText _ActivityCatText $projection.VehSchedgTranspActyCategory = _ActivityCatText.VehSchedgTranspActyCategory and _ActivityCatText.Language = $session.system_language

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Activity Hierarchy Source view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY VehSchedgExplanationLogUUID VehSchedgExplanationLogUUID
KEY VehSchedgProblem VehSchedgProblem
KEY VehSchedgSolutionStep VehSchedgSolutionStep
KEY VehSchedgTranspActivity VehSchedgTranspActivity
VehSchedgObjectColorCode VehSchedgObjectColorCode
VehSchedgTranspActivityUUID VehSchedgTranspActivityUUID
VehSchedgTranspParentActivity VehSchedgTranspParentActivity
VehSchedgTranspActyCategory VehSchedgTranspActyCategory
VehSchedgTranspActyCatDesc _ActivityCatText VehSchedgTranspActyCatDesc
TranspOrdNetDuration TranspOrdNetDuration
FreightOrder FreightOrder Freight Order
TransportationOrderCategory TransportationOrderCategory
TransportationOrderCatDesc _OrderCatText TransportationOrderCatDesc
TranspOrdCapacityTranspOrdUUID TranspOrdCapacityTranspOrdUUID
ResourceID ResourceID Vehicle ID
SourceLocation SourceLocation
DestinationLocation DestinationLocation
AccptblStrtOfActyStrtDteTme AccptblStrtOfActyStrtDteTme
AccptblStrtOfActyEndDteTme AccptblStrtOfActyEndDteTme
AccptblEndOfActyStrtDteTme AccptblEndOfActyStrtDteTme
AccptblEndOfActyEndDteTme AccptblEndOfActyEndDteTme
RequestedActyStrtDteTme RequestedActyStrtDteTme
RequestedActyEndDteTme RequestedActyEndDteTme
EarlyDeliveriesPenaltyCostVal EarlyDeliveriesPenaltyCostVal
LateDeliveriesPenaltyCostVal LateDeliveriesPenaltyCostVal
VehSchedgInternalReference VehSchedgInternalReference
ResourceBreakCalendar ResourceBreakCalendar
HandlingResourceBreakCal HandlingResourceBreakCal
ResourceCapacityCalendar ResourceCapacityCalendar
ResourceConsumptionValue ResourceConsumptionValue
MaximumBreakDuration MaximumBreakDuration
TransportationUnitUUID TransportationUnitUUID
TransportationDriverUUID TransportationDriverUUID
TransportationOrderUUID TransportationOrderUUID
ResourceAdditionalUUID ResourceAdditionalUUID
VehSchedgSolutionStepType VehSchedgSolutionStepType
TranspActyPlanStartDateTime TranspActyPlanStartDateTime
TranspActyPlanEndDateTime TranspActyPlanEndDateTime
VehSchedgActyDurnEndDteTme VehSchedgActyDurnEndDteTme
_ExplanationLog _ExplanationLog
_ActyHierSource _ActyHierSource
HierarchyNode
HierarchyParentNode
HierarchyLevel
HierarchyDrillState
HierarchyTreeSize

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_VehSchedgActyHierSource.
-- 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_VehSchedgActyHierSource AS
SELECT
  VehSchedgExplanationLogUUID,
  VehSchedgProblem,
  VehSchedgSolutionStep,
  VehSchedgTranspActivity,
  VehSchedgObjectColorCode,
  VehSchedgTranspActivityUUID,
  VehSchedgTranspParentActivity,
  VehSchedgTranspActyCategory,
  _ActivityCatText.VehSchedgTranspActyCatDesc AS VehSchedgTranspActyCatDesc,
  TranspOrdNetDuration,
  FreightOrder,
  TransportationOrderCategory,
  _OrderCatText.TransportationOrderCatDesc AS TransportationOrderCatDesc,
  TranspOrdCapacityTranspOrdUUID,
  ResourceID,
  SourceLocation,
  DestinationLocation,
  AccptblStrtOfActyStrtDteTme,
  AccptblStrtOfActyEndDteTme,
  AccptblEndOfActyStrtDteTme,
  AccptblEndOfActyEndDteTme,
  RequestedActyStrtDteTme,
  RequestedActyEndDteTme,
  EarlyDeliveriesPenaltyCostVal,
  LateDeliveriesPenaltyCostVal,
  VehSchedgInternalReference,
  ResourceBreakCalendar,
  HandlingResourceBreakCal,
  ResourceCapacityCalendar,
  ResourceConsumptionValue,
  MaximumBreakDuration,
  TransportationUnitUUID,
  TransportationDriverUUID,
  TransportationOrderUUID,
  ResourceAdditionalUUID,
  VehSchedgSolutionStepType,
  TranspActyPlanStartDateTime,
  TranspActyPlanEndDateTime,
  VehSchedgActyDurnEndDteTme,
  cast( '' as abap.sstring(1333) ) AS HierarchyNode,
  cast( '' as abap.sstring(1333) ) AS HierarchyParentNode,
  cast( 0 as abap.int4 ) AS HierarchyLevel,
  cast( 0 as abap.sstring(20) ) AS HierarchyDrillState,
  cast( 0 as abap.int4 ) AS HierarchyTreeSize
FROM I_VehSchedgActivitySolution AS ActivitySolution
LEFT OUTER JOIN I_VehSchedgExplanationLog AS _ExplanationLog ON VehSchedgExplanationLogUUID = _ExplanationLog.VehSchedgExplanationLogUUID  -- association [1..1]
LEFT OUTER JOIN I_VehSchedgActyHierSource AS _ActyHierSource ON VehSchedgExplanationLogUUID = _ActyHierSource.VehSchedgExplanationLogUUID AND VehSchedgProblem = _ActyHierSource.VehSchedgProblem AND VehSchedgSolutionStep = _ActyHierSource.VehSchedgSolutionStep AND VehSchedgTranspParentActivity = _ActyHierSource.VehSchedgTranspActivity  -- association [0..1]
LEFT OUTER JOIN I_TransportationOrderCategoryT AS _OrderCatText ON TransportationOrderCategory = _OrderCatText.TransportationOrderCategory AND _OrderCatText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN I_VehSchedgActivityCatText AS _ActivityCatText ON VehSchedgTranspActyCategory = _ActivityCatText.VehSchedgTranspActyCategory AND _ActivityCatText.Language = $session.system_language  -- association [1..1]
;