R_CFinRpldPurgDocReltdInvcTP

DDL: R_CFINRPLDPURGDOCRELTDINVCTP Type: view_entity TRANSACTIONAL

CFin Rpld Purchasing Doc Related SI

R_CFinRpldPurgDocReltdInvcTP is a Transactional CDS View that provides data about "CFin Rpld Purchasing Doc Related SI" in SAP S/4HANA. It reads from 1 data source (I_CFinRpldPurgDocHistory) and exposes 27 fields with key fields SourceSystemLogicalSystem, CFinRpldPurchasingDocument, CFinRpldPurchasingDocumentItem, CFinRpldPurgDocAcctAssgmt, PurchaseOrderTransactionType. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CFinRpldPurgDocHistory I_CFinRpldPurgDocHistory from

Associations (2)

CardinalityTargetAliasCondition
[1..1] R_CFinRpldPurchasingDocumentTP _CFinRpldPurchasingDocumentTP $projection.SourceSystemLogicalSystem = _CFinRpldPurchasingDocumentTP.SourceSystemLogicalSystem and $projection.CFinRpldPurchasingDocument = _CFinRpldPurchasingDocumentTP.CFinRpldPurchasingDocument
[1..1] E_CFinRpldPurchasingDocHistory _Extension $projection.SourceSystemLogicalSystem = _Extension.SourceSystemLogicalSystem and $projection.CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument and $projection.CFinRpldPurchasingDocumentItem = _Extension.CFinRpldPurchasingDocumentItem and $projection.CFinRpldPurgDocAcctAssgmt = _Extension.CFinRpldPurgDocAcctAssgmt and $projection.PurchaseOrderTransactionType = _Extension.PurchaseOrderTransactionType and $projection.FiscalYear = _Extension.MaterialDocumentYear and $projection.CFinRpldSupplierInvoice = _Extension.CFinSourceMaterialDocument and $projection.CFinRpldSupplierInvoiceItem = _Extension.CFinSourceMaterialDocumentItem

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label CFin Rpld Purchasing Doc Related SI view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY SourceSystemLogicalSystem SenderLogicalSystem Sender Logical System
KEY CFinRpldPurchasingDocument CFinRpldPurchasingDocument Purchasing Doc.
KEY CFinRpldPurchasingDocumentItem CFinRpldPurchasingDocumentItem Item
KEY CFinRpldPurgDocAcctAssgmt CFinRpldPurgDocAcctAssgmt
KEY PurchaseOrderTransactionType PurchaseOrderTransactionType Transact. Type
KEY FiscalYear Material Document Year
KEY CFinRpldSupplierInvoice
KEY CFinRpldSupplierInvoiceItem
PostingDate PostingDate Posting Date for GR
Quantity Quantity Value
OrderQuantityUnit OrderQuantityUnit Sales Unit
PurOrdAmountInCompanyCodeCrcy PurOrdAmountInCompanyCodeCrcy Loc. amount
CompanyCodeCurrency CompanyCodeCurrency Local Currency
PurchaseOrderAmount PurchaseOrderAmount Gross Amount
Currency Currency Valuation Crcy
DebitCreditCode DebitCreditCode Single-Character Flag
AccountingDocumentCreationDate AccountingDocumentCreationDate Journal Entry Date
TimeEntry TimeEntry Entered at
Material Material Vehicle Model
ReferenceDocument ReferenceDocument Reference Document
ReferenceDocumentItem ReferenceDocumentItem Reference item
ReferenceDocumentFiscalYear ReferenceDocumentFiscalYear Year Cur.Period
QtyInPurchaseOrderPriceUnit QtyInPurchaseOrderPriceUnit Qty in OPUn
OrderPriceUnit OrderPriceUnit Order Price Un.
LastChangeDateTime
_CFinRpldPurchasingDocItemTP _CFinRpldPurchasingDocItemTP
_CFinRpldPurchasingDocumentTP _CFinRpldPurchasingDocumentTP

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 R_CFinRpldPurgDocReltdInvcTP.
-- 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 R_CFinRpldPurgDocReltdInvcTP AS
SELECT
  SenderLogicalSystem AS SourceSystemLogicalSystem,
  CFinRpldPurchasingDocument,
  CFinRpldPurchasingDocumentItem,
  CFinRpldPurgDocAcctAssgmt,
  PurchaseOrderTransactionType,
  cast( MaterialDocumentYear as gjahr preserving type ) AS FiscalYear,
  cast( CFinSourceMaterialDocument as fins_cfin_av_rpld_suplr_invc preserving type ) AS CFinRpldSupplierInvoice,
  cast( CFinSourceMaterialDocumentItem as fins_cfin_av_rpld_suplriv_itm4 preserving type ) AS CFinRpldSupplierInvoiceItem,
  PostingDate,
  Quantity,
  OrderQuantityUnit,
  PurOrdAmountInCompanyCodeCrcy,
  CompanyCodeCurrency,
  PurchaseOrderAmount,
  Currency,
  DebitCreditCode,
  AccountingDocumentCreationDate,
  TimeEntry,
  Material,
  ReferenceDocument,
  ReferenceDocumentItem,
  ReferenceDocumentFiscalYear,
  QtyInPurchaseOrderPriceUnit,
  OrderPriceUnit,
  cast( '00000000000000' as fins_cfin_av_lastchangedon ) AS LastChangeDateTime
FROM I_CFinRpldPurgDocHistory
LEFT OUTER JOIN R_CFinRpldPurchasingDocumentTP AS _CFinRpldPurchasingDocumentTP ON SourceSystemLogicalSystem = _CFinRpldPurchasingDocumentTP.SourceSystemLogicalSystem AND CFinRpldPurchasingDocument = _CFinRpldPurchasingDocumentTP.CFinRpldPurchasingDocument  -- association [1..1]
LEFT OUTER JOIN E_CFinRpldPurchasingDocHistory AS _Extension ON SourceSystemLogicalSystem = _Extension.SourceSystemLogicalSystem AND CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument AND CFinRpldPurchasingDocumentItem = _Extension.CFinRpldPurchasingDocumentItem AND CFinRpldPurgDocAcctAssgmt = _Extension.CFinRpldPurgDocAcctAssgmt AND PurchaseOrderTransactionType = _Extension.PurchaseOrderTransactionType AND FiscalYear = _Extension.MaterialDocumentYear AND CFinRpldSupplierInvoice = _Extension.CFinSourceMaterialDocument AND CFinRpldSupplierInvoiceItem = _Extension.CFinSourceMaterialDocumentItem  -- association [1..1]
;