I_StatKeyFigCostAllocCyc

DDL: I_STATKEYFIGCOSTALLOCCYC SQL: IWUSKFCAC Type: view BASIC

Cost Allocation Cycles

I_StatKeyFigCostAllocCyc is a Basic CDS View that provides data about "Cost Allocation Cycles" in SAP S/4HANA. It reads from 1 data source (I_StatisticalKeyFigure) and exposes 21 fields with key fields StatisticalKeyFigure, AllocationCycle, ControllingArea. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_StatisticalKeyFigure I_StatisticalKeyFigure inner

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_StatisticalKeyFigure _StatisticalKeyFigure $projection.StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure and $projection.ControllingArea = _StatisticalKeyFigure.ControllingArea
[0..1] I_AllocationKeyField _PlanningCategory _PlanningCategory.AllocationType = $projection.allocationtype and _PlanningCategory.AllocationCycle = $projection.allocationcycle and _PlanningCategory.AllocationCycleStartDate = $projection.allocationcyclestartdate and _PlanningCategory.AllocationCycleSegment = '0000' and _PlanningCategory.AllocationSetType = '0' and _PlanningCategory.AllocationFieldName = 'CATEGORY'
[0..1] I_StatKeyFigWhereUsedAllocType _AllocationPostingType _AllocationPostingType.AllocationPostingType = $projection.allocationpostingtype and _AllocationPostingType.AllocationPostingTypeContext = $projection.AllocationPostingTypeContext
[0..1] I_AllocationContextTypeText _AllocationContextTypeText _AllocationContextTypeText.AllocationType = $projection.allocationtype and _AllocationContextTypeText.Language = $session.system_language
[0..1] I_AllocationStateText _AllocationStatusText _AllocationStatusText.AllocationStatus = $projection.allocationstatus

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IWUSKFCAC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Cost Allocation Cycles view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY StatisticalKeyFigure From Value
KEY AllocationCycle _Cycle AllocationCycle Cycle
KEY ControllingArea ControllingArea Controlling Area
AllocationCycleNameText
AllocationCycleStartDate _Cycle AllocationCycleStartDate Valid From
AllocationCycleEndDate _Cycle AllocationCycleEndDate Valid To
LastChangeDate _Cycle LastChangeDate Time Stamp
LastChangedByUser _Cycle LastChangedByUser User Name
AllocationLastExecutedDate _Cycle AllocationLastExecutedDate
AllocationLastExecutedByUser _Cycle AllocationLastExecutedByUser
AllocationType _Cycle AllocationType Table
AllocationStatus _Cycle AllocationStatus
AllocationActualPlanVariant _Cycle AllocationActualPlanVariant Actual/Plan
AllocActualPlanVariantText
AllocationPostingType _Cycle AllocationPostingType Posting Type
_StatisticalKeyFigure _StatisticalKeyFigure
_PlanningCategory _PlanningCategory
_AllocationPostingType _AllocationPostingType
_AllocationContextTypeText _AllocationContextTypeText
_AllocationStatusText _AllocationStatusText
LedgerelseendasLedger

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_StatKeyFigCostAllocCyc.
-- 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: IWUSKFCAC

CREATE VIEW I_StatKeyFigCostAllocCyc AS
SELECT
  cast (AllocationFieldMinimumValue as fis_stagr) AS StatisticalKeyFigure,
  _Cycle.AllocationCycle AS AllocationCycle,
  ControllingArea,
  _Cycle._Text[1: LanguageCode = $session.system_language ].AllocationCycleNameText AS AllocationCycleNameText,
  _Cycle.AllocationCycleStartDate AS AllocationCycleStartDate,
  _Cycle.AllocationCycleEndDate AS AllocationCycleEndDate,
  _Cycle.LastChangeDate AS LastChangeDate,
  _Cycle.LastChangedByUser AS LastChangedByUser,
  _Cycle.AllocationLastExecutedDate AS AllocationLastExecutedDate,
  _Cycle.AllocationLastExecutedByUser AS AllocationLastExecutedByUser,
  _Cycle.AllocationType AS AllocationType,
  _Cycle.AllocationStatus AS AllocationStatus,
  _Cycle.AllocationActualPlanVariant AS AllocationActualPlanVariant,
  _Cycle._ActualPlanText[1: Language = $session.system_language ].AllocActualPlanVariantText AS AllocActualPlanVariantText,
  _Cycle.AllocationPostingType AS AllocationPostingType,
  case left(_Cycle.AllocationType, 5) when 'ACDOC' then _Cycle.Ledger else '' end as Ledger AS LedgerelseendasLedger
INNER JOIN I_StatisticalKeyFigure ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatisticalKeyFigure AS _StatisticalKeyFigure ON StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure AND ControllingArea = _StatisticalKeyFigure.ControllingArea  -- association [1..1]
LEFT OUTER JOIN I_AllocationKeyField AS _PlanningCategory ON _PlanningCategory.AllocationType = allocationtype AND _PlanningCategory.AllocationCycle = allocationcycle AND _PlanningCategory.AllocationCycleStartDate = allocationcyclestartdate AND _PlanningCategory.AllocationCycleSegment = '0000' AND _PlanningCategory.AllocationSetType = '0' AND _PlanningCategory.AllocationFieldName = 'CATEGORY'  -- association [0..1]
LEFT OUTER JOIN I_StatKeyFigWhereUsedAllocType AS _AllocationPostingType ON _AllocationPostingType.AllocationPostingType = allocationpostingtype AND _AllocationPostingType.AllocationPostingTypeContext = AllocationPostingTypeContext  -- association [0..1]
LEFT OUTER JOIN I_AllocationContextTypeText AS _AllocationContextTypeText ON _AllocationContextTypeText.AllocationType = allocationtype AND _AllocationContextTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_AllocationStateText AS _AllocationStatusText ON _AllocationStatusText.AllocationStatus = allocationstatus  -- association [0..1]
;