I_CFinRpldPurchasingDocument
CFin Rpld Purchasing Document: Header
I_CFinRpldPurchasingDocument is a Basic CDS View that provides data about "CFin Rpld Purchasing Document: Header" in SAP S/4HANA. It reads from 1 data source (cfin_av_po_root) and exposes 53 fields with key fields SenderLogicalSystem, CFinRpldPurchasingDocument. It has 16 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cfin_av_po_root | cfin_av_po_root | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchasingDocumentCategory | _PurchasingDocumentCategory | $projection.PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory |
| [0..1] | I_PurchasingDocumentType | _PurchasingDocumentType | $projection.PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory and $projection.PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_User | _CreatedByUser | $projection.CreatedByUser = _CreatedByUser.UserID |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Supplier | _SupplyingSupplier | $projection.SupplyingSupplier = _SupplyingSupplier.Supplier |
| [0..1] | I_Supplier | _InvoicingParty | $projection.InvoicingParty = _InvoicingParty.Supplier |
| [0..1] | I_PaymentTerms | _PaymentTerms | $projection.PaymentTerms = _PaymentTerms.PaymentTerms |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | I_PurchasingGroup | _PurchasingGroup | $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup |
| [0..1] | I_Currency | _DocumentCurrency | $projection.DocumentCurrency = _DocumentCurrency.Currency |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
| [0..*] | I_CFinRpldPurchasingDocItem | _CFinRpldPurchasingDocItem | $projection.CFinRpldPurchasingDocument = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocument and $projection.SenderLogicalSystem = _CFinRpldPurchasingDocItem.SenderLogicalSystem |
| [0..1] | I_TaxCalculationProcedure | _PricingProcedure | $projection.PricingProcedure = _PricingProcedure.TaxCalculationProcedure |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
| [1..1] | E_CFinRpldPurchasingDocument | _Extension | $projection.CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument and $projection.SenderLogicalSystem = _Extension.SourceSystemLogicalSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CFin Rpld Purchasing Document: Header | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ICFINRPOROOT | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SenderLogicalSystem | cfin_av_po_root | fins_logsys | Logical system |
| KEY | CFinRpldPurchasingDocument | |||
| CompanyCode | cfin_av_po_root | bukrs | Value | |
| PurchasingDocumentCategory | cfin_av_po_root | bstyp | Source doc.cat. | |
| PurchasingDocumentType | cfin_av_po_root | bsart | Stnd purch.ord. | |
| PurchasingDocumentSubtype | cfin_av_po_root | bsakz | Control | |
| PurchasingDocumentDeletionCode | cfin_av_po_root | loekz | Status | |
| CreationDate | cfin_av_po_root | aedat | Obsolete | |
| Supplier | ||||
| PaymentTerms | ||||
| CashDiscount1Days | ||||
| CashDiscount2Days | ||||
| NetPaymentDays | ||||
| CashDiscount1Percent | cfin_av_po_root | zbd1p | Max. Cash Dis. (%) | |
| CashDiscount2Percent | cfin_av_po_root | zbd2p | Nrm. Cash Dis. (%) | |
| PurchasingOrganization | cfin_av_po_root | ekorg | Purchasing Org. | |
| PurchasingGroup | cfin_av_po_root | ekgrp | Sub. purchasing grp | |
| DocumentCurrency | cfin_av_po_root | waers | Transaction Currency | |
| ExchangeRate | ||||
| ExchangeRateIsFixed | cfin_av_po_root | kufix | Fixed Exch.Rate | |
| PurchasingDocumentOrderDate | cfin_av_po_root | bedat | Start date | |
| ValidityStartDate | cfin_av_po_root | kdatb | Validity Start | |
| ValidityEndDate | cfin_av_po_root | kdate | Validity End | |
| SupplyingSupplier | cfin_av_po_root | llief | Goods Supplier | |
| SupplyingPlant | cfin_av_po_root | reswk | Supplying Plant | |
| PricingDocument | cfin_av_po_root | knumv | Doc. Condition | |
| PricingProcedure | cfin_av_po_root | kalsm | Search Proced. | |
| InvoicingParty | cfin_av_po_root | lifre | Location Alias | |
| ReleaseIsNotCompleted | cfin_av_po_root | frgrl | Subj.to Release | |
| TaxReturnCountry | cfin_av_po_root | lands | Sender | |
| PurchasingCompletenessStatus | cfin_av_po_root | memory | Incomplete | |
| PurchasingProcessingStatus | cfin_av_po_root | procstat | Tour Status | |
| CFinRpldDeleteArchiveStatus | cfin_av_po_root | iuuc_operat_flag | Delete/Archive | |
| CreatedByUser | cfin_av_po_root | ernam | User Name | |
| IsEndOfPurposeBlocked | cfin_av_po_root | iseopblocked | Business Usage Comp. | |
| PurchasingDocumentIsAged | cfin_av_po_root | isaged | Document aged | |
| PurchasingDocumentVersion | cfin_av_po_root | revno | Version | |
| SenderCompanyCode | cfin_av_po_root | bukrs_sender | Sender CoCode | |
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PaymentTerms | _PaymentTerms | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _CreatedByUser | _CreatedByUser | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PricingProcedure | _PricingProcedure | |||
| _CFinRpldPurchasingDocItem | _CFinRpldPurchasingDocItem | |||
| _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_CFinRpldPurchasingDocument.
-- 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_CFinRpldPurchasingDocument AS
SELECT
cfin_av_po_root.fins_logsys AS SenderLogicalSystem,
cast( cfin_av_po_root.ebeln as fins_cfin_av_purchasing_doc preserving type ) AS CFinRpldPurchasingDocument,
cfin_av_po_root.bukrs AS CompanyCode,
cfin_av_po_root.bstyp AS PurchasingDocumentCategory,
cfin_av_po_root.bsart AS PurchasingDocumentType,
cfin_av_po_root.bsakz AS PurchasingDocumentSubtype,
cfin_av_po_root.loekz AS PurchasingDocumentDeletionCode,
cfin_av_po_root.aedat AS CreationDate,
cast ( cfin_av_po_root.lifnr as md_supplier preserving type) AS Supplier,
cast( cfin_av_po_root.zterm as farp_dzterm preserving type) AS PaymentTerms,
cast (cfin_av_po_root.zbd1t as dzbd1t preserving type) AS CashDiscount1Days,
cast (cfin_av_po_root.zbd2t as dzbd2t preserving type) AS CashDiscount2Days,
cast (cfin_av_po_root.zbd3t as dzbd3t preserving type) AS NetPaymentDays,
cfin_av_po_root.zbd1p AS CashDiscount1Percent,
cfin_av_po_root.zbd2p AS CashDiscount2Percent,
cfin_av_po_root.ekorg AS PurchasingOrganization,
cfin_av_po_root.ekgrp AS PurchasingGroup,
cfin_av_po_root.waers AS DocumentCurrency,
cast(abs(cfin_av_po_root.wkurs) as fins_cfin_wkurs_no_conv preserving type) AS ExchangeRate,
cfin_av_po_root.kufix AS ExchangeRateIsFixed,
cfin_av_po_root.bedat AS PurchasingDocumentOrderDate,
cfin_av_po_root.kdatb AS ValidityStartDate,
cfin_av_po_root.kdate AS ValidityEndDate,
cfin_av_po_root.llief AS SupplyingSupplier,
cfin_av_po_root.reswk AS SupplyingPlant,
cfin_av_po_root.knumv AS PricingDocument,
cfin_av_po_root.kalsm AS PricingProcedure,
cfin_av_po_root.lifre AS InvoicingParty,
cfin_av_po_root.frgrl AS ReleaseIsNotCompleted,
cfin_av_po_root.lands AS TaxReturnCountry,
cfin_av_po_root.memory AS PurchasingCompletenessStatus,
cfin_av_po_root.procstat AS PurchasingProcessingStatus,
cfin_av_po_root.iuuc_operat_flag AS CFinRpldDeleteArchiveStatus,
cfin_av_po_root.ernam AS CreatedByUser,
cfin_av_po_root.iseopblocked AS IsEndOfPurposeBlocked,
cfin_av_po_root.isaged AS PurchasingDocumentIsAged,
cfin_av_po_root.revno AS PurchasingDocumentVersion,
cfin_av_po_root.bukrs_sender AS SenderCompanyCode
FROM cfin_av_po_root
LEFT OUTER JOIN I_PurchasingDocumentCategory AS _PurchasingDocumentCategory ON PurchasingDocumentCategory = _PurchasingDocumentCategory.PurchasingDocumentCategory -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentType AS _PurchasingDocumentType ON PurchasingDocumentCategory = _PurchasingDocumentType.PurchasingDocumentCategory AND PurchasingDocumentType = _PurchasingDocumentType.PurchasingDocumentType -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _SupplyingSupplier ON SupplyingSupplier = _SupplyingSupplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _InvoicingParty ON InvoicingParty = _InvoicingParty.Supplier -- association [0..1]
LEFT OUTER JOIN I_PaymentTerms AS _PaymentTerms ON PaymentTerms = _PaymentTerms.PaymentTerms -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup -- association [0..1]
LEFT OUTER JOIN I_Currency AS _DocumentCurrency ON DocumentCurrency = _DocumentCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_CFinRpldPurchasingDocItem AS _CFinRpldPurchasingDocItem ON CFinRpldPurchasingDocument = _CFinRpldPurchasingDocItem.CFinRpldPurchasingDocument AND SenderLogicalSystem = _CFinRpldPurchasingDocItem.SenderLogicalSystem -- association [0..*]
LEFT OUTER JOIN I_TaxCalculationProcedure AS _PricingProcedure ON PricingProcedure = _PricingProcedure.TaxCalculationProcedure -- association [0..1]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem -- association [0..1]
LEFT OUTER JOIN E_CFinRpldPurchasingDocument AS _Extension ON CFinRpldPurchasingDocument = _Extension.CFinRpldPurchasingDocument AND SenderLogicalSystem = _Extension.SourceSystemLogicalSystem -- 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