P_GRIRProcHistRespUserChange1

DDL: P_GRIRPROCHISTRESPUSERCHANGE1 SQL: PGRIRHISTRPUSCH1 Type: view CONSUMPTION Package: FINS_FIS_FICO

GR/IR Proc. Hist. resp usr chge w. start

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

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGRIRHISTRPUSCH1 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 usr chge w. start view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistNxtRespPnTmeStmp CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistNxtRespPnTmeStmp PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistNxtRespPnTmeStmp PurchasingDocumentItem Purchasing Doc. Item
LastChangeDateTime
GRIRClrgProcNextChangeDateTime P_GRIRProcHistNxtRespPnTmeStmp GRIRClrgProcNextChangeDateTime Timestamp
GRIRClrgProcessResponsibleUser P_GRIRProcHistNxtRespPnTmeStmp GRIRClrgProcessResponsibleUser Processor
Supplier P_GRIRProcHistNxtRespPnTmeStmp Supplier Supplier
Plant P_GRIRProcHistNxtRespPnTmeStmp Plant Valuation Area
MaterialGroup P_GRIRProcHistNxtRespPnTmeStmp MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistNxtRespPnTmeStmp PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistNxtRespPnTmeStmp 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
GRIRClrgProcessResponsibleUser Processor
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_GRIRProcHistRespUserChange1.
-- 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: PGRIRHISTRPUSCH1

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