I_CFinRpldPurgDocHistory
CFin Rpld Purchasing Document: History
I_CFinRpldPurgDocHistory is a Basic CDS View that provides data about "CFin Rpld Purchasing Document: History" in SAP S/4HANA. It reads from 3 data sources (cfin_av_po_item, cfin_av_po_ro, cfin_av_po_root) and exposes 37 fields with key fields SenderLogicalSystem, CFinRpldPurchasingDocument, CFinRpldPurchasingDocumentItem, CFinRpldPurgDocAcctAssgmt, PurchaseOrderTransactionType. It has 8 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| cfin_av_po_item | cfin_av_po_item | inner |
| cfin_av_po_ro | cfin_av_po_ro | from |
| cfin_av_po_root | cfin_av_po_root | inner |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CFinRpldPurchasingDocItem | _CFinRpldPurchasingDocItem | $projection.CFinRpldPurchasingDocument = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocument and $projection.CFinRpldPurchasingDocumentItem = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocumentItem and $projection.SenderLogicalSystem = _CFinRpldPurchasingDocItem.SenderLogicalSystem |
| [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_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _OrderPriceUnit | $projection.OrderPriceUnit = _OrderPriceUnit.UnitOfMeasure |
| [1..1] | E_CFinRpldPurchasingDocHistory | _Extension | $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem and $projection.CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument and $projection.CFinRpldPurchasingDocumentItem = _Extension.CFinRpldPurchasingDocumentItem and $projection.CFinRpldPurgDocAcctAssgmt = _Extension.CFinRpldPurgDocAcctAssgmt and $projection.PurchaseOrderTransactionType = _Extension.PurchaseOrderTransactionType and $projection.MaterialDocumentYear = _Extension.MaterialDocumentYear and $projection.CFinSourceMaterialDocument = _Extension.CFinSourceMaterialDocument and $projection.CFinSourceMaterialDocumentItem = _Extension.CFinSourceMaterialDocumentItem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CFin Rpld Purchasing Document: History | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ICFINRPOHIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SenderLogicalSystem | cfin_av_po_ro | fins_logsys | Logical system |
| KEY | CFinRpldPurchasingDocument | |||
| KEY | CFinRpldPurchasingDocumentItem | |||
| KEY | CFinRpldPurgDocAcctAssgmt | |||
| KEY | PurchaseOrderTransactionType | cfin_av_po_ro | vgabe | Transact. Type |
| KEY | MaterialDocumentYear | cfin_av_po_ro | gjahr | Settlement Year |
| KEY | CFinSourceMaterialDocument | |||
| KEY | CFinSourceMaterialDocumentItem | |||
| PostingDate | cfin_av_po_ro | budat | Posting Date | |
| Quantity | cfin_av_po_ro | menge | WarrCountValue | |
| PurOrdAmountInCompanyCodeCrcy | cfin_av_po_ro | dmbtr | Loc. amount | |
| PurchaseOrderAmount | cfin_av_po_ro | wrbtr | Gross Amount | |
| Currency | cfin_av_po_ro | waers | Transaction Currency | |
| DebitCreditCode | cfin_av_po_ro | shkzg | Returns | |
| AccountingDocumentCreationDate | cfin_av_po_ro | cpudt | Imported On | |
| TimeEntry | cfin_av_po_ro | cputm | Time | |
| Material | cfin_av_po_ro | matnr | Vehicle Model | |
| CompanyCodeCurrency | cfin_av_po_ro | hswae | Local currency | |
| PurchasingDocumentIsAged | cfin_av_po_root | isaged | Document aged | |
| IsEndOfPurposeBlocked | cfin_av_po_root | iseopblocked | Business Usage Comp. | |
| OrderQuantityUnit | cfin_av_po_item | meins | Valuation Unit | |
| ReferenceDocument | cfin_av_po_ro | lfbnr | Reference Doc. | |
| ReferenceDocumentItem | cfin_av_po_ro | lfpos | Ref. Doc. Item | |
| ReferenceDocumentFiscalYear | cfin_av_po_ro | lfgja | Year Cur.Period | |
| QuantityInBaseUnit | cfin_av_po_ro | bamng | Quantity | |
| BaseUnit | cfin_av_po_item | lmein | Base Unit | |
| QtyInPurchaseOrderPriceUnit | cfin_av_po_ro | bpmng | Qty. in OPUn | |
| OrderPriceUnit | cfin_av_po_item | bprme | PO Price Unit | |
| OrderPriceUnitToOrderUnitNmrtr | cfin_av_po_item | bpumz | Qty Conversion | |
| IsCompletelyDelivered | cfin_av_po_ro | elikz | Delivery Completion | |
| _CFinRpldPurchasingDocItem | _CFinRpldPurchasingDocItem | |||
| _OrderQuantityUnit | _OrderQuantityUnit | |||
| _Currency | _Currency | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _LogicalSystem | _LogicalSystem | |||
| _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 I_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 I_CFinRpldPurgDocHistory AS
SELECT
cfin_av_po_ro.fins_logsys AS SenderLogicalSystem,
cast( cfin_av_po_ro.ebeln as fins_cfin_av_purchasing_doc preserving type ) AS CFinRpldPurchasingDocument,
cast( cfin_av_po_ro.ebelp as fins_cfin_av_purg_document_itm preserving type ) AS CFinRpldPurchasingDocumentItem,
cast( cfin_av_po_ro.zekkn as fins_cfin_av_purg_doc_acctasgt preserving type ) AS CFinRpldPurgDocAcctAssgmt,
cfin_av_po_ro.vgabe AS PurchaseOrderTransactionType,
cfin_av_po_ro.gjahr AS MaterialDocumentYear,
cast( cfin_av_po_ro.belnr as fins_cfin_av_srce_matl_doc preserving type ) AS CFinSourceMaterialDocument,
cast( cfin_av_po_ro.buzei as fins_cfin_av_srce_matl_item preserving type ) AS CFinSourceMaterialDocumentItem,
cfin_av_po_ro.budat AS PostingDate,
cfin_av_po_ro.menge AS Quantity,
cfin_av_po_ro.dmbtr AS PurOrdAmountInCompanyCodeCrcy,
cfin_av_po_ro.wrbtr AS PurchaseOrderAmount,
cfin_av_po_ro.waers AS Currency,
cfin_av_po_ro.shkzg AS DebitCreditCode,
cfin_av_po_ro.cpudt AS AccountingDocumentCreationDate,
cfin_av_po_ro.cputm AS TimeEntry,
cfin_av_po_ro.matnr AS Material,
cfin_av_po_ro.hswae AS CompanyCodeCurrency,
cfin_av_po_root.isaged AS PurchasingDocumentIsAged,
cfin_av_po_root.iseopblocked AS IsEndOfPurposeBlocked,
cfin_av_po_item.meins AS OrderQuantityUnit,
cfin_av_po_ro.lfbnr AS ReferenceDocument,
cfin_av_po_ro.lfpos AS ReferenceDocumentItem,
cfin_av_po_ro.lfgja AS ReferenceDocumentFiscalYear,
cfin_av_po_ro.bamng AS QuantityInBaseUnit,
cfin_av_po_item.lmein AS BaseUnit,
cfin_av_po_ro.bpmng AS QtyInPurchaseOrderPriceUnit,
cfin_av_po_item.bprme AS OrderPriceUnit,
cfin_av_po_item.bpumz AS OrderPriceUnitToOrderUnitNmrtr,
cfin_av_po_ro.elikz AS IsCompletelyDelivered
FROM cfin_av_po_ro
INNER JOIN cfin_av_po_root ON /* join condition not captured in parsed metadata */
INNER JOIN cfin_av_po_item ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CFinRpldPurchasingDocItem AS _CFinRpldPurchasingDocItem ON CFinRpldPurchasingDocument = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocument AND CFinRpldPurchasingDocumentItem = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocumentItem AND SenderLogicalSystem = _CFinRpldPurchasingDocItem.SenderLogicalSystem -- 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_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem -- 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]
LEFT OUTER JOIN E_CFinRpldPurchasingDocHistory AS _Extension ON SenderLogicalSystem = _Extension.SourceSystemLogicalSystem AND CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument AND CFinRpldPurchasingDocumentItem = _Extension.CFinRpldPurchasingDocumentItem AND CFinRpldPurgDocAcctAssgmt = _Extension.CFinRpldPurgDocAcctAssgmt AND PurchaseOrderTransactionType = _Extension.PurchaseOrderTransactionType AND MaterialDocumentYear = _Extension.MaterialDocumentYear AND CFinSourceMaterialDocument = _Extension.CFinSourceMaterialDocument AND CFinSourceMaterialDocumentItem = _Extension.CFinSourceMaterialDocumentItem -- association [1..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