C_AllocationCycle
Allocation Cycle
C_AllocationCycle is a Consumption CDS View that provides data about "Allocation Cycle" in SAP S/4HANA. It reads from 1 data source (I_AllocationCycle) and exposes 59 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 7 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationCycle | I_AllocationCycle | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_AllocLastExecByUserVH | _LastExecUserContactCard | $projection.AllocationLastExecutedByUser = _LastExecUserContactCard.AllocationLastExecutedByUser |
| [1..1] | C_AllocChangedByUserVH | _LastChangeUserContactCard | $projection.LastChangedByUser = _LastChangeUserContactCard.LastChangedByUser |
| [1..1] | C_AllocCreatedByUserVH | _CreatedByUserContactCard | $projection.CreatedByUser = _CreatedByUserContactCard.CreatedByUser |
| [1..1] | C_AllocationCycleVH | _AllocationCycleVH | $projection.AllocationType = _AllocationCycleVH.AllocationType and $projection.AllocationCycle = _AllocationCycleVH.AllocationCycle and $projection.AllocationCycleStartDate = _AllocationCycleVH.AllocationCycleStartDate |
| [0..*] | C_AllocationCycleKeyFieldTP | _Field | $projection.AllocationType = _Field.AllocationType and $projection.AllocationCycle = _Field.AllocationCycle and $projection.AllocationCycleStartDate = _Field.AllocationCycleStartDate |
| [1..1] | P_AllocationCycle | _CycleCalc | $projection.AllocationType = _CycleCalc.AllocationType and $projection.AllocationCycle = _CycleCalc.AllocationCycle and $projection.AllocationCycleStartDate = _CycleCalc.AllocationCycleStartDate |
| [0..1] | I_AllocationPostingTypeText | _AllocationPostingTypeText | _AllocationPostingTypeText.AllocationPostingType = $projection.AllocationPostingType and _AllocationPostingTypeText.Language = $session.system_language |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | CALLOCCYCLEREAD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Allocation Cycle | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (59)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | AllocationType | Table | |
| KEY | AllocationCycle | AllocationCycle | Cycle | |
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | Valid From | |
| AllocationCycleName | _CycleCalc | AllocationCycleName | Allocation Cycle | |
| AllocationCycleKey | ||||
| AllocationCycleNameText | _CycleCalc | AllocationCycleNameText | Cycle Description | |
| AllocationCycleEndDate | AllocationCycleEndDate | Valid To | ||
| AllocationStatusDescription | ||||
| CriticalityCode | _CycleCalc | CriticalityCode | Criticality | |
| AllocationStatus | _CycleCalc | AllocationStatus | Status | |
| AllocationFrequency | AllocationFrequency | Frequency ID | ||
| AllocationCreateDate | AllocationCreateDate | Entered On | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreatedByUserName | _CreatedByUserContactCard | FullName | Name | |
| LastChangeDate | LastChangeDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangedByUserName | _LastChangeUserContactCard | FullName | Name | |
| AllocationLastExecutedDate | AllocationLastExecutedDate | |||
| AllocationLastExecutedByUser | AllocationLastExecutedByUser | Executed By | ||
| AllocLastExecutedByUserName | _LastExecUserContactCard | FullName | Name | |
| AllocationLastExecutionTime | AllocationLastExecutionTime | Time | ||
| AllocationIsProcessed | AllocationIsProcessed | Processing | ||
| AllocationCycleSet | AllocationCycleSet | Set ID | ||
| ScaleNegativeTracingFactor | ScaleNegativeTracingFactor | Scale Neg. Factors | ||
| AllocationPostingType | AllocationPostingType | Posting Type | ||
| AllocationPostingTypeText | ||||
| AllocationActualPlanVariant | AllocationActualPlanVariant | Actual/Plan | ||
| AllocActualPlanVariantText | _CycleCalc | AllocActualPlanVariantText | ||
| AllocationContextTypeText | _CycleCalc | AllocationContextTypeText | ||
| AllocationIsCumulative | AllocationIsCumulative | Cumulative | ||
| AllocIsCumulativeOptimized | AllocIsCumulativeOptimized | Cumulative Opt. | ||
| AllocHasAggregatedProcess | AllocHasAggregatedProcess | Agg.Trac.Factor | ||
| AllocationCycleRunGroup | AllocationCycleRunGroup | Cycle Run Group | ||
| AllocationSubstitutionName | AllocationSubstitutionName | Substitution | ||
| AllocFundMgmtIsActive | AllocFundMgmtIsActive | Der.Fund/FuncAr | ||
| AllocationIsBalanceSheetActive | AllocationIsBalanceSheetActive | Balance Sheet Accts | ||
| AllocHasDerivdFundFrmRcpnt | AllocHasDerivdFundFrmRcpnt | Derive Funds | ||
| AllocIsDerivdFuncAreaFrmRcpnt | AllocIsDerivdFuncAreaFrmRcpnt | Derive Func.Ar | ||
| AllocIsDerivdGrantFrmRcpnt | AllocIsDerivdGrantFrmRcpnt | Derive Grant | ||
| AllocIsDerivdBudgedPerdRcpnt | AllocIsDerivdBudgedPerdRcpnt | Derive Budg.Per | ||
| AllocationLedgerGroup | AllocationLedgerGroup | Ledger Group | ||
| AllocationIsPeriodShiftActive | AllocationIsPeriodShiftActive | Read Preperiod | ||
| AllocationPeriodDeltaSize | AllocationPeriodDeltaSize | Per. Delta | ||
| AllocIsProdnMnthDerivd | AllocIsProdnMnthDerivd | Production Month | ||
| AllocationIsVariableQuantity | AllocationIsVariableQuantity | Quantities | ||
| AllocationValuationType | AllocationValuationType | Valuation | ||
| CompanyCode | _CycleCalc | CompanyCode | Receiver Company Code | |
| CompanyCodeName | _CycleCalc | CompanyCodeName | Company Name | |
| Ledger | _CycleCalc | Ledger | Ledger | |
| LedgerName | _CycleCalc | LedgerName | Ledger Name | |
| AllocationCycleCategory | _CycleCalc | AllocationCycleCategory | Plan Category | |
| AllocationCycleGroup | ||||
| AllocationCycleSemanticKey | ||||
| ControllingArea | ||||
| _LastExecUserContactCard | _LastExecUserContactCard | |||
| _LastChangeUserContactCard | _LastChangeUserContactCard | |||
| _CreatedByUserContactCard | _CreatedByUserContactCard | |||
| _AllocationStatus | _CycleCalc | _AllocationStatus | ||
| _AllocationCycleVH | _AllocationCycleVH |
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_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: CALLOCCYCLEREAD
CREATE VIEW C_AllocationCycle AS
SELECT
AllocationType,
AllocationCycle,
AllocationCycleStartDate,
_CycleCalc.AllocationCycleName AS AllocationCycleName,
cast(concat( concat(_CycleCalc.AllocationCycleName, '/' ), AllocationCycleStartDate ) as fco_alloc_cycle_sdate) AS AllocationCycleKey,
_CycleCalc.AllocationCycleNameText AS AllocationCycleNameText,
AllocationCycleEndDate,
_CycleCalc._AllocationStatus._Text[1:Language = $session.system_language].AllocationStatusDescription AS AllocationStatusDescription,
_CycleCalc.CriticalityCode AS CriticalityCode,
_CycleCalc.AllocationStatus AS AllocationStatus,
AllocationFrequency,
AllocationCreateDate,
CreatedByUser,
_CreatedByUserContactCard.FullName AS CreatedByUserName,
LastChangeDate,
LastChangedByUser,
_LastChangeUserContactCard.FullName AS LastChangedByUserName,
AllocationLastExecutedDate,
AllocationLastExecutedByUser,
_LastExecUserContactCard.FullName AS AllocLastExecutedByUserName,
AllocationLastExecutionTime,
AllocationIsProcessed,
AllocationCycleSet,
ScaleNegativeTracingFactor,
AllocationPostingType,
cast( _AllocationPostingTypeText.AllocationPostingTypeText as fco_alloc_posting_type_text preserving type ) AS AllocationPostingTypeText,
AllocationActualPlanVariant,
_CycleCalc.AllocActualPlanVariantText AS AllocActualPlanVariantText,
_CycleCalc.AllocationContextTypeText AS AllocationContextTypeText,
AllocationIsCumulative,
AllocIsCumulativeOptimized,
AllocHasAggregatedProcess,
AllocationCycleRunGroup,
AllocationSubstitutionName,
AllocFundMgmtIsActive,
AllocationIsBalanceSheetActive,
AllocHasDerivdFundFrmRcpnt,
AllocIsDerivdFuncAreaFrmRcpnt,
AllocIsDerivdGrantFrmRcpnt,
AllocIsDerivdBudgedPerdRcpnt,
AllocationLedgerGroup,
AllocationIsPeriodShiftActive,
AllocationPeriodDeltaSize,
AllocIsProdnMnthDerivd,
AllocationIsVariableQuantity,
AllocationValuationType,
_CycleCalc.CompanyCode AS CompanyCode,
_CycleCalc.CompanyCodeName AS CompanyCodeName,
_CycleCalc.Ledger AS Ledger,
_CycleCalc.LedgerName AS LedgerName,
_CycleCalc.AllocationCycleCategory AS AllocationCycleCategory,
cast( '' as alloc_cycle_group ) AS AllocationCycleGroup,
cast( concat_with_space( AllocationCycleName, AllocationCycleStartDate, 1) as ke_kscyc_sdate ) AS AllocationCycleSemanticKey,
cast( _Field[1:AllocationFieldName = 'KOKRS'].AllocationFieldMinimumValue as fis_kokrs ) AS ControllingArea,
_CycleCalc._AllocationStatus AS _AllocationStatus
FROM I_AllocationCycle
LEFT OUTER JOIN C_AllocLastExecByUserVH AS _LastExecUserContactCard ON AllocationLastExecutedByUser = _LastExecUserContactCard.AllocationLastExecutedByUser -- association [1..1]
LEFT OUTER JOIN C_AllocChangedByUserVH AS _LastChangeUserContactCard ON LastChangedByUser = _LastChangeUserContactCard.LastChangedByUser -- association [1..1]
LEFT OUTER JOIN C_AllocCreatedByUserVH AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.CreatedByUser -- association [1..1]
LEFT OUTER JOIN C_AllocationCycleVH AS _AllocationCycleVH ON AllocationType = _AllocationCycleVH.AllocationType AND AllocationCycle = _AllocationCycleVH.AllocationCycle AND AllocationCycleStartDate = _AllocationCycleVH.AllocationCycleStartDate -- association [1..1]
LEFT OUTER JOIN C_AllocationCycleKeyFieldTP AS _Field ON AllocationType = _Field.AllocationType AND AllocationCycle = _Field.AllocationCycle AND AllocationCycleStartDate = _Field.AllocationCycleStartDate -- association [0..*]
LEFT OUTER JOIN P_AllocationCycle AS _CycleCalc ON AllocationType = _CycleCalc.AllocationType AND AllocationCycle = _CycleCalc.AllocationCycle AND AllocationCycleStartDate = _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]
;
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