P_GRIRProcHistRespDpmtChange1

DDL: P_GRIRPROCHISTRESPDPMTCHANGE1 SQL: PGRIRHISTRPDPCH1 Type: view CONSUMPTION Package: FINS_FIS_FICO

GR/IR Proc. Hist. Resp Dpt chge w. start

P_GRIRProcHistRespDpmtChange1 is a Consumption CDS View that provides data about "GR/IR Proc. Hist. Resp Dpt chge w. start" in SAP S/4HANA. It reads from 2 data sources (P_GRIRProcessHistoryFirstChge, P_GRIRProcHistNxtRespDtTmeStmp) 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_GRIRProcHistNxtRespDtTmeStmp P_GRIRProcHistNxtRespDtTmeStmp from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTRPDPCH1 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. Resp Dpt chge w. start view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistNxtRespDtTmeStmp CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistNxtRespDtTmeStmp PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistNxtRespDtTmeStmp PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime
GRIRClrgProcNextChangeDateTime P_GRIRProcHistNxtRespDtTmeStmp GRIRClrgProcNextChangeDateTime Timestamp
ResponsibleDepartment P_GRIRProcHistNxtRespDtTmeStmp ResponsibleDepartment Processing Department
Supplier P_GRIRProcHistNxtRespDtTmeStmp Supplier Supplier
Plant P_GRIRProcHistNxtRespDtTmeStmp Plant Valuation Area
MaterialGroup P_GRIRProcHistNxtRespDtTmeStmp MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistNxtRespDtTmeStmp PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistNxtRespDtTmeStmp 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
ResponsibleDepartment Processing Department
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_GRIRProcHistRespDpmtChange1.
-- 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: PGRIRHISTRPDPCH1

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