I_AllocationCycle

DDL: I_ALLOCATIONCYCLE SQL: ALLOCCYCLE Type: view BASIC

Allocation Cycle

I_AllocationCycle is a Basic CDS View that provides data about "Allocation Cycle" in SAP S/4HANA. It reads from 2 data sources (P_AllocationCycleChange, t811c) and exposes 43 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_AllocationCycleChange _Change left_outer
t811c t811c from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_AllocActualPlanVariantText _ActualPlanText $projection.AllocationActualPlanVariant = _ActualPlanText.AllocationActualPlanVariant
[0..1] I_AllocationContextType _Context $projection.AllocationType = _Context.AllocationType
[0..1] I_AllocAssmtDistrLongText _Text $projection.AllocationType = _Text.AllocationType and $projection.AllocationCycle = _Text.AllocationCycle and $projection.AllocationCycleStartDate = _Text.AllocationCycleStartDate and _Text.LanguageCode = $session.system_language and _Text.AllocationCycleSegment = '0000'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ALLOCCYCLE 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
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #BASIC view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY AllocationType Totals Table
KEY AllocationCycle cycle Single-Character Flag
KEY AllocationCycleStartDate Valid From
AllocationCycleEndDate To-Date
AllocationStatus rstatus Status
AllocationFrequency freq Frequency ID
AllocationCreateDate crdate Sizing Date
CreatedByUser User
LastChangeDate moddate Modification date
LastChangedByUser Changed By
AllocationLastExecutedDate Executed on
AllocationLastExecutedByUser lexecby Executed By
AllocationLastExecutionTime timeexec Time
AllocationIsProcessed iterflag Processing
AllocationCycleSet cycleset Set ID
ScaleNegativeTracingFactor negtest Scale Neg. Factors
AllocationPostingType Allocation Type
AllocationActualPlanVariant Actual/Plan
AllocationJob job Undefined range (can be used for patch levels)
AllocationIsCumulative kumuflag Cumulative
AllocIsCumulativeOptimized xxkumuflag Cumulative Opt.
AllocHasAggregatedProcess rckumuflag Agg.Trac.Factor
AllocationCycleRunGroup proc_group Cycle Run Group
AllocationSubstitutionName substid Substitution
AllocFundMgmtIsActive fm_derive Der.Fund/FuncAr
AllocationIsBalanceSheetActive gl_xbilk Balance Sheet Accts
AllocHasDerivdFundFrmRcpnt fm_derive_fonds Derive Funds
AllocIsDerivdFuncAreaFrmRcpnt fm_derive_fkber Derive Func.Ar
AllocIsDerivdGrantFrmRcpnt fm_derive_grant Derive Grant
AllocIsDerivdBudgedPerdRcpnt fm_derive_budpd Derive Budg.Per
AllocationLedgerGroup gl_ldgrp Ledger Group
AllocationIsPeriodShiftActive period_lag Read Preperiod
AllocationPeriodDeltaSize period_delta Per. Delta
AllocIsProdnMnthDerivd kalc_prodper Production Month
AllocationIsVariableQuantity variabel Variable Quantity
AllocationValuationType valutyp_alloc Valuation
AllocationCycleName
Ledger
CycleIsDeltaProcessEnabled Delta Processing
LastChangeTime P_AllocationCycleChange LastChangeTime Time changed
_Context _Context
_ActualPlanText _ActualPlanText
_Text _Text

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_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: ALLOCCYCLE

CREATE VIEW I_AllocationCycle AS
SELECT
  cast(tab as fco_allocation_context) AS AllocationType,
  cycle AS AllocationCycle,
  cast(sdate as fco_alloc_valid_from) AS AllocationCycleStartDate,
  cast(edate as fco_alloc_valid_to ) AS AllocationCycleEndDate,
  rstatus AS AllocationStatus,
  freq AS AllocationFrequency,
  crdate AS AllocationCreateDate,
  cast(puser as fco_tag_created_user) AS CreatedByUser,
  moddate AS LastChangeDate,
  cast(moduser as fco_tag_changed_user) AS LastChangedByUser,
  cast(lastexec as fco_alloc_last_execute_data) AS AllocationLastExecutedDate,
  lexecby AS AllocationLastExecutedByUser,
  timeexec AS AllocationLastExecutionTime,
  iterflag AS AllocationIsProcessed,
  cycleset AS AllocationCycleSet,
  negtest AS ScaleNegativeTracingFactor,
  cast(alart as fco_alloc_posting_type) AS AllocationPostingType,
  cast(ipknz as fco_alloc_ipknz ) AS AllocationActualPlanVariant,
  job AS AllocationJob,
  kumuflag AS AllocationIsCumulative,
  xxkumuflag AS AllocIsCumulativeOptimized,
  rckumuflag AS AllocHasAggregatedProcess,
  proc_group AS AllocationCycleRunGroup,
  substid AS AllocationSubstitutionName,
  fm_derive AS AllocFundMgmtIsActive,
  gl_xbilk AS AllocationIsBalanceSheetActive,
  fm_derive_fonds AS AllocHasDerivdFundFrmRcpnt,
  fm_derive_fkber AS AllocIsDerivdFuncAreaFrmRcpnt,
  fm_derive_grant AS AllocIsDerivdGrantFrmRcpnt,
  fm_derive_budpd AS AllocIsDerivdBudgedPerdRcpnt,
  gl_ldgrp AS AllocationLedgerGroup,
  period_lag AS AllocationIsPeriodShiftActive,
  period_delta AS AllocationPeriodDeltaSize,
  kalc_prodper AS AllocIsProdnMnthDerivd,
  variabel AS AllocationIsVariableQuantity,
  valutyp_alloc AS AllocationValuationType,
  cast(substring(cycle, 3, 8) as fco_alloc_cycle) AS AllocationCycleName,
  cast(substring(cycle, 1, 3) as fis_rldnr) AS Ledger,
  cast(enable_delta_process as fco_alloc_delta_process_enable) AS CycleIsDeltaProcessEnabled,
  _Change.LastChangeTime AS LastChangeTime
FROM t811c
LEFT OUTER JOIN P_AllocationCycleChange AS _Change ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_AllocActualPlanVariantText AS _ActualPlanText ON AllocationActualPlanVariant = _ActualPlanText.AllocationActualPlanVariant  -- association [0..*]
LEFT OUTER JOIN I_AllocationContextType AS _Context ON AllocationType = _Context.AllocationType  -- association [0..1]
LEFT OUTER JOIN I_AllocAssmtDistrLongText AS _Text ON AllocationType = _Text.AllocationType AND AllocationCycle = _Text.AllocationCycle AND AllocationCycleStartDate = _Text.AllocationCycleStartDate AND _Text.LanguageCode = $session.system_language AND _Text.AllocationCycleSegment = '0000'  -- association [0..1]
;