I_ActyTypeCurOrLtstEndDteFltr

DDL: I_ACTYTYPECURORLTSTENDDTEFLTR SQL: IATCOLEDF Type: view BASIC Package: ODATA_WHERE_USED_ACTIVITY_TYPE

Filter End Date matching current Date or Max. End Date.

I_ActyTypeCurOrLtstEndDteFltr is a Basic CDS View that provides data about "Filter End Date matching current Date or Max. End Date." in SAP S/4HANA. It reads from 2 data sources (P_ActyTypeValidCurrent, P_ActyTypeValidLatest) and exposes 3 fields. Part of development package ODATA_WHERE_USED_ACTIVITY_TYPE.

Data Sources (2)

SourceAliasJoin Type
P_ActyTypeValidCurrent _ActyTypeValidCurrent left_outer
P_ActyTypeValidLatest _ActyTypeValidLatest from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IATCOLEDF view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Filter End Date matching current Date or Max. End Date. view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (3)

KeyFieldSource TableSource FieldDescription
ControllingArea P_ActyTypeValidLatest ControllingArea Controlling Area
CostCtrActivityType P_ActyTypeValidLatest CostCtrActivityType Activity Type
ValidityEndDateendasValidityEndDate

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_ActyTypeCurOrLtstEndDteFltr.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IATCOLEDF

CREATE VIEW I_ActyTypeCurOrLtstEndDteFltr AS
SELECT
  _ActyTypeValidLatest.ControllingArea AS ControllingArea,
  _ActyTypeValidLatest.CostCtrActivityType AS CostCtrActivityType,
  case when _ActyTypeValidCurrent.ValidityEndDate <> '00000000' then _ActyTypeValidCurrent.ValidityEndDate else _ActyTypeValidLatest.ValidityEndDate end as ValidityEndDate AS ValidityEndDateendasValidityEndDate
FROM P_ActyTypeValidLatest AS _ActyTypeValidLatest
LEFT OUTER JOIN P_ActyTypeValidCurrent AS _ActyTypeValidCurrent ON /* join condition not captured in parsed metadata */
;