C_GRIRClrgProcRootCauseChange

DDL: C_GRIRCLRGPROCROOTCAUSECHANGE SQL: CFIGRIRRTCSCHG Type: view CONSUMPTION

GRIR Clearing Process Root Cause Change

C_GRIRClrgProcRootCauseChange is a Consumption CDS View that provides data about "GRIR Clearing Process Root Cause Change" in SAP S/4HANA. It reads from 1 data source (P_GRIRProcHistRootCauseChange3) and exposes 18 fields with key fields CompanyCode, PurchasingDocument, PurchasingDocumentItem, LastChangeDateTime. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_GRIRProcHistRootCauseChange3 P_GRIRProcHistRootCauseChange3 from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_GRIRProcessRootCauseText _GRIRProcessRootCauseText $projection.GRIRClearingProcessRootCause = _GRIRProcessRootCauseText.GRIRClearingProcessRootCause
[0..*] I_GRIRProcessRootCauseText _GRIRProcessNextRootCauseText $projection.GRIRClearingProcNextRootCause = _GRIRProcessNextRootCauseText.GRIRClearingProcessRootCause
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CFIGRIRRTCSCHG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label GRIR Clearing Process Root Cause Change view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode P_GRIRProcHistRootCauseChange3 CompanyCode Receiver Company Code
KEY PurchasingDocument P_GRIRProcHistRootCauseChange3 PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem P_GRIRProcHistRootCauseChange3 PurchasingDocumentItem Purchasing Doc. Item
KEY LastChangeDateTime
GRIRClearingProcessRootCause P_GRIRProcHistRootCauseChange3 GRIRClearingProcessRootCause Root Cause
GRIRClrgProcNextChangeDateTime
GRIRClearingProcNextRootCause P_GRIRProcHistRootCauseChange3 GRIRClearingProcNextRootCause
Supplier P_GRIRProcHistRootCauseChange3 Supplier Supplier
Plant P_GRIRProcHistRootCauseChange3 Plant Valuation Area
MaterialGroup P_GRIRProcHistRootCauseChange3 MaterialGroup Product Group
PurchasingGroup P_GRIRProcHistRootCauseChange3 PurchasingGroup Purchasing Group
PurchasingOrganization P_GRIRProcHistRootCauseChange3 PurchasingOrganization Purchasing Organization
AccountAssignmentCategory P_GRIRProcHistRootCauseChange3 AccountAssignmentCategory Acct Assgmt Cat
NumberOfPurchaseOrderItems NumberOfPurchaseOrderItems Number of PO Items
GRIRClrgProcThroughputSeconds GRIRClrgProcThroughputSeconds
_GRIRProcessRootCauseText _GRIRProcessRootCauseText
_GRIRProcessNextRootCauseText _GRIRProcessNextRootCauseText
_Supplier _Supplier

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_GRIRClrgProcRootCauseChange.
-- 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: CFIGRIRRTCSCHG

CREATE VIEW C_GRIRClrgProcRootCauseChange AS
SELECT
  P_GRIRProcHistRootCauseChange3.CompanyCode AS CompanyCode,
  P_GRIRProcHistRootCauseChange3.PurchasingDocument AS PurchasingDocument,
  P_GRIRProcHistRootCauseChange3.PurchasingDocumentItem AS PurchasingDocumentItem,
  cast( P_GRIRProcHistRootCauseChange3.LastChangeDateTime as fis_grir_lastchangedatetime) AS LastChangeDateTime,
  P_GRIRProcHistRootCauseChange3.GRIRClearingProcessRootCause AS GRIRClearingProcessRootCause,
  cast( P_GRIRProcHistRootCauseChange3.GRIRClrgProcNextChangeDateTime as fis_grir_nextchangedatetime) AS GRIRClrgProcNextChangeDateTime,
  P_GRIRProcHistRootCauseChange3.GRIRClearingProcNextRootCause AS GRIRClearingProcNextRootCause,
  P_GRIRProcHistRootCauseChange3.Supplier AS Supplier,
  P_GRIRProcHistRootCauseChange3.Plant AS Plant,
  P_GRIRProcHistRootCauseChange3.MaterialGroup AS MaterialGroup,
  P_GRIRProcHistRootCauseChange3.PurchasingGroup AS PurchasingGroup,
  P_GRIRProcHistRootCauseChange3.PurchasingOrganization AS PurchasingOrganization,
  P_GRIRProcHistRootCauseChange3.AccountAssignmentCategory AS AccountAssignmentCategory,
  NumberOfPurchaseOrderItems,
  GRIRClrgProcThroughputSeconds
FROM P_GRIRProcHistRootCauseChange3
LEFT OUTER JOIN I_GRIRProcessRootCauseText AS _GRIRProcessRootCauseText ON GRIRClearingProcessRootCause = _GRIRProcessRootCauseText.GRIRClearingProcessRootCause  -- association [0..*]
LEFT OUTER JOIN I_GRIRProcessRootCauseText AS _GRIRProcessNextRootCauseText ON GRIRClearingProcNextRootCause = _GRIRProcessNextRootCauseText.GRIRClearingProcessRootCause  -- association [0..*]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
;