P_AllocationSegmentCalc
P_AllocationSegmentCalc is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_AllocationSegmentTP) and exposes 4 fields with key fields AllocationType, AllocationCycle, AllocationCycleStartDate, AllocationCycleSegment.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_AllocationSegmentTP | I_AllocationSegmentTP | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PALOSEGMENTCALC | 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 (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AllocationType | AllocationType | ||
| KEY | AllocationCycle | AllocationCycle | ||
| KEY | AllocationCycleStartDate | AllocationCycleStartDate | ||
| KEY | AllocationCycleSegment | AllocationCycleSegment |
@AbapCatalog.sqlViewName: 'PALOSEGMENTCALC'
@AbapCatalog.compiler.compareFilter: true
//@EndUserText.label: 'Allocation Segment Calculated Fields'
@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_AllocationSegmentCalc as
//select from I_AllocationSegment
select from I_AllocationSegmentTP
{
//I_AllocationSegment
//key DatabaseTable,
key AllocationType,
key AllocationCycle,
key AllocationCycleStartDate,
key AllocationCycleSegment,
cast(case
when AllocationSegmentIsLocked = 'X'
then 'L'
else
'A'
end as fco_allocation_status) as AllocationStatus,
case when AllocationSegmentIsLocked = 'X'
then 1 //red
else 3 //green
end as CriticalityCode
}
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