R_UniversalAllocationCycle

DDL: R_UNIVERSALALLOCATIONCYCLE Type: view_entity COMPOSITE

Allocation Cycle

R_UniversalAllocationCycle is a Composite CDS View that provides data about "Allocation Cycle" in SAP S/4HANA. It reads from 1 data source (I_UniversalAllocationCycle) and exposes 63 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 15 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_UniversalAllocationCycle I_UniversalAllocationCycle from

Associations (15)

CardinalityTargetAliasCondition
[0..*] I_AllocationPostingTypeText _AllocationPostingTypeText _AllocationPostingTypeText.AllocationPostingType = $projection.AllocationPostingType
[1] I_UnivAllocCycleCalculation _CycleCalc _CycleCalc.AllocationCycle = $projection.AllocationCycle and _CycleCalc.AllocationType = $projection.AllocationType and _CycleCalc.AllocationCycleStartDate = $projection.AllocationCycleStartDate
[1] I_CycleRunGroup _CycleRunGroup $projection.AllocationType = _CycleRunGroup.AllocationType and $projection.Ledger = _CycleRunGroup.Ledger and $projection.AllocationPostingType = _CycleRunGroup.AllocationPostingType and $projection.AllocationActualPlanVariant = _CycleRunGroup.AllocationActualPlanVariant and $projection.AllocationCycleRunGroup = _CycleRunGroup.AllocationCycleRunGroup
[0..1] I_AllocationContextType _Context $projection.AllocationType = _Context.AllocationType
[0..*] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger
[1..1] I_UserContactCard _CreatedByUser $projection.CreatedByUser = _CreatedByUser.ContactCardID
[1..1] I_UserContactCard _ChangedByUser $projection.LastChangedByUser = _ChangedByUser.ContactCardID
[1..1] I_UserContactCard _LastExecByUser $projection.AllocationLastExecutedByUser = _LastExecByUser.ContactCardID
[1..1] I_AllocationStatus _AllocationStatus $projection.AllocationStatus = _AllocationStatus.AllocationStatus
[1..1] I_AllocActualPlanVariant _ActualPlanVariant $projection.AllocationActualPlanVariant = _ActualPlanVariant.AllocationActualPlanVariant
[1..1] I_UniversalAllocationCycleNote _CycleNote $projection.AllocationCycle = _CycleNote.AllocationCycle and $projection.AllocationType = _CycleNote.AllocationType and $projection.AllocationCycleStartDate = _CycleNote.AllocationCycleStartDate
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_UnivAllocTopDwnDistrTemplate _Template $projection.AllocationType = _Template.AllocationType and $projection.AllocationCycle = _Template.AllocationCycle and $projection.AllocationCycleStartDate = _Template.AllocationCycleStartDate
[0..1] I_UnivAllocTopDwnDistrTmplHdr _TemplateHeader _TemplateHeader.AllocationType = $projection.AllocationType and _TemplateHeader.TopDwnDistrTmplName = $projection.topdwndistrtmplname

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Allocation Cycle view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (63)

