P_GRIRProcHistoryLastChange1

DDL: P_GRIRPROCHISTORYLASTCHANGE1 SQL: PFIGRIRHISLCHNG1 Type: view CONSUMPTION

P_GRIRProcHistoryLastChange1 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_GRIRProcHistPredecessor) and exposes 4 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
P_GRIRProcHistPredecessor P_GRIRProcHistPredecessor from

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PFIGRIRHISLCHNG1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.representativeKey PurchasingDocumentItem view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime

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_GRIRProcHistoryLastChange1.
-- 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: PFIGRIRHISLCHNG1

CREATE VIEW P_GRIRProcHistoryLastChange1 AS
SELECT
  CompanyCode,
  PurchasingDocument,
  PurchasingDocumentItem,
  max(LastChangeDateTime) AS LastChangeDateTime
FROM P_GRIRProcHistPredecessor
;