P_MaintObjStatusLatestChg

DDL: P_MAINTOBJSTATUSLATESTCHG Type: view COMPOSITE

P_MaintObjStatusLatestChg is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StatusObjectStatusChange_2) and exposes 4 fields with key fields StatusObject, StatusCode.

Data Sources (1)

SourceAliasJoin Type
I_StatusObjectStatusChange_2 I_StatusObjectStatusChange_2 from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMNTOBJSTLASTCHG view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY StatusObject StatusObject Status Object
KEY StatusCode StatusCode Statuscode
StatusIsInactive StatusIsInactive TRUE
StatusObjectStatusChangeNumber

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_MaintObjStatusLatestChg.
-- 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.

CREATE VIEW P_MaintObjStatusLatestChg AS
SELECT
  StatusObject,
  StatusCode,
  StatusIsInactive,
  max(StatusObjectStatusChangeNumber) AS StatusObjectStatusChangeNumber
FROM I_StatusObjectStatusChange_2
;