P_UnivAllocMigrtdObjHierarchy
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)
| Source | Alias | Join Type |
|---|---|---|
| I_UnivAllocMigrationRunCycle | _MigrationRunCycle | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA