P_ActyTypeValidLatest

DDL: P_ACTYTYPEVALIDLATEST SQL: PACTYLTST Type: view BASIC Package: ODATA_WHERE_USED_ACTIVITY_TYPE

Cost Center Activity Types With Max End Date

P_ActyTypeValidLatest is a Basic CDS View that provides data about "Cost Center Activity Types With Max End Date" in SAP S/4HANA. It reads from 1 data source (I_CostCenterActivityType) and exposes 3 fields with key fields ControllingArea, CostCtrActivityType. Part of development package ODATA_WHERE_USED_ACTIVITY_TYPE.

Data Sources (1)

SourceAliasJoin Type
I_CostCenterActivityType I_CostCenterActivityType from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PACTYLTST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #BASIC view
EndUserText.label Cost Center Activity Types With Max End Date view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea
KEY CostCtrActivityType CostCtrActivityType
ValidityEndDate
@AbapCatalog.sqlViewName: 'PACTYLTST'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #BASIC
--@EndUserText.label: 'Cost Center Activity Types With Max End Date'
define view P_ActyTypeValidLatest as select from I_CostCenterActivityType {
    //I_CostCenterActivityType 

    key ControllingArea, 
    key CostCtrActivityType, 
    max(ValidityEndDate) as  ValidityEndDate
}

group by ControllingArea, CostCtrActivityType