P_GRIRPurchasingDocItemDigest1

DDL: P_GRIRPURCHASINGDOCITEMDIGEST1 SQL: PFIGRIRPDOCIDIG1 Type: view CONSUMPTION

GR/IR Purchasing Document Item Digest1

P_GRIRPurchasingDocItemDigest1 is a Consumption CDS View that provides data about "GR/IR Purchasing Document Item Digest1" in SAP S/4HANA. It reads from 2 data sources (P_GRIRAnalysis, P_GRIRAnalysis) and exposes 87 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, FiscalYear.

Data Sources (2)

SourceAliasJoin Type
P_GRIRAnalysis P_GRIRAnalysis from
P_GRIRAnalysis P_GRIRAnalysis union_all

Annotations (11)

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

Fields (87)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRAnalysis CompanyCode Receiver Company Code
KEY FiscalYear P_GRIRAnalysis FiscalYear G/L Fiscal Year
KEY AccountingDocument P_GRIRAnalysis AccountingDocument Journal Entry
KEY LedgerGLLineItem P_GRIRAnalysis LedgerGLLineItem Journal Entry Item
AccountingDocumentItem P_GRIRAnalysis AccountingDocumentItem Posting View Item
PurchasingDocument P_GRIRAnalysis PurchasingDocument Purchasing Document
PurchasingDocumentItem P_GRIRAnalysis PurchasingDocumentItem Purchasing Doc. Item
ResponsibleDepartment
ResponsiblePerson
GRIRClearingProcessStatus
GRIRClearingProcessPriority
GRIRClearingProcessRootCause
LastChangeDate
LastChangeDateTime
ProposedResponsiblePerson
GRIRClrgProcessPrpsdStatus
GRIRClrgProcPrpsdPriority
GRIRClrgProcessPrpsdRootCause
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
BalanceAbsoluteQuantity P_GRIRAnalysis BalanceAbsoluteQuantity
PurgDocOrderQuantityUnit P_GRIRAnalysis PurgDocOrderQuantityUnit Purchasing Document Order Qty Unit
CompanyCodeCurrency P_GRIRAnalysis CompanyCodeCurrency Local Currency
NetAmount
DocumentCurrency
NumberOfPurchaseOrderItems
CreatedByUser
MaterialGroup
LastChangeDays
_GlobalCurrency P_GRIRAnalysis _GlobalCurrency
_CompanyCode P_GRIRAnalysis _CompanyCode
_CompanyCodeCurrency P_GRIRAnalysis _CompanyCodeCurrency
_PurchasingDocument P_GRIRAnalysis _PurchasingDocument
_PurchasingDocumentItem P_GRIRAnalysis _PurchasingDocumentItem
_AccountingDocument P_GRIRAnalysis _AccountingDocument
_FiscalYear P_GRIRAnalysis _FiscalYear
CompanyCode Receiver Company Code
KEY FiscalYear P_GRIRAnalysis FiscalYear G/L Fiscal Year
KEY AccountingDocument P_GRIRAnalysis AccountingDocument Journal Entry
KEY LedgerGLLineItem P_GRIRAnalysis LedgerGLLineItem Journal Entry Item
AccountingDocumentItem P_GRIRAnalysis AccountingDocumentItem Posting View Item
PurchasingDocument P_GRIRAnalysis PurchasingDocument Purchasing Document
PurchasingDocumentItem P_GRIRAnalysis PurchasingDocumentItem Purchasing Doc. Item
ResponsibleDepartment
ResponsiblePerson
GRIRClearingProcessStatus
GRIRClearingProcessPriority
GRIRClearingProcessRootCause
LastChangeDate
LastChangeDateTime
ProposedResponsiblePerson
GRIRClrgProcessPrpsdStatus
GRIRClrgProcPrpsdPriority
GRIRClrgProcessPrpsdRootCause
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
BalanceAbsoluteQuantity P_GRIRAnalysis BalanceAbsoluteQuantity
PurgDocOrderQuantityUnit P_GRIRAnalysis PurgDocOrderQuantityUnit Purchasing Document Order Qty Unit
CompanyCodeCurrency P_GRIRAnalysis CompanyCodeCurrency Local Currency
NetAmount
DocumentCurrency
NumberOfPurchaseOrderItems
CreatedByUser
MaterialGroup
LastChangeDays
_GlobalCurrency P_GRIRAnalysis _GlobalCurrency
_CompanyCode P_GRIRAnalysis _CompanyCode
_CompanyCodeCurrency P_GRIRAnalysis _CompanyCodeCurrency
_PurchasingDocument P_GRIRAnalysis _PurchasingDocument
_PurchasingDocumentItem P_GRIRAnalysis _PurchasingDocumentItem
_AccountingDocument P_GRIRAnalysis _AccountingDocument
_FiscalYear P_GRIRAnalysis _FiscalYear
_GRIRProcess P_GRIRAnalysis _GRIRProcess

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_GRIRPurchasingDocItemDigest1.
-- 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: PFIGRIRPDOCIDIG1

