P_WhereUsedAllocationContext

DDL: P_WHEREUSEDALLOCATIONCONTEXT Type: view_entity COMPOSITE Package: ODATA_WHERE_USED_COST_CENTERS

Where Used Cost Centers Allocation Context

P_WhereUsedAllocationContext is a Composite CDS View that provides data about "Where Used Cost Centers Allocation Context" in SAP S/4HANA. It reads from 2 data sources (I_AllocationContextType, I_AllocationInformation). Part of development package ODATA_WHERE_USED_COST_CENTERS.

Data Sources (2)

SourceAliasJoin Type
I_AllocationContextType I_AllocationContextType union
I_AllocationInformation I_AllocationInformation from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Consumption.ranked true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #META view
VDM.viewType #COMPOSITE view
VDM.private true view
@AbapCatalog.viewEnhancementCategory: [#NONE]

@AccessControl.authorizationCheck: #NOT_REQUIRED

@Consumption.ranked: true
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #META

@VDM.viewType: #COMPOSITE
@VDM.private: true

define view entity P_WhereUsedAllocationContext
  as select from I_AllocationInformation
{
  key cast( AllocationType as fco_wucc_allocation_context preserving type ) as AllocationType 
}
where
  (
       AllocationFieldName =  'KOSTL'
    or AllocationFieldName =  'RCNTR'
  )
  and(
       SenderFieldGroup    <> ''
    or SenderFieldGroup    <> ''
  )

union select from I_AllocationContextType
{
  key cast( AllocationType as fco_wucc_allocation_context preserving type ) as AllocationType
}