I_CFinRpldPurgDocHistAcctAsgt
CFin Rpld Purg Doc: History Acct Assgmt
I_CFinRpldPurgDocHistAcctAsgt is a Basic CDS View that provides data about "CFin Rpld Purg Doc: History Acct Assgmt" in SAP S/4HANA. It reads from 3 data sources (cfin_av_po_item, cfin_av_po_ro, cfin_av_po_roacc) and exposes 18 fields with key fields SenderLogicalSystem, CFinRpldPurchasingDocument, CFinRpldPurchasingDocumentItem, CFinRpldPurgDocAcctAssgmt, PurchaseOrderTransactionType. It has 5 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 | inner |
| cfin_av_po_roacc | cfin_av_po_roacc | from |
Associations (5)
| 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 | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
| [1..1] | E_CFinRpldPurgDocHistAcctAsgt | _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 Purg Doc: History Acct Assgmt | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | ICFINRPOHISTACCT | 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 | #XL | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SenderLogicalSystem | cfin_av_po_roacc | fins_logsys | Logical system |
| KEY | CFinRpldPurchasingDocument | |||
| KEY | CFinRpldPurchasingDocumentItem | |||
| KEY | CFinRpldPurgDocAcctAssgmt | |||
| KEY | PurchaseOrderTransactionType | cfin_av_po_roacc | vgabe | Transact. Type |
| KEY | MaterialDocumentYear | cfin_av_po_roacc | gjahr | Settlement Year |
| KEY | CFinSourceMaterialDocument | |||
| KEY | CFinSourceMaterialDocumentItem | |||
| ReferenceDocument | cfin_av_po_roacc | lfbnr | Reference Doc. | |
| Quantity | cfin_av_po_roacc | menge | WarrCountValue | |
| PurchaseOrderAmount | cfin_av_po_roacc | wrbtr | Gross Amount | |
| AccountAssignmentIsUnplanned | cfin_av_po_roacc | xunpl | UAcctAssignment | |
| OrderQuantityUnit | cfin_av_po_item | meins | Valuation Unit | |
| DocumentCurrency | cfin_av_po_ro | waers | Transaction Currency | |
| _CFinRpldPurchasingDocItem | _CFinRpldPurchasingDocItem | |||
| _OrderQuantityUnit | _OrderQuantityUnit | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _LogicalSystem | _LogicalSystem |
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_CFinRpldPurgDocHistAcctAsgt.
-- 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_CFinRpldPurgDocHistAcctAsgt AS
SELECT
cfin_av_po_roacc.fins_logsys AS SenderLogicalSystem,
cast(cfin_av_po_roacc.ebeln as fins_cfin_av_purchasing_doc preserving type ) AS CFinRpldPurchasingDocument,
cast(cfin_av_po_roacc.ebelp as fins_cfin_av_purg_document_itm preserving type ) AS CFinRpldPurchasingDocumentItem,
cast(cfin_av_po_roacc.zekkn as fins_cfin_av_purg_doc_acctasgt preserving type ) AS CFinRpldPurgDocAcctAssgmt,
cfin_av_po_roacc.vgabe AS PurchaseOrderTransactionType,
cfin_av_po_roacc.gjahr AS MaterialDocumentYear,
cast( cfin_av_po_roacc.belnr as fins_cfin_av_matl_doc preserving type ) AS CFinSourceMaterialDocument,
cast( cfin_av_po_roacc.buzei as fins_cfin_av_matl_doc_item preserving type ) AS CFinSourceMaterialDocumentItem,
cfin_av_po_roacc.lfbnr AS ReferenceDocument,
cfin_av_po_roacc.menge AS Quantity,
cfin_av_po_roacc.wrbtr AS PurchaseOrderAmount,
cfin_av_po_roacc.xunpl AS AccountAssignmentIsUnplanned,
cfin_av_po_item.meins AS OrderQuantityUnit,
cfin_av_po_ro.waers AS DocumentCurrency
FROM cfin_av_po_roacc
INNER JOIN cfin_av_po_ro 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 _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN E_CFinRpldPurgDocHistAcctAsgt 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