KeyFieldSource TableSource FieldDescription
KEY AllocationType Table
KEY AllocationCycle AllocationCycle Cycle
KEY AllocationCycleStartDate Valid From
AllocationCycleName AllocationCycleName Allocation Cycle
Ledger Ledger Ledger
CompanyCode Receiver Company Code
AllocationCycleCategory Plan Category
ControllingArea ControllingArea Controlling Area
OperatingConcern OperatingConcern Operating concern
AllocationCycleEndDate Valid To
AllocationFrequency AllocationFrequency Frequency ID
AllocationCreateDate Entered On
CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
LastChangeTime LastChangeTime Time changed
LastChangedByUser User Name
AllocationLastExecutedDate Executed on
AllocationLastExecutedByUser AllocationLastExecutedByUser Executed By
AllocationLastExecutionTime AllocationLastExecutionTime Time
AllocationCycleSet AllocationCycleSet Set ID
ScaleNegativeTracingFactor ScaleNegativeTracingFactor Scale Neg. Factors
AllocationPostingType Posting Type
AllocationActualPlanVariant Actual/Plan
AllocationJob AllocationJob Undefined range (can be used for patch levels)
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
CycleIsDeltaProcessEnabled Delta Processing
CycleIsParallelLedgerEnabled Flex. Ledger
CycleIsAttributedLineItmEnbld Attributed Line item
AllocationPostingTypeText
AllocationStatus
UnivAllocTopDwnDistrCycleHash _Template UnivAllocTopDwnDistrCycleHash
TopDwnDistrTmplName _Template TopDwnDistrTmplName
_TemplateHeader _TemplateHeader
_AllocationPostingTypeText _AllocationPostingTypeText
_CycleCalc _CycleCalc
_CycleRunGroup _CycleRunGroup
_LedgerText _LedgerText
_CreatedByUser _CreatedByUser
_ChangedByUser _ChangedByUser
_LastExecByUser _LastExecByUser
_AllocationStatus _AllocationStatus
_ActualPlanVariant _ActualPlanVariant
_Template _Template
_CycleNote _CycleNote
_CompanyCode _CompanyCode
_ControllingArea _ControllingArea
_Context _Context

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 R_UniversalAllocationCycle.
-- 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 R_UniversalAllocationCycle AS
SELECT
  cast( AllocationType as fco_ua_type preserving type ) AS AllocationType,
  AllocationCycle,
  cast( AllocationCycleStartDate as fco_alloc_valid_from preserving type ) AS AllocationCycleStartDate,
  AllocationCycleName,
  Ledger,
  cast( CompanyCode as fis_bukrs preserving type ) AS CompanyCode,
  cast( AllocationCycleCategory as fcom_category preserving type ) AS AllocationCycleCategory,
  ControllingArea,
  OperatingConcern,
  cast( AllocationCycleEndDate as fco_alloc_valid_to preserving type ) AS AllocationCycleEndDate,
  AllocationFrequency,
  cast( AllocationCreateDate as fcoua_alloc_created_on preserving type ) AS AllocationCreateDate,
  cast( CreatedByUser as fco_tag_created_user preserving type ) AS CreatedByUser,
  LastChangeDate,
  LastChangeTime,
  cast( LastChangedByUser as fco_tag_changed_user preserving type ) AS LastChangedByUser,
  cast( AllocationLastExecutedDate as fco_alloc_last_execute_data preserving type ) AS AllocationLastExecutedDate,
  AllocationLastExecutedByUser,
  AllocationLastExecutionTime,
  AllocationCycleSet,
  ScaleNegativeTracingFactor,
  cast( AllocationPostingType as fco_alloc_posting_type preserving type ) AS AllocationPostingType,
  cast( AllocationActualPlanVariant as fco_alloc_ipknz preserving type ) AS AllocationActualPlanVariant,
  AllocationJob,
  AllocationIsCumulative,
  AllocIsCumulativeOptimized,
  AllocHasAggregatedProcess,
  AllocationCycleRunGroup,
  AllocationSubstitutionName,
  AllocFundMgmtIsActive,
  AllocationIsBalanceSheetActive,
  AllocHasDerivdFundFrmRcpnt,
  AllocIsDerivdFuncAreaFrmRcpnt,
  AllocIsDerivdGrantFrmRcpnt,
  AllocIsDerivdBudgedPerdRcpnt,
  AllocationLedgerGroup,
  AllocationIsPeriodShiftActive,
  AllocationPeriodDeltaSize,
  AllocIsProdnMnthDerivd,
  AllocationIsVariableQuantity,
  AllocationValuationType,
  cast( CycleIsDeltaProcessEnabled as fco_alloc_delta_process_enable preserving type ) AS CycleIsDeltaProcessEnabled,
  cast( CycleIsParallelLedgerEnabled as fco_alloc_parallel_ledger preserving type ) AS CycleIsParallelLedgerEnabled,
  cast( CycleIsAttributedLineItmEnbld as fco_alloc_enbl_attr_line_items preserving type ) AS CycleIsAttributedLineItmEnbld,
  cast( '' as fco_alloc_posting_type_text ) AS AllocationPostingTypeText,
  cast( _CycleCalc.AllocationStatus as fcoua_allocation_status preserving type ) AS AllocationStatus,
  _Template.UnivAllocTopDwnDistrCycleHash AS UnivAllocTopDwnDistrCycleHash,
  _Template.TopDwnDistrTmplName AS TopDwnDistrTmplName
FROM I_UniversalAllocationCycle
LEFT OUTER JOIN I_AllocationPostingTypeText AS _AllocationPostingTypeText ON _AllocationPostingTypeText.AllocationPostingType = AllocationPostingType  -- association [0..*]
LEFT OUTER JOIN I_UnivAllocCycleCalculation AS _CycleCalc ON _CycleCalc.AllocationCycle = AllocationCycle AND _CycleCalc.AllocationType = AllocationType AND _CycleCalc.AllocationCycleStartDate = AllocationCycleStartDate  -- association [1]
LEFT OUTER JOIN I_CycleRunGroup AS _CycleRunGroup ON AllocationType = _CycleRunGroup.AllocationType AND Ledger = _CycleRunGroup.Ledger AND AllocationPostingType = _CycleRunGroup.AllocationPostingType AND AllocationActualPlanVariant = _CycleRunGroup.AllocationActualPlanVariant AND AllocationCycleRunGroup = _CycleRunGroup.AllocationCycleRunGroup  -- association [1]
LEFT OUTER JOIN I_AllocationContextType AS _Context ON AllocationType = _Context.AllocationType  -- association [0..1]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger  -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUser ON CreatedByUser = _CreatedByUser.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _ChangedByUser ON LastChangedByUser = _ChangedByUser.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_UserContactCard AS _LastExecByUser ON AllocationLastExecutedByUser = _LastExecByUser.ContactCardID  -- association [1..1]
LEFT OUTER JOIN I_AllocationStatus AS _AllocationStatus ON AllocationStatus = _AllocationStatus.AllocationStatus  -- association [1..1]
LEFT OUTER JOIN I_AllocActualPlanVariant AS _ActualPlanVariant ON AllocationActualPlanVariant = _ActualPlanVariant.AllocationActualPlanVariant  -- association [1..1]
LEFT OUTER JOIN I_UniversalAllocationCycleNote AS _CycleNote ON AllocationCycle = _CycleNote.AllocationCycle AND AllocationType = _CycleNote.AllocationType AND AllocationCycleStartDate = _CycleNote.AllocationCycleStartDate  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_UnivAllocTopDwnDistrTemplate AS _Template ON AllocationType = _Template.AllocationType AND AllocationCycle = _Template.AllocationCycle AND AllocationCycleStartDate = _Template.AllocationCycleStartDate  -- association [0..1]
LEFT OUTER JOIN I_UnivAllocTopDwnDistrTmplHdr AS _TemplateHeader ON _TemplateHeader.AllocationType = AllocationType AND _TemplateHeader.TopDwnDistrTmplName = topdwndistrtmplname  -- association [0..1]
;