CREATE VIEW P_GRIRPurchasingDocItemDigest1 AS
SELECT
  P_GRIRAnalysis.CompanyCode AS CompanyCode,
  P_GRIRAnalysis.FiscalYear AS FiscalYear,
  P_GRIRAnalysis.AccountingDocument AS AccountingDocument,
  P_GRIRAnalysis.LedgerGLLineItem AS LedgerGLLineItem,
  P_GRIRAnalysis.AccountingDocumentItem AS AccountingDocumentItem,
  P_GRIRAnalysis.PurchasingDocument AS PurchasingDocument,
  P_GRIRAnalysis.PurchasingDocumentItem AS PurchasingDocumentItem,
  P_GRIRAnalysis._GRIRProcess.ResponsibleDepartment AS ResponsibleDepartment,
  P_GRIRAnalysis._GRIRProcess.ResponsiblePerson AS ResponsiblePerson,
  P_GRIRAnalysis._GRIRProcess.GRIRClearingProcessStatus AS GRIRClearingProcessStatus,
  P_GRIRAnalysis._GRIRProcess.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
  P_GRIRAnalysis._GRIRProcess.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  P_GRIRAnalysis._GRIRProcess.LastChangeDate AS LastChangeDate,
  P_GRIRAnalysis._GRIRProcess.LastChangeDateTime AS LastChangeDateTime,
  P_GRIRAnalysis._GRIRProcess.ProposedResponsiblePerson AS ProposedResponsiblePerson,
  P_GRIRAnalysis._GRIRProcess.GRIRClrgProcessPrpsdStatus AS GRIRClrgProcessPrpsdStatus,
  P_GRIRAnalysis._GRIRProcess.GRIRClrgProcPrpsdPriority AS GRIRClrgProcPrpsdPriority,
  P_GRIRAnalysis._GRIRProcess.GRIRClrgProcessPrpsdRootCause AS GRIRClrgProcessPrpsdRootCause,
  P_GRIRAnalysis._PurchasingDocument.Supplier AS Supplier,
  P_GRIRAnalysis._PurchasingDocument._Supplier.SupplierName AS SupplierName,
  P_GRIRAnalysis._PurchasingDocument.PurchasingGroup AS PurchasingGroup,
  P_GRIRAnalysis._PurchasingDocument.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRAnalysis._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.BalanceAbsoluteQuantity AS BalanceAbsoluteQuantity,
  P_GRIRAnalysis.PurgDocOrderQuantityUnit AS PurgDocOrderQuantityUnit,
  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,
  cast( 0 as fis_last_change_days) AS LastChangeDays,
  P_GRIRAnalysis._GlobalCurrency AS _GlobalCurrency,
  P_GRIRAnalysis._CompanyCode AS _CompanyCode,
  P_GRIRAnalysis._CompanyCodeCurrency AS _CompanyCodeCurrency,
  P_GRIRAnalysis._PurchasingDocument AS _PurchasingDocument,
  P_GRIRAnalysis._PurchasingDocumentItem AS _PurchasingDocumentItem,
  P_GRIRAnalysis._AccountingDocument AS _AccountingDocument,
  P_GRIRAnalysis._FiscalYear AS _FiscalYear,
  P_GRIRAnalysis._GRIRProcess AS _GRIRProcess
FROM P_GRIRAnalysis
-- UNION ALL with additional select branch(es): P_GRIRAnalysis
;