P_GRIRProcHistRootCauseChange1

DDL: P_GRIRPROCHISTROOTCAUSECHANGE1 SQL: PGRIRHISTRTCSCH1 Type: view CONSUMPTION Package: FINS_FIS_FICO

GR/IR Proc. Hist. Root Cse chge w. start

P_GRIRProcHistRootCauseChange1 is a Consumption CDS View that provides data about "GR/IR Proc. Hist. Root Cse chge w. start" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryFirstChge, P_GRIRProcHistNxtRtCseTmeStmp) and exposes 23 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, PurchasingDocument, PurchasingDocumentItem. Part of development package FINS_FIS_FICO.

Data Sources (2)

SourceAliasJoin Type
P_GRIRProcessHistoryFirstChge P_GRIRProcessHistoryFirstChge union
P_GRIRProcHistNxtRtCseTmeStmp P_GRIRProcHistNxtRtCseTmeStmp from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTRTCSCH1 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. Hist. Root Cse chge w. start view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistNxtRtCseTmeStmp CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistNxtRtCseTmeStmp PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistNxtRtCseTmeStmp PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime
GRIRClrgProcNextChangeDateTime P_GRIRProcHistNxtRtCseTmeStmp GRIRClrgProcNextChangeDateTime Timestamp
GRIRClearingProcessRootCause P_GRIRProcHistNxtRtCseTmeStmp GRIRClearingProcessRootCause Root Cause
Supplier P_GRIRProcHistNxtRtCseTmeStmp Supplier Supplier
Plant P_GRIRProcHistNxtRtCseTmeStmp Plant Valuation Area
MaterialGroup P_GRIRProcHistNxtRtCseTmeStmp MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistNxtRtCseTmeStmp PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistNxtRtCseTmeStmp PurchasingOrganization Purchasing Organization
CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcessHistoryFirstChge PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcessHistoryFirstChge PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime 0
GRIRClrgProcNextChangeDateTime P_GRIRProcessHistoryFirstChge LastChangeDateTime Timestamp
GRIRClearingProcessRootCause Root Cause
Supplier P_GRIRProcessHistoryFirstChge Supplier Supplier
Plant P_GRIRProcessHistoryFirstChge Plant Valuation Area
MaterialGroup P_GRIRProcessHistoryFirstChge MaterialGroup Product Group
PurchasingGroup P_GRIRProcessHistoryFirstChge PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcessHistoryFirstChge PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcessHistoryFirstChge 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_GRIRProcHistRootCauseChange1.
-- 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: PGRIRHISTRTCSCH1

CREATE VIEW P_GRIRProcHistRootCauseChange1 AS
SELECT
  P_GRIRProcHistNxtRtCseTmeStmp.CompanyCode AS CompanyCode,
  P_GRIRProcHistNxtRtCseTmeStmp.PurchasingDocument AS PurchasingDocument,
  P_GRIRProcHistNxtRtCseTmeStmp.PurchasingDocumentItem AS PurchasingDocumentItem,
  min (P_GRIRProcHistNxtRtCseTmeStmp.LastChangeDateTime) AS LastChangeDateTime,
  P_GRIRProcHistNxtRtCseTmeStmp.GRIRClrgProcNextChangeDateTime AS GRIRClrgProcNextChangeDateTime,
  P_GRIRProcHistNxtRtCseTmeStmp.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  P_GRIRProcHistNxtRtCseTmeStmp.Supplier AS Supplier,
  P_GRIRProcHistNxtRtCseTmeStmp.Plant AS Plant,
  P_GRIRProcHistNxtRtCseTmeStmp.MaterialGroup AS MaterialGroup,
  P_GRIRProcHistNxtRtCseTmeStmp.PurchasingGroup AS PurchasingGroup,
  P_GRIRProcHistNxtRtCseTmeStmp.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRProcessHistoryFirstChge.AccountAssignmentCategory AS AccountAssignmentCategory
FROM P_GRIRProcHistNxtRtCseTmeStmp
-- UNION with additional select branch(es): P_GRIRProcessHistoryFirstChge
;