P_GRIRProcHistPrioChange1

DDL: P_GRIRPROCHISTPRIOCHANGE1 SQL: PGRIRHISTPRIOCH1 Type: view CONSUMPTION

GR/IR Proc. History prio change w. start

P_GRIRProcHistPrioChange1 is a Consumption CDS View that provides data about "GR/IR Proc. History prio change w. start" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryFirstChge, P_GRIRProcHistNxtPrioTmeStmp) and exposes 23 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, PurchasingDocument, PurchasingDocumentItem.

Data Sources (2)

SourceAliasJoin Type
P_GRIRProcessHistoryFirstChge P_GRIRProcessHistoryFirstChge union
P_GRIRProcHistNxtPrioTmeStmp P_GRIRProcHistNxtPrioTmeStmp from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTPRIOCH1 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 prio change w. start view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistNxtPrioTmeStmp CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistNxtPrioTmeStmp PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistNxtPrioTmeStmp PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime
GRIRClrgProcNextChangeDateTime P_GRIRProcHistNxtPrioTmeStmp GRIRClrgProcNextChangeDateTime Timestamp
GRIRClearingProcessPriority P_GRIRProcHistNxtPrioTmeStmp GRIRClearingProcessPriority Priority
Supplier P_GRIRProcHistNxtPrioTmeStmp Supplier Supplier
Plant P_GRIRProcHistNxtPrioTmeStmp Plant Valuation Area
MaterialGroup P_GRIRProcHistNxtPrioTmeStmp MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistNxtPrioTmeStmp PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistNxtPrioTmeStmp 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
GRIRClearingProcessPriority Priority
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_GRIRProcHistPrioChange1.
-- 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: PGRIRHISTPRIOCH1

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