R_CFinRpldPurgDocHistory
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)
| Source | Alias | Join Type |
|---|---|---|
| cfin_av_po_ro | cfin_av_po_ro | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA