P_GRIRProcHistNxtRespDtTmeStmp

DDL: P_GRIRPROCHISTNXTRESPDTTMESTMP SQL: PGRIRHISTNXTREDT Type: view CONSUMPTION Package: FINS_FIS_FICO

GR/IR Proc History w next resp dpmt time

P_GRIRProcHistNxtRespDtTmeStmp is a Consumption CDS View that provides data about "GR/IR Proc History w next resp dpmt time" in SAP S/4HANA. It reads from 1 data source (I_GRIRProcessHistory) and exposes 12 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. It has 1 association to related views. Part of development package FINS_FIS_FICO.

Data Sources (1)

SourceAliasJoin Type
I_GRIRProcessHistory I_GRIRProcessHistory from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_GRIRProcessHistory next $projection.CompanyCode = next.CompanyCode and $projection.PurchasingDocument = next.PurchasingDocument and $projection.PurchasingDocumentItem = next.PurchasingDocumentItem

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTNXTREDT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label GR/IR Proc History w next resp dpmt time view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_GRIRProcessHistory CompanyCode Receiver Company Code
KEY PurchasingDocument I_GRIRProcessHistory PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_GRIRProcessHistory PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime I_GRIRProcessHistory LastChangeDateTime Timestamp
GRIRClrgProcNextChangeDateTime
ResponsibleDepartment I_GRIRProcessHistory ResponsibleDepartment Processing Department
Supplier I_GRIRProcessHistory Supplier Supplier
Plant I_GRIRProcessHistory Plant Valuation Area
MaterialGroup I_GRIRProcessHistory MaterialGroup Product Group
PurchasingGroup I_GRIRProcessHistory PurchasingGroup Purchasing Group
PurchasingOrganization I_GRIRProcessHistory PurchasingOrganization Purchasing Organization
AccountAssignmentCategory I_GRIRProcessHistory AccountAssignmentCategory Acct Assgmt Cat

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_GRIRProcHistNxtRespDtTmeStmp.
-- 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: PGRIRHISTNXTREDT

CREATE VIEW P_GRIRProcHistNxtRespDtTmeStmp AS
SELECT
  I_GRIRProcessHistory.CompanyCode AS CompanyCode,
  I_GRIRProcessHistory.PurchasingDocument AS PurchasingDocument,
  I_GRIRProcessHistory.PurchasingDocumentItem AS PurchasingDocumentItem,
  I_GRIRProcessHistory.LastChangeDateTime AS LastChangeDateTime,
  min(next.LastChangeDateTime) AS GRIRClrgProcNextChangeDateTime,
  I_GRIRProcessHistory.ResponsibleDepartment AS ResponsibleDepartment,
  I_GRIRProcessHistory.Supplier AS Supplier,
  I_GRIRProcessHistory.Plant AS Plant,
  I_GRIRProcessHistory.MaterialGroup AS MaterialGroup,
  I_GRIRProcessHistory.PurchasingGroup AS PurchasingGroup,
  I_GRIRProcessHistory.PurchasingOrganization AS PurchasingOrganization,
  I_GRIRProcessHistory.AccountAssignmentCategory AS AccountAssignmentCategory
FROM I_GRIRProcessHistory
LEFT OUTER JOIN I_GRIRProcessHistory AS next ON CompanyCode = next.CompanyCode AND PurchasingDocument = next.PurchasingDocument AND PurchasingDocumentItem = next.PurchasingDocumentItem  -- association [0..1]
;