C_GRIRPurgDocItemDigest

DDL: C_GRIRPURGDOCITEMDIGEST Type: view_entity CONSUMPTION Package: FINS_FIS_FICO_APPS

GR/IR Purchasing Document Item Digest

C_GRIRPurgDocItemDigest is a Consumption CDS View that provides data about "GR/IR Purchasing Document Item Digest" in SAP S/4HANA. It reads from 1 data source (P_GRIRPurchasingDocItemDigest2) and exposes 51 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem. It has 10 associations to related views. It is exposed through 1 OData service (ASQL_F3303). Part of development package FINS_FIS_FICO_APPS.

Data Sources (1)

SourceAliasJoin Type
P_GRIRPurchasingDocItemDigest2 P_GRIRPurchasingDocItemDigest2 from

Associations (10)

CardinalityTargetAliasCondition
[0..1] I_UserContactCard _CreatedByUser $projection.CreatedByUser = _CreatedByUser.ContactCardID
[0..1] I_UserContactCard _ResponsiblePerson $projection.ResponsiblePerson = _ResponsiblePerson.ContactCardID
[0..1] I_UserContactCard _ProposedResponsiblePerson $projection.ProposedResponsiblePerson = _ProposedResponsiblePerson.ContactCardID
[0..*] I_GRIRProcessStatusText _GRIRProcessStatusText $projection.GRIRClearingProcessStatus = _GRIRProcessStatusText.GRIRClearingProcessStatus
[0..*] I_GRIRProcessStatusText _GRIRClrgProcPrpsdStatusText $projection.GRIRClrgProcessPrpsdStatus = _GRIRClrgProcPrpsdStatusText.GRIRClearingProcessStatus
[0..*] I_GRIRProcessPriorityText _GRIRProcessPriorityText $projection.GRIRClearingProcessPriority = _GRIRProcessPriorityText.GRIRClearingProcessPriority
[0..*] I_GRIRProcessPriorityText _GRIRClrgProcPrpsdPriorityText $projection.GRIRClrgProcPrpsdPriority = _GRIRClrgProcPrpsdPriorityText.GRIRClearingProcessPriority
[0..*] I_GRIRProcessRootCauseText _GRIRProcessRootCauseText $projection.GRIRClearingProcessRootCause = _GRIRProcessRootCauseText.GRIRClearingProcessRootCause
[0..*] I_GRIRProcessRootCauseText _GRIRProcessPrpsdRootCauseText $projection.GRIRClrgProcessPrpsdRootCause = _GRIRProcessPrpsdRootCauseText.GRIRClearingProcessRootCause
[0..*] I_MaterialGroupText _MaterialGroupText $projection.MaterialGroup = _MaterialGroupText.MaterialGroup

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label GR/IR Purchasing Document Item Digest view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey PurchasingDocumentItem view
Analytics.technicalName CFIGRIRPDOCIDIG view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3303 ASQL_F3303 C2 NOT_RELEASED

