P_GRIRProcHistStatusChange3

DDL: P_GRIRPROCHISTSTATUSCHANGE3 SQL: PGRIRHISTSTATCH3 Type: view CONSUMPTION

GR/IR Process History status change

P_GRIRProcHistStatusChange3 is a Consumption CDS View that provides data about "GR/IR Process History status change" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryLastChange, P_GRIRProcHistStatusChange2) and exposes 29 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime, PurchasingDocument.

Data Sources (2)

SourceAliasJoin Type
P_GRIRProcessHistoryLastChange P_GRIRProcessHistoryLastChange union
P_GRIRProcHistStatusChange2 P_GRIRProcHistStatusChange2 from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTSTATCH3 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 status change view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistStatusChange2 CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistStatusChange2 PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistStatusChange2 PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime P_GRIRProcHistStatusChange2 LastChangeDateTime Timestamp
GRIRClearingProcessStatus P_GRIRProcHistStatusChange2 GRIRClearingProcessStatus Status
GRIRClrgProcNextChangeDateTime P_GRIRProcHistStatusChange2 GRIRClrgProcNextChangeDateTime
GRIRClearingProcessNextStatus P_GRIRProcHistStatusChange2 GRIRClearingProcessNextStatus Status
Supplier P_GRIRProcHistStatusChange2 Supplier Supplier
Plant P_GRIRProcHistStatusChange2 Plant Valuation Area
MaterialGroup P_GRIRProcHistStatusChange2 MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistStatusChange2 PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistStatusChange2 PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcHistStatusChange2 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
GRIRClearingProcessStatus P_GRIRProcessHistoryLastChange GRIRClearingProcessStatus Status
GRIRClrgProcNextChangeDateTime 99991231
GRIRClearingProcessNextStatus Status
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_GRIRProcHistStatusChange3.
-- 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: PGRIRHISTSTATCH3

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