P_AllocationCycle
Allocation Cycle
P_AllocationCycle is a Consumption CDS View that provides data about "Allocation Cycle" in SAP S/4HANA. It reads from 1 data source (P_AllocationCycleCalc) and exposes 27 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate. It has 7 associations to related views. Part of development package ODATA_MANAGE_ALLOCATION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AllocationCycleCalc | P_AllocationCycleCalc | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | AllocationType | ||
| KEY | AllocationCycle | AllocationCycle | ||
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | ||
| AllocationCycleName | AllocationCycleName | |||
| AllocationCycleNameText | _Text | AllocationCycleNameText | ||
| AllocActualPlanVariantText | ||||
| AllocationContextTypeText | ||||
| CompanyCode | CompanyCode | |||
| CompanyCodeName | _CompanyCode | CompanyCodeName | ||
| ControllingArea | ControllingArea | |||
| AllocationCostElement | AllocationCostElement | |||
| AllocationCycleCategory | AllocationCycleCategory | |||
| Ledger | Ledger | |||
| LedgerName | ||||
| AllocationStatus | AllocationStatus | |||
| CriticalityCode | CriticalityCode | |||
| CreatedByUser | CreatedByUser | |||
| AllocationCycleIsConsistent | AllocationCycleIsConsistent | |||
| AllocCycleIsConsistentText | ||||
| AllocationPostingType | AllocationPostingType | |||
| AllocationActualPlanVariant | AllocationActualPlanVariant | |||
| AllocationCycleRunGroup | AllocationCycleRunGroup | |||
| AllocationCycleRunGroupText | _AllocationCycleRunGroupVH | AllocationCycleRunGroupText | ||
| _Field | _Field | |||
| _Text | _Text | |||
| _Context | _Context | |||
| _AllocationStatus | _AllocationStatus |
@AbapCatalog.sqlViewName: 'PALLOCCYCLE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view P_AllocationCycle
//as select from I_AllocationCycle
as select from P_AllocationCycleCalc
association [0..*] to C_AllocationCycleKeyFieldTP as _Field on $projection.AllocationType = _Field.AllocationType
and $projection.AllocationCycle = _Field.AllocationCycle
and $projection.AllocationCycleStartDate = _Field.AllocationCycleStartDate
association [0..1] to I_AllocAssmtDistrLongText as _Text on _Text.AllocationType = $projection.AllocationType
and _Text.AllocationCycle = $projection.AllocationCycle
and _Text.AllocationCycleStartDate = $projection.AllocationCycleStartDate
and _Text.LanguageCode = $session.system_language
and _Text.AllocationCycleSegment = '0000'
// association [0..1] to P_AllocationStatus as _Status on $projection.AllocationType = _Status.AllocationType
// and $projection.AllocationCycle = _Status.AllocationCycle
// and $projection.AllocationCycleStartDate = _Status.AllocationCycleStartDate
association [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [1..1] to I_AllocationStatus as _AllocationStatus on $projection.AllocationStatus = _AllocationStatus.AllocationStatus
association [0..*] to P_AllocCycleIsConsistentText as _IsConsistentText on _IsConsistentText.AllocationCycleIsConsistent = $projection.AllocationCycleIsConsistent
association [1..1] to I_Ledger as _Ledger on $projection.Ledger = _Ledger.Ledger
association [0..1] to C_AllocationCycleRunGroupVH as _AllocationCycleRunGroupVH on $projection.AllocationType = _AllocationCycleRunGroupVH.AllocationType
and $projection.Ledger = _AllocationCycleRunGroupVH.Ledger
and $projection.AllocationPostingType = _AllocationCycleRunGroupVH.AllocationPostingType
and $projection.AllocationActualPlanVariant = _AllocationCycleRunGroupVH.AllocationActualPlanVariant
and $projection.AllocationCycleRunGroup = _AllocationCycleRunGroupVH.AllocationCycleRunGroup
{
//key DatabaseTable,
key AllocationType,
key AllocationCycle,
key AllocationCycleStartDate,
//cast(substring(AllocationCycle, 3, 8) as fco_alloc_cycle_id) as AllocationCycleName,
@ObjectModel.readOnly: true
AllocationCycleName,
@ObjectModel.readOnly: true
_Text.AllocationCycleNameText,
@ObjectModel.readOnly: true
_ActualPlanText[1:Language = $session.system_language].AllocActualPlanVariantText,
@ObjectModel.readOnly: true
_Context._Text[1:Language = $session.system_language].AllocationContextTypeText,
CompanyCode,
_CompanyCode.CompanyCodeName,
ControllingArea,
AllocationCostElement,
AllocationCycleCategory,
Ledger,
_Ledger._Text[1:Language = $session.system_language].LedgerName,
@ObjectModel.readOnly: true
AllocationStatus,
@ObjectModel.readOnly: true
CriticalityCode,
CreatedByUser,
@ObjectModel.readOnly: true
AllocationCycleIsConsistent,
@UI.hidden: true
_IsConsistentText[1:Language = $session.system_language].AllocCycleIsConsistentText,
AllocationPostingType,
AllocationActualPlanVariant,
//AllocLastExecutionDateTime,
AllocationCycleRunGroup,
_AllocationCycleRunGroupVH.AllocationCycleRunGroupText,
_Field,
//@ObjectModel.association.type: #TO_COMPOSITION_CHILD
_Text,
_Context,
_AllocationStatus
// _LastExecUserContactCard,
// _LastChangeUserContactCard,
// _CreatedByUserContactCard
}
//where
// DatabaseTable = 'ACDOC_CC'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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