P_ProdnVersLastChgHistCntr

DDL: P_PRODNVERSLASTCHGHISTCNTR SQL: PPPPRODVERSLCHC Type: view_entity BASIC

P_ProdnVersLastChgHistCntr is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (mkal_aend) and exposes 4 fields with key fields Material, Plant, ProductionVersion.

Data Sources (1)

SourceAliasJoin Type
mkal_aend mkal_aend from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Material matnr Vehicle Model
KEY Plant werks Receiving Plant
KEY ProductionVersion verid Version ID
LastChangeHistoryCounter

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_ProdnVersLastChgHistCntr.
-- 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: PPPPRODVERSLCHC

CREATE VIEW P_ProdnVersLastChgHistCntr AS
SELECT
  matnr AS Material,
  werks AS Plant,
  verid AS ProductionVersion,
  max(zaehl) AS LastChangeHistoryCounter
FROM mkal_aend
;