P_UnivAllocMigrtdObjHierarchy

DDL: P_UNIVALLOCMIGRTDOBJHIERARCHY Type: view_entity CONSUMPTION Package: ODATA_ALLOC_MIGRATION

Allocation Migrated Objects - Hierarchy

P_UnivAllocMigrtdObjHierarchy is a Consumption CDS View that provides data about "Allocation Migrated Objects - Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_UnivAllocMigrationRunCycle) and exposes 17 fields with key fields AllocationMigrationRunID, TargetAllocationType, TargetAllocationCycle, TargetAllocationCycleStartDate. It has 4 associations to related views. Part of development package ODATA_ALLOC_MIGRATION.

Data Sources (1)

SourceAliasJoin Type
I_UnivAllocMigrationRunCycle _MigrationRunCycle inner

Associations (4)

CardinalityTargetAliasCondition
[1..1] P_AllocationCycle _CycleCalc $projection.TargetAllocationType = _CycleCalc.AllocationType and $projection.TargetAllocationCycle = _CycleCalc.AllocationCycle and $projection.TargetAllocationCycleStartDate = _CycleCalc.AllocationCycleStartDate
[0..1] I_AllocationPostingTypeText _AllocationPostingTypeText _AllocationPostingTypeText.AllocationPostingType = $projection.allocationpostingtype and _AllocationPostingTypeText.Language = $session.system_language
[0..*] I_AllocationSegment _Segment $projection.TargetAllocationType = _Segment.AllocationType and $projection.TargetAllocationCycle = _Segment.AllocationCycle and $projection.TargetAllocationCycleStartDate = _Segment.AllocationCycleStartDate
[0..1] I_UnivAllocationSegmentText _SegmentText _SegmentText.LanguageCode = $session.system_language and _SegmentText.AllocationType = $projection.TargetAllocationType and _SegmentText.AllocationCycle = $projection.TargetAllocationCycle and _SegmentText.AllocationCycleStartDate = $projection.TargetAllocationCycleStartDate and _SegmentText.AllocationCycleSegment = $projection.allocationcyclesegment

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY AllocationMigrationRunID I_UnivAllocMigrationRunCycle AllocationMigrationRunID
KEY TargetAllocationType I_UnivAllocMigrationRunCycle TargetAllocationType
KEY TargetAllocationCycle I_UnivAllocMigrationRunCycle TargetAllocationCycle
KEY TargetAllocationCycleStartDate I_UnivAllocMigrationRunCycle TargetAllocationCycleStartDate
AllocationCycleName _CycleCalc AllocationCycleName Allocation Cycle
CompanyCode _CycleCalc CompanyCode Receiver Company Code
Ledger _CycleCalc Ledger Ledger
AllocationPostingType _CycleCalc AllocationPostingType Posting Type
AllocationActualPlanVariant _CycleCalc AllocationActualPlanVariant Actual/Plan
AllocActualPlanVariantText _CycleCalc AllocActualPlanVariantText
AllocationContextTypeText _CycleCalc AllocationContextTypeText
AllocationCycleSegment _Segment AllocationCycleSegment Segment Number
SegmentName _Segment SegmentName Segment Name
_CycleCalc _CycleCalc
_AllocationPostingTypeText _AllocationPostingTypeText
_Segment _Segment
_SegmentText _SegmentText

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 P_UnivAllocMigrtdObjHierarchy.
-- 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 P_UnivAllocMigrtdObjHierarchy AS
SELECT
  _MigrationRunCycle.AllocationMigrationRunID AS AllocationMigrationRunID,
  _MigrationRunCycle.TargetAllocationType AS TargetAllocationType,
  _MigrationRunCycle.TargetAllocationCycle AS TargetAllocationCycle,
  _MigrationRunCycle.TargetAllocationCycleStartDate AS TargetAllocationCycleStartDate,
  _CycleCalc.AllocationCycleName AS AllocationCycleName,
  _CycleCalc.CompanyCode AS CompanyCode,
  _CycleCalc.Ledger AS Ledger,
  _CycleCalc.AllocationPostingType AS AllocationPostingType,
  _CycleCalc.AllocationActualPlanVariant AS AllocationActualPlanVariant,
  _CycleCalc.AllocActualPlanVariantText AS AllocActualPlanVariantText,
  _CycleCalc.AllocationContextTypeText AS AllocationContextTypeText,
  _Segment.AllocationCycleSegment AS AllocationCycleSegment,
  _Segment.SegmentName AS SegmentName
INNER JOIN I_UnivAllocMigrationRunCycle AS _MigrationRunCycle ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_AllocationCycle AS _CycleCalc ON TargetAllocationType = _CycleCalc.AllocationType AND TargetAllocationCycle = _CycleCalc.AllocationCycle AND TargetAllocationCycleStartDate = _CycleCalc.AllocationCycleStartDate  -- association [1..1]
LEFT OUTER JOIN I_AllocationPostingTypeText AS _AllocationPostingTypeText ON _AllocationPostingTypeText.AllocationPostingType = allocationpostingtype AND _AllocationPostingTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_AllocationSegment AS _Segment ON TargetAllocationType = _Segment.AllocationType AND TargetAllocationCycle = _Segment.AllocationCycle AND TargetAllocationCycleStartDate = _Segment.AllocationCycleStartDate  -- association [0..*]
LEFT OUTER JOIN I_UnivAllocationSegmentText AS _SegmentText ON _SegmentText.LanguageCode = $session.system_language AND _SegmentText.AllocationType = TargetAllocationType AND _SegmentText.AllocationCycle = TargetAllocationCycle AND _SegmentText.AllocationCycleStartDate = TargetAllocationCycleStartDate AND _SegmentText.AllocationCycleSegment = allocationcyclesegment  -- association [0..1]
;