Fields (51)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRPurchasingDocItemDigest2 CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRPurchasingDocItemDigest2 PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRPurchasingDocItemDigest2 PurchasingDocumentItem Purchasing Doc. Item
GlobalCurrency P_GRIRPurchasingDocItemDigest2 GlobalCurrency GM Billing Element: Global Currency
AmountInGlobalCurrency
CompanyCodeCurrency P_GRIRPurchasingDocItemDigest2 CompanyCodeCurrency Local Currency
AmountInCompanyCodeCurrency
BalanceAbsoluteAmtInCoCodeCrcy
DocumentCurrency P_GRIRPurchasingDocItemDigest2 DocumentCurrency Document Currency
NetAmount
CreatedByUser P_GRIRPurchasingDocItemDigest2 CreatedByUser User Name
GRIRClearingProcessStatus
GRIRClearingProcessPriority P_GRIRPurchasingDocItemDigest2 GRIRClearingProcessPriority Priority
GRIRClearingProcessRootCause P_GRIRPurchasingDocItemDigest2 GRIRClearingProcessRootCause Root Cause
ResponsibleDepartment P_GRIRPurchasingDocItemDigest2 ResponsibleDepartment Processing Department
ResponsiblePerson P_GRIRPurchasingDocItemDigest2 ResponsiblePerson Processor
LastChangeDateTime P_GRIRPurchasingDocItemDigest2 LastChangeDateTime Timestamp
LastChangeDate P_GRIRPurchasingDocItemDigest2 LastChangeDate Time Stamp
LastChangeDays
ProposedResponsiblePerson
GRIRClrgProcessPrpsdStatus P_GRIRPurchasingDocItemDigest2 GRIRClrgProcessPrpsdStatus Proposed Status
GRIRClrgProcPrpsdPriority P_GRIRPurchasingDocItemDigest2 GRIRClrgProcPrpsdPriority Proposed Priority
GRIRClrgProcessPrpsdRootCause P_GRIRPurchasingDocItemDigest2 GRIRClrgProcessPrpsdRootCause Proposed Root Cause
NumberOfPurchaseOrderItems P_GRIRPurchasingDocItemDigest2 NumberOfPurchaseOrderItems Number of PO Items
CompanyCodeName
Plant P_GRIRPurchasingDocItemDigest2 Plant Valuation Area
PlantName
PurchasingGroup P_GRIRPurchasingDocItemDigest2 PurchasingGroup Purchasing Group
PurchasingGroupName
PurchasingOrganization P_GRIRPurchasingDocItemDigest2 PurchasingOrganization Purchasing Organization
PurchasingOrganizationName
Supplier P_GRIRPurchasingDocItemDigest2 Supplier Supplier
SupplierName P_GRIRPurchasingDocItemDigest2 SupplierName Supplier Name
MaterialGroup P_GRIRPurchasingDocItemDigest2 MaterialGroup Product Group
AccountAssignmentCategory
_GlobalCurrency P_GRIRPurchasingDocItemDigest2 _GlobalCurrency
_CompanyCode P_GRIRPurchasingDocItemDigest2 _CompanyCode
_CompanyCodeCurrency P_GRIRPurchasingDocItemDigest2 _CompanyCodeCurrency
_GRIRProcess P_GRIRPurchasingDocItemDigest2 _GRIRProcess
_PurchasingDocument P_GRIRPurchasingDocItemDigest2 _PurchasingDocument
_PurchasingDocumentItem P_GRIRPurchasingDocItemDigest2 _PurchasingDocumentItem
_CreatedByUser _CreatedByUser
_ResponsiblePerson _ResponsiblePerson
_ProposedResponsiblePerson _ProposedResponsiblePerson
_GRIRProcessStatusText _GRIRProcessStatusText
_GRIRProcessPriorityText _GRIRProcessPriorityText
_GRIRProcessRootCauseText _GRIRProcessRootCauseText
_GRIRClrgProcPrpsdStatusText _GRIRClrgProcPrpsdStatusText
_GRIRClrgProcPrpsdPriorityText _GRIRClrgProcPrpsdPriorityText
_GRIRProcessPrpsdRootCauseText _GRIRProcessPrpsdRootCauseText
_MaterialGroupText _MaterialGroupText

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 C_GRIRPurgDocItemDigest.
-- 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.

