I_AllocationKeyField
Allocation Key Field
I_AllocationKeyField is a Basic CDS View that provides data about "Allocation Key Field" in SAP S/4HANA. It reads from 1 data source (t811k) and exposes 15 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment, AllocationSetType. It has 2 associations to related views. Part of development package ODATA_MANAGE_ALLOCATION.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t811k | t811k | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_AllocationCycle | _Cycle | $projection.AllocationType = _Cycle.AllocationType and $projection.AllocationCycle = _Cycle.AllocationCycle and $projection.AllocationCycleStartDate = _Cycle.AllocationCycleStartDate |
| [1] | I_AllocationSegment | _Segment | $projection.AllocationType = _Segment.AllocationType and $projection.AllocationCycle = _Segment.AllocationCycle and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate and $projection.AllocationCycleSegment = _Segment.AllocationCycleSegment |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ALLOCKEYFIELD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Allocation Key Field | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| VDM.viewType | #BASIC | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | |||
| KEY | AllocationCycle | cycle | ||
| KEY | AllocationCycleStartDate | |||
| KEY | AllocationCycleSegment | seqnr | ||
| KEY | AllocationSetType | setkind | ||
| KEY | AllocDocumentSequenceNumber | pos | ||
| AllocationFieldName | field | |||
| AllocationSetName | setname | |||
| AllocationFieldMinimumValue | valmin | |||
| AllocationFieldMaximumValue | valmax | |||
| AllocationSetId | setid | |||
| AllocKeyFieldIsInitial | ||||
| AllocKeyFieldIsAllValues | ||||
| _Cycle | _Cycle | |||
| _Segment | _Segment |
@AbapCatalog.sqlViewName: 'ALLOCKEYFIELD'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking:#NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Allocation Key Field'
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
@VDM.viewType: #BASIC
define view I_AllocationKeyField
as select from t811k
association [1] to I_AllocationCycle as _Cycle on $projection.AllocationType = _Cycle.AllocationType
and $projection.AllocationCycle = _Cycle.AllocationCycle
and $projection.AllocationCycleStartDate = _Cycle.AllocationCycleStartDate
association [1] to I_AllocationSegment as _Segment on $projection.AllocationType = _Segment.AllocationType
and $projection.AllocationCycle = _Segment.AllocationCycle
and $projection.AllocationCycleStartDate = _Segment.AllocationCycleStartDate
and $projection.AllocationCycleSegment = _Segment.AllocationCycleSegment
{
key cast(tab as fco_allocation_type) as AllocationType,
key cycle as AllocationCycle,
key cast( sdate as fco_alloc_valid_from ) as AllocationCycleStartDate,
key seqnr as AllocationCycleSegment,
key setkind as AllocationSetType,
key pos as AllocDocumentSequenceNumber,
field as AllocationFieldName,
setname as AllocationSetName,
valmin as AllocationFieldMinimumValue,
valmax as AllocationFieldMaximumValue,
setid as AllocationSetId,
cast( case when valmin = '#' then 'X' else '' end as boolean ) as AllocKeyFieldIsInitial,
cast( case when valmin = '*' then 'X' else '' end as boolean ) as AllocKeyFieldIsAllValues,
_Cycle,
_Segment
}
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