P_AllocationCycle
P_AllocationCycle is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_AllocationCycleCalc) and exposes 26 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AllocationCycleCalc | P_AllocationCycleCalc | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_AllocationCycleKeyFieldTP | _Field | $projection.AllocationType = _Field.AllocationType and $projection.AllocationCycle = _Field.AllocationCycle and $projection.AllocationCycleStartDate = _Field.AllocationCycleStartDate |
| [0..1] | I_AllocAssmtDistrLongText | _Text | _Text.AllocationType = $projection.AllocationType and _Text.AllocationCycle = $projection.AllocationCycle and _Text.AllocationCycleStartDate = $projection.AllocationCycleStartDate and _Text.LanguageCode = $session.system_language and _Text.AllocationCycleSegment = '0000' |
| [1..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [1..1] | I_AllocationStatus | _AllocationStatus | $projection.AllocationStatus = _AllocationStatus.AllocationStatus |
| [0..*] | P_AllocCycleIsConsistentText | _IsConsistentText | _IsConsistentText.AllocationCycleIsConsistent = $projection.AllocationCycleIsConsistent |
| [1..1] | I_Ledger | _Ledger | $projection.Ledger = _Ledger.Ledger |
| [0..1] | C_AllocationCycleRunGroupVH | _AllocationCycleRunGroupVH | $projection.AllocationType = _AllocationCycleRunGroupVH.AllocationType and $projection.Ledger = _AllocationCycleRunGroupVH.Ledger and $projection.AllocationPostingType = _AllocationCycleRunGroupVH.AllocationPostingType and $projection.AllocationActualPlanVariant = _AllocationCycleRunGroupVH.AllocationActualPlanVariant and $projection.AllocationCycleRunGroup = _AllocationCycleRunGroupVH.AllocationCycleRunGroup |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PALLOCCYCLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | AllocationType | Table | |
| KEY | AllocationCycle | AllocationCycle | Cycle | |
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | Valid From | |
| AllocationCycleName | AllocationCycleName | Allocation Cycle | ||
| AllocationCycleNameText | _Text | AllocationCycleNameText | Cycle Description | |
| AllocActualPlanVariantText | ||||
| AllocationContextTypeText | ||||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | _CompanyCode | CompanyCodeName | Company Name | |
| AllocationCostElement | AllocationCostElement | |||
| AllocationCycleCategory | AllocationCycleCategory | Plan Category | ||
| Ledger | Ledger | Ledger | ||
| LedgerName | ||||
| AllocationStatus | AllocationStatus | |||
| CriticalityCode | CriticalityCode | Criticality | ||
| CreatedByUser | CreatedByUser | User Name | ||
| AllocationCycleIsConsistent | AllocationCycleIsConsistent | |||
| AllocCycleIsConsistentText | ||||
| AllocationPostingType | AllocationPostingType | Posting Type | ||
| AllocationActualPlanVariant | AllocationActualPlanVariant | Actual/Plan | ||
| AllocationCycleRunGroup | AllocationCycleRunGroup | Cycle Run Group | ||
| AllocationCycleRunGroupText | _AllocationCycleRunGroupVH | AllocationCycleRunGroupText | ||
| _Field | _Field | |||
| _Text | _Text | |||
| _Context | _Context | |||
| _AllocationStatus | _AllocationStatus |
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_AllocationCycle.
-- 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: PALLOCCYCLE
CREATE VIEW P_AllocationCycle AS
SELECT
AllocationType,
AllocationCycle,
AllocationCycleStartDate,
AllocationCycleName,
_Text.AllocationCycleNameText AS AllocationCycleNameText,
_ActualPlanText[1:Language = $session.system_language].AllocActualPlanVariantText AS AllocActualPlanVariantText,
_Context._Text[1:Language = $session.system_language].AllocationContextTypeText AS AllocationContextTypeText,
CompanyCode,
_CompanyCode.CompanyCodeName AS CompanyCodeName,
AllocationCostElement,
AllocationCycleCategory,
Ledger,
_Ledger._Text[1:Language = $session.system_language].LedgerName AS LedgerName,
AllocationStatus,
CriticalityCode,
CreatedByUser,
AllocationCycleIsConsistent,
_IsConsistentText[1:Language = $session.system_language].AllocCycleIsConsistentText AS AllocCycleIsConsistentText,
AllocationPostingType,
AllocationActualPlanVariant,
AllocationCycleRunGroup,
_AllocationCycleRunGroupVH.AllocationCycleRunGroupText AS AllocationCycleRunGroupText
FROM P_AllocationCycleCalc
LEFT OUTER JOIN C_AllocationCycleKeyFieldTP AS _Field ON AllocationType = _Field.AllocationType AND AllocationCycle = _Field.AllocationCycle AND AllocationCycleStartDate = _Field.AllocationCycleStartDate -- association [0..*]
LEFT OUTER JOIN I_AllocAssmtDistrLongText AS _Text ON _Text.AllocationType = AllocationType AND _Text.AllocationCycle = AllocationCycle AND _Text.AllocationCycleStartDate = AllocationCycleStartDate AND _Text.LanguageCode = $session.system_language AND _Text.AllocationCycleSegment = '0000' -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [1..1]
LEFT OUTER JOIN I_AllocationStatus AS _AllocationStatus ON AllocationStatus = _AllocationStatus.AllocationStatus -- association [1..1]
LEFT OUTER JOIN P_AllocCycleIsConsistentText AS _IsConsistentText ON _IsConsistentText.AllocationCycleIsConsistent = AllocationCycleIsConsistent -- association [0..*]
LEFT OUTER JOIN I_Ledger AS _Ledger ON Ledger = _Ledger.Ledger -- association [1..1]
LEFT OUTER JOIN C_AllocationCycleRunGroupVH AS _AllocationCycleRunGroupVH ON AllocationType = _AllocationCycleRunGroupVH.AllocationType AND Ledger = _AllocationCycleRunGroupVH.Ledger AND AllocationPostingType = _AllocationCycleRunGroupVH.AllocationPostingType AND AllocationActualPlanVariant = _AllocationCycleRunGroupVH.AllocationActualPlanVariant AND AllocationCycleRunGroup = _AllocationCycleRunGroupVH.AllocationCycleRunGroup -- 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