CREATE VIEW C_GRIRPurgDocItemDigest AS
SELECT
  P_GRIRPurchasingDocItemDigest2.CompanyCode AS CompanyCode,
  P_GRIRPurchasingDocItemDigest2.PurchasingDocument AS PurchasingDocument,
  P_GRIRPurchasingDocItemDigest2.PurchasingDocumentItem AS PurchasingDocumentItem,
  P_GRIRPurchasingDocItemDigest2.GlobalCurrency AS GlobalCurrency,
  cast( P_GRIRPurchasingDocItemDigest2.AmountInGlobalCurrency as fis_ksl preserving type ) AS AmountInGlobalCurrency,
  P_GRIRPurchasingDocItemDigest2.CompanyCodeCurrency AS CompanyCodeCurrency,
  cast( P_GRIRPurchasingDocItemDigest2.AmountInCompanyCodeCurrency as fis_hsl preserving type) AS AmountInCompanyCodeCurrency,
  cast( P_GRIRPurchasingDocItemDigest2.BalanceAbsoluteAmtInCoCodeCrcy as fis_abs_bal_dmbtr preserving type) AS BalanceAbsoluteAmtInCoCodeCrcy,
  P_GRIRPurchasingDocItemDigest2.DocumentCurrency AS DocumentCurrency,
  cast( P_GRIRPurchasingDocItemDigest2.NetAmount as bwert preserving type) AS NetAmount,
  P_GRIRPurchasingDocItemDigest2.CreatedByUser AS CreatedByUser,
  P_GRIRPurchasingDocItemDigest2.GRIRClearingProcessPriority AS GRIRClearingProcessPriority,
  P_GRIRPurchasingDocItemDigest2.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  P_GRIRPurchasingDocItemDigest2.ResponsibleDepartment AS ResponsibleDepartment,
  P_GRIRPurchasingDocItemDigest2.ResponsiblePerson AS ResponsiblePerson,
  P_GRIRPurchasingDocItemDigest2.LastChangeDateTime AS LastChangeDateTime,
  P_GRIRPurchasingDocItemDigest2.LastChangeDate AS LastChangeDate,
  cast ( dats_days_between( P_GRIRPurchasingDocItemDigest2.LastChangeDate, cast ( $session.system_date as abap.dats ) ) as fis_due_days preserving type ) AS LastChangeDays,
  P_GRIRPurchasingDocItemDigest2.GRIRClrgProcessPrpsdStatus AS GRIRClrgProcessPrpsdStatus,
  P_GRIRPurchasingDocItemDigest2.GRIRClrgProcPrpsdPriority AS GRIRClrgProcPrpsdPriority,
  P_GRIRPurchasingDocItemDigest2.GRIRClrgProcessPrpsdRootCause AS GRIRClrgProcessPrpsdRootCause,
  P_GRIRPurchasingDocItemDigest2.NumberOfPurchaseOrderItems AS NumberOfPurchaseOrderItems,
  P_GRIRPurchasingDocItemDigest2._CompanyCode.CompanyCodeName AS CompanyCodeName,
  P_GRIRPurchasingDocItemDigest2.Plant AS Plant,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocumentItem._Plant.PlantName AS PlantName,
  P_GRIRPurchasingDocItemDigest2.PurchasingGroup AS PurchasingGroup,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocument._PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
  P_GRIRPurchasingDocItemDigest2.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocument._PurchasingOrganization.PurchasingOrganizationName AS PurchasingOrganizationName,
  P_GRIRPurchasingDocItemDigest2.Supplier AS Supplier,
  P_GRIRPurchasingDocItemDigest2.SupplierName AS SupplierName,
  P_GRIRPurchasingDocItemDigest2.MaterialGroup AS MaterialGroup,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocumentItem.AccountAssignmentCategory AS AccountAssignmentCategory,
  P_GRIRPurchasingDocItemDigest2._GlobalCurrency AS _GlobalCurrency,
  P_GRIRPurchasingDocItemDigest2._CompanyCode AS _CompanyCode,
  P_GRIRPurchasingDocItemDigest2._CompanyCodeCurrency AS _CompanyCodeCurrency,
  P_GRIRPurchasingDocItemDigest2._GRIRProcess AS _GRIRProcess,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocument AS _PurchasingDocument,
  P_GRIRPurchasingDocItemDigest2._PurchasingDocumentItem AS _PurchasingDocumentItem
FROM P_GRIRPurchasingDocItemDigest2
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUser ON CreatedByUser = _CreatedByUser.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ResponsiblePerson ON ResponsiblePerson = _ResponsiblePerson.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ProposedResponsiblePerson ON ProposedResponsiblePerson = _ProposedResponsiblePerson.ContactCardID  -- association [0..1]
LEFT OUTER JOIN I_GRIRProcessStatusText AS _GRIRProcessStatusText ON GRIRClearingProcessStatus = _GRIRProcessStatusText.GRIRClearingProcessStatus  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessStatusText AS _GRIRClrgProcPrpsdStatusText ON GRIRClrgProcessPrpsdStatus = _GRIRClrgProcPrpsdStatusText.GRIRClearingProcessStatus  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessPriorityText AS _GRIRProcessPriorityText ON GRIRClearingProcessPriority = _GRIRProcessPriorityText.GRIRClearingProcessPriority  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessPriorityText AS _GRIRClrgProcPrpsdPriorityText ON GRIRClrgProcPrpsdPriority = _GRIRClrgProcPrpsdPriorityText.GRIRClearingProcessPriority  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessRootCauseText AS _GRIRProcessRootCauseText ON GRIRClearingProcessRootCause = _GRIRProcessRootCauseText.GRIRClearingProcessRootCause  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessRootCauseText AS _GRIRProcessPrpsdRootCauseText ON GRIRClrgProcessPrpsdRootCause = _GRIRProcessPrpsdRootCauseText.GRIRClearingProcessRootCause  -- association [0..*]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup  -- association [0..*]
;