P_GRIRProcHistRootCauseChange3

DDL: P_GRIRPROCHISTROOTCAUSECHANGE3 SQL: PGRIRHISTRTCSCH3 Type: view CONSUMPTION Package: FINS_FIS_FICO

GR/IR Process History Root Cause change

P_GRIRProcHistRootCauseChange3 is a Consumption CDS View that provides data about "GR/IR Process History Root Cause change" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryLastChange, P_GRIRProcHistRootCauseChange2) and exposes 29 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime, PurchasingDocument. Part of development package FINS_FIS_FICO.

Data Sources (2)

SourceAliasJoin Type
P_GRIRProcessHistoryLastChange P_GRIRProcessHistoryLastChange union
P_GRIRProcHistRootCauseChange2 P_GRIRProcHistRootCauseChange2 from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTRTCSCH3 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 Process History Root Cause change view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistRootCauseChange2 CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistRootCauseChange2 PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistRootCauseChange2 PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime P_GRIRProcHistRootCauseChange2 LastChangeDateTime Timestamp
GRIRClearingProcessRootCause P_GRIRProcHistRootCauseChange2 GRIRClearingProcessRootCause Root Cause
GRIRClrgProcNextChangeDateTime P_GRIRProcHistRootCauseChange2 GRIRClrgProcNextChangeDateTime
GRIRClearingProcNextRootCause P_GRIRProcHistRootCauseChange2 GRIRClearingProcNextRootCause Root Cause
Supplier P_GRIRProcHistRootCauseChange2 Supplier Supplier
Plant P_GRIRProcHistRootCauseChange2 Plant Valuation Area
MaterialGroup P_GRIRProcHistRootCauseChange2 MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistRootCauseChange2 PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistRootCauseChange2 PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcHistRootCauseChange2 AccountAssignmentCategory Acct Assgmt Cat
NumberOfPurchaseOrderItems
CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcessHistoryLastChange PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcessHistoryLastChange PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime P_GRIRProcessHistoryLastChange LastChangeDateTime Timestamp
GRIRClearingProcessRootCause P_GRIRProcessHistoryLastChange GRIRClearingProcessRootCause Root Cause
GRIRClrgProcNextChangeDateTime 99991231
GRIRClearingProcNextRootCause Root Cause
Supplier P_GRIRProcessHistoryLastChange Supplier Supplier
Plant P_GRIRProcessHistoryLastChange Plant Valuation Area
MaterialGroup P_GRIRProcessHistoryLastChange MaterialGroup Product Group
PurchasingGroup P_GRIRProcessHistoryLastChange PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcessHistoryLastChange PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcessHistoryLastChange AccountAssignmentCategory Acct Assgmt Cat
NumberOfPurchaseOrderItems
GRIRClrgProcThroughputSeconds

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_GRIRProcHistRootCauseChange3.
-- 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: PGRIRHISTRTCSCH3

CREATE VIEW P_GRIRProcHistRootCauseChange3 AS
SELECT
  P_GRIRProcHistRootCauseChange2.CompanyCode AS CompanyCode,
  P_GRIRProcHistRootCauseChange2.PurchasingDocument AS PurchasingDocument,
  P_GRIRProcHistRootCauseChange2.PurchasingDocumentItem AS PurchasingDocumentItem,
  P_GRIRProcHistRootCauseChange2.LastChangeDateTime AS LastChangeDateTime,
  P_GRIRProcHistRootCauseChange2.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  P_GRIRProcHistRootCauseChange2.GRIRClrgProcNextChangeDateTime AS GRIRClrgProcNextChangeDateTime,
  P_GRIRProcHistRootCauseChange2.GRIRClearingProcNextRootCause AS GRIRClearingProcNextRootCause,
  P_GRIRProcHistRootCauseChange2.Supplier AS Supplier,
  P_GRIRProcHistRootCauseChange2.Plant AS Plant,
  P_GRIRProcHistRootCauseChange2.MaterialGroup AS MaterialGroup,
  P_GRIRProcHistRootCauseChange2.PurchasingGroup AS PurchasingGroup,
  P_GRIRProcHistRootCauseChange2.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRProcHistRootCauseChange2.AccountAssignmentCategory AS AccountAssignmentCategory,
  cast( 1 as fis_grir_no_po_items ) AS NumberOfPurchaseOrderItems,
  cast (0 as fis_grir_throughput_time) AS GRIRClrgProcThroughputSeconds
FROM P_GRIRProcHistRootCauseChange2
-- UNION with additional select branch(es): P_GRIRProcessHistoryLastChange
;