R_CFinRpldPurgDocHistory

DDL: R_CFINRPLDPURGDOCHISTORY Type: view_entity BASIC

CFin Rpld Purchasing Document History

R_CFinRpldPurgDocHistory is a Basic CDS View that provides data about "CFin Rpld Purchasing Document History" in SAP S/4HANA. It reads from 1 data source (cfin_av_po_ro) and exposes 39 fields with key field CFinRpldPurgDocHistoryUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
cfin_av_po_ro cfin_av_po_ro from

Associations (6)

CardinalityTargetAliasCondition
[1..1] R_CFinRpldPurchasingDocItem _CFinRpldPurchasingDocItem $projection.CFinRpldPurchasingDocItemUUID = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocItemUUID
[0..1] I_UnitOfMeasure _OrderQuantityUnit $projection.orderquantityunit = _OrderQuantityUnit.UnitOfMeasure
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_UnitOfMeasure _BaseUnit $projection.baseunit = _BaseUnit.UnitOfMeasure
[0..1] I_UnitOfMeasure _OrderPriceUnit $projection.orderpriceunit = _OrderPriceUnit.UnitOfMeasure

Annotations (7)

NameValueLevelField
EndUserText.label CFin Rpld Purchasing Document History view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY CFinRpldPurgDocHistoryUUID db_key UUID
CFinRpldPurchasingDocUUID root_key UUID
CFinRpldPurchasingDocItemUUID parent_key UUID
SourceSystemLogicalSystem fins_logsys Logical system
CFinRpldPurchasingDocument Source PurchDoc
CFinRpldPurchasingDocumentItem Item pur. doc.
CFinRpldPurgDocSqntlAcctAssgmt Account Assgmt No.
PurchaseOrderTransactionType vgabe Transact. Type
MaterialDocumentYear gjahr Settlement Year
PurchasingHistoryDocument belnr SD Document
PurchasingHistoryDocumentItem buzei Posting View Item
PostingDate budat Posting Date
Quantity menge WarrCountValue
PurOrdAmountInCompanyCodeCrcy dmbtr Loc. amount
PurchaseOrderAmount wrbtr Gross Amount
Currency waers Transaction Currency
DebitCreditCode shkzg Returns
AccountingDocumentCreationDate cpudt Imported On
TimeEntry cputm Time
Material matnr Vehicle Model
CompanyCodeCurrency hswae Local currency
HasMultipleAccountAssignment Multi Acct Assgt
InvtryMgmtReferenceDocument lfbnr Reference Doc.
InvtryMgmtRefDocumentItem lfpos Ref. Doc. Item
ReferenceDocumentFiscalYear lfgja Year Cur.Period
QuantityInBaseUnit bamng Quantity
QtyInPurchaseOrderPriceUnit bpmng Qty. in OPUn
OrderQuantityUnit _CFinRpldPurchasingDocItem OrderQuantityUnit Sales Unit
BaseUnit _CFinRpldPurchasingDocItem BaseUnit Unit of Measure
OrderPriceUnit _CFinRpldPurchasingDocItem OrderPriceUnit Order Price Un.
OrderPriceUnitToOrderUnitNmrtr _CFinRpldPurchasingDocItem OrderPriceUnitToOrderUnitNmrtr Quantity Conversion Numerator
IsCompletelyDelivered elikz Delivery Completion
CFinRpldPurgDocAcctAssgmt SeqNo.PO AccAss
_CFinRpldPurchasingDocItem _CFinRpldPurchasingDocItem
_OrderQuantityUnit _OrderQuantityUnit
_Currency _Currency
_CompanyCodeCurrency _CompanyCodeCurrency
_BaseUnit _BaseUnit
_OrderPriceUnit _OrderPriceUnit

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_CFinRpldPurgDocHistory.
-- 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_CFinRpldPurgDocHistory AS
SELECT
  db_key AS CFinRpldPurgDocHistoryUUID,
  root_key AS CFinRpldPurchasingDocUUID,
  parent_key AS CFinRpldPurchasingDocItemUUID,
  fins_logsys AS SourceSystemLogicalSystem,
  cast( ebeln as fins_cfin_av_purchasing_doc preserving type ) AS CFinRpldPurchasingDocument,
  cast( ebelp as fins_cfin_av_purg_document_itm preserving type ) AS CFinRpldPurchasingDocumentItem,
  cast( zekkn as fins_cfin_av_rpld_pd_sqntl_acc preserving type ) AS CFinRpldPurgDocSqntlAcctAssgmt,
  vgabe AS PurchaseOrderTransactionType,
  gjahr AS MaterialDocumentYear,
  belnr AS PurchasingHistoryDocument,
  buzei AS PurchasingHistoryDocumentItem,
  budat AS PostingDate,
  menge AS Quantity,
  dmbtr AS PurOrdAmountInCompanyCodeCrcy,
  wrbtr AS PurchaseOrderAmount,
  waers AS Currency,
  shkzg AS DebitCreditCode,
  cpudt AS AccountingDocumentCreationDate,
  cputm AS TimeEntry,
  matnr AS Material,
  hswae AS CompanyCodeCurrency,
  cast(xmacc as boolean preserving type ) AS HasMultipleAccountAssignment,
  lfbnr AS InvtryMgmtReferenceDocument,
  lfpos AS InvtryMgmtRefDocumentItem,
  lfgja AS ReferenceDocumentFiscalYear,
  bamng AS QuantityInBaseUnit,
  bpmng AS QtyInPurchaseOrderPriceUnit,
  _CFinRpldPurchasingDocItem.OrderQuantityUnit AS OrderQuantityUnit,
  _CFinRpldPurchasingDocItem.BaseUnit AS BaseUnit,
  _CFinRpldPurchasingDocItem.OrderPriceUnit AS OrderPriceUnit,
  _CFinRpldPurchasingDocItem.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
  elikz AS IsCompletelyDelivered,
  cast( bekkn as fins_cfin_av_purg_doc_acctasgt preserving type ) AS CFinRpldPurgDocAcctAssgmt
FROM cfin_av_po_ro
LEFT OUTER JOIN R_CFinRpldPurchasingDocItem AS _CFinRpldPurchasingDocItem ON CFinRpldPurchasingDocItemUUID = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocItemUUID  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderQuantityUnit ON orderquantityunit = _OrderQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON baseunit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _OrderPriceUnit ON orderpriceunit = _OrderPriceUnit.UnitOfMeasure  -- association [0..1]
;