P_EAMOverallStatusPrevSequence

DDL: P_EAMOVERALLSTATUSPREVSEQUENCE SQL: PEAMOSTATPVSEQ Type: view COMPOSITE

P_EAMOverallStatusPrevSequence is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_EAMOverallStatus) and exposes 5 fields with key fields EAMOverallStatusProfile, EAMOverallStatus, EAMOverallStatusEntity, EAMOverallStatusSequence.

Data Sources (1)

SourceAliasJoin Type
I_EAMOverallStatus _current from

Annotations (10)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PEAMOSTATPVSEQ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY EAMOverallStatusProfile I_EAMOverallStatus EAMOverallStatusProfile Ovrl Sts Profile
KEY EAMOverallStatus I_EAMOverallStatus EAMOverallStatus Overall Sts
KEY EAMOverallStatusEntity I_EAMOverallStatus EAMOverallStatusEntity Entity
KEY EAMOverallStatusSequence I_EAMOverallStatus EAMOverallStatusSequence Visit Sequence
EAMPrevOverallStatusSequence

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 P_EAMOverallStatusPrevSequence.
-- 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: PEAMOSTATPVSEQ

CREATE VIEW P_EAMOverallStatusPrevSequence AS
SELECT
  _current.EAMOverallStatusProfile AS EAMOverallStatusProfile,
  _current.EAMOverallStatus AS EAMOverallStatus,
  _current.EAMOverallStatusEntity AS EAMOverallStatusEntity,
  _current.EAMOverallStatusSequence AS EAMOverallStatusSequence,
  max( case when _prev.EAMOverallStatusSequence is null then 0 else _prev.EAMOverallStatusSequence end ) AS EAMPrevOverallStatusSequence
FROM I_EAMOverallStatus AS _current
;