P_UniAllocTagCycleAssignment
P_UniAllocTagCycleAssignment is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_AllocationCycle) and exposes 13 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationCycle | _Cycle | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PUNIALLOCYCASGN | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | I_AllocationCycle | AllocationType | |
| KEY | AllocationCycle | I_AllocationCycle | AllocationCycle | |
| KEY | AllocationCycleStartDate | I_AllocationCycle | AllocationCycleStartDate | |
| KEY | AllocationCycleSegment | |||
| AllocationTagID | _AllocTagAssign | AllocationTagID | ||
| AllocationCycleEndDate | AllocationCycleEndDate | |||
| AllocationFrequency | AllocationFrequency | |||
| AllocationCreateDate | I_AllocationCycle | AllocationCreateDate | ||
| CreatedByUser | CreatedByUser | |||
| LastChangeDate | I_AllocationCycle | LastChangeDate | ||
| LastChangedByUser | LastChangedByUser | |||
| AllocationPostingType | ||||
| AllocationActualPlanVariant | AllocationActualPlanVariant |
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.sqlViewName: 'PUNIALLOCYCASGN'
@Metadata.ignorePropagatedAnnotations: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel: {
usageType.serviceQuality: #C,
usageType.sizeCategory: #S,
usageType.dataClass: #MIXED
}
define view P_UniAllocTagCycleAssignment
// with parameters
// P_AllocationTagID :fco_tag_id
as select from I_AllocationCycle as _Cycle
left outer to many join P_AllocTagObjectAssignment as _AllocTagAssign
on _Cycle.AllocationType = _AllocTagAssign.AllocationType
and _Cycle.AllocationCycle = _AllocTagAssign.AllocationCycle
and _Cycle.AllocationCycleStartDate = _AllocTagAssign.AllocationCycleStartDate
and _AllocTagAssign.AllocationCycleSegment = '0000'
{
key _Cycle.AllocationType,
key _Cycle.AllocationCycle,
key _Cycle.AllocationCycleStartDate,
// @UI.hidden: true
key cast( 0000 as fco_segment_name ) as AllocationCycleSegment,
_AllocTagAssign.AllocationTagID,
case
when AllocationTagID is null
then cast (('U') as fco_alloc_tag_assignment)
else
cast (('A') as fco_alloc_tag_assignment)
end as AllocTagAssignmentStatus,
AllocationCycleEndDate,
AllocationFrequency,
_Cycle.AllocationCreateDate, // missing GFN
// @UI.lineItem: [ { type: #AS_CONTACT, label: 'Created By', value: '_CreatedByUserContactCard' } ]
CreatedByUser,
// _CreatedByUserContactCard.FullName as CreatedByUserName,
_Cycle.LastChangeDate,
// @UI.lineItem: [ { type: #AS_CONTACT, label: 'Changed By', value: '_LastChangeUserContactCard', position: 100, importance: #HIGH } ]
LastChangedByUser,
cast(AllocationPostingType as fco_alloc_posting_type preserving type) as AllocationPostingType,
AllocationActualPlanVariant
}
where
_Cycle.AllocationType is not initial
and _Cycle.AllocationCycle is not initial
and _Cycle.AllocationCycleStartDate is not initial
and(
_Cycle.AllocationType = 'ACDOC_CC'
or _Cycle.AllocationType = 'ACDOC_PC'
or _Cycle.AllocationType = 'ACDOC_PA'
)
// and(
// _AllocTagAssign.AllocationTagID = $parameters.P_AllocationTagID
// or _AllocTagAssign.AllocationTagID is null
// )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ALLOCATIONCYCLE",
"P_ALLOCTAGOBJECTASSIGNMENT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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