P_AllocationCycle

DDL: P_ALLOCATIONCYCLE SQL: PALLOCCYCLE Type: view CONSUMPTION

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)

SourceAliasJoin Type
P_AllocationCycleCalc P_AllocationCycleCalc from

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;