P_GRIRPurgDocItemStatus1

DDL: P_GRIRPURGDOCITEMSTATUS1 SQL: PFIGRIRPDOCSTS1 Type: view CONSUMPTION

GR/IR Purchasing Document Item Status

P_GRIRPurgDocItemStatus1 is a Consumption CDS View that provides data about "GR/IR Purchasing Document Item Status" in SAP S/4HANA. It reads from 1 data source (I_GRIRProcess) and exposes 29 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_GRIRProcess I_GRIRProcess from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PFIGRIRPDOCSTS1 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.representativeKey PurchasingDocumentItem view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label GR/IR Purchasing Document Item Status view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_GRIRProcess CompanyCode Receiver Company Code
KEY PurchasingDocument I_GRIRProcess PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_GRIRProcess PurchasingDocumentItem Purchasing Doc. Item
ResponsibleDepartment I_GRIRProcess ResponsibleDepartment Processing Department
ResponsiblePerson I_GRIRProcess ResponsiblePerson Processor
GRIRClearingProcessStatus I_GRIRProcess GRIRClearingProcessStatus Status
GRIRClearingProcessPriority I_GRIRProcess GRIRClearingProcessPriority Priority
GRIRClearingProcessRootCause I_GRIRProcess GRIRClearingProcessRootCause Root Cause
Supplier
SupplierName
PurchasingGroup
PurchasingOrganization
Plant
GlobalCurrency P_GRIRAnalysis GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency P_GRIRAnalysis AmountInGlobalCurrency Amount in Global Currency
AmountInCompanyCodeCurrency P_GRIRAnalysis AmountInCompanyCodeCurrency Local Crcy Amt
BalanceAbsoluteAmtInCoCodeCrcy P_GRIRAnalysis BalanceAbsoluteAmtInCoCodeCrcy
CompanyCodeCurrency P_GRIRAnalysis CompanyCodeCurrency Local Currency
NetAmount
DocumentCurrency
NumberOfPurchaseOrderItems
CreatedByUser
MaterialGroup
_GlobalCurrency P_GRIRAnalysis _GlobalCurrency
_CompanyCode I_GRIRProcess _CompanyCode
_CompanyCodeCurrency P_GRIRAnalysis _CompanyCodeCurrency
_PurchasingDocument I_GRIRProcess _PurchasingDocument
_PurchasingDocumentItem I_GRIRProcess _PurchasingDocumentItem
_GRIRProcessStatus I_GRIRProcess _GRIRProcessStatus

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_GRIRPurgDocItemStatus1.
-- 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: PFIGRIRPDOCSTS1

CREATE VIEW P_GRIRPurgDocItemStatus1 AS
SELECT
  I_GRIRProcess.CompanyCode AS CompanyCode,
  I_GRIRProcess.PurchasingDocument AS PurchasingDocument,
  I_GRIRProcess.PurchasingDocumentItem AS PurchasingDocumentItem,
  I_GRIRProcess.ResponsibleDepartment AS ResponsibleDepartment,
  I_GRIRProcess.ResponsiblePerson AS ResponsiblePerson,
  I_GRIRProcess.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
  I_GRIRProcess.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
  I_GRIRProcess.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  I_GRIRProcess._PurchasingDocument.Supplier AS Supplier,
  I_GRIRProcess._PurchasingDocument._Supplier.SupplierName AS SupplierName,
  I_GRIRProcess._PurchasingDocument.PurchasingGroup AS PurchasingGroup,
  I_GRIRProcess._PurchasingDocument.PurchasingOrganization AS PurchasingOrganization,
  I_GRIRProcess._PurchasingDocumentItem.Plant AS Plant,
  P_GRIRAnalysis.GlobalCurrency AS GlobalCurrency,
  P_GRIRAnalysis.AmountInGlobalCurrency AS AmountInGlobalCurrency,
  P_GRIRAnalysis.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  P_GRIRAnalysis.BalanceAbsoluteAmtInCoCodeCrcy AS BalanceAbsoluteAmtInCoCodeCrcy,
  P_GRIRAnalysis.CompanyCodeCurrency AS CompanyCodeCurrency,
  P_GRIRAnalysis._PurchasingDocumentItem.NetAmount AS NetAmount,
  P_GRIRAnalysis._PurchasingDocumentItem.DocumentCurrency AS DocumentCurrency,
  cast( 1 as fis_grir_no_po_items ) AS NumberOfPurchaseOrderItems,
  P_GRIRAnalysis._PurchasingDocument.CreatedByUser AS CreatedByUser,
  P_GRIRAnalysis._PurchasingDocumentItem.MaterialGroup AS MaterialGroup,
  P_GRIRAnalysis._GlobalCurrency AS _GlobalCurrency,
  I_GRIRProcess._CompanyCode AS _CompanyCode,
  P_GRIRAnalysis._CompanyCodeCurrency AS _CompanyCodeCurrency,
  I_GRIRProcess._PurchasingDocument AS _PurchasingDocument,
  I_GRIRProcess._PurchasingDocumentItem AS _PurchasingDocumentItem,
  I_GRIRProcess._GRIRProcessStatus AS _GRIRProcessStatus
FROM I_GRIRProcess
;