I_CFinPurchasingDocument
CFin Purchasing Document: Header
I_CFinPurchasingDocument is a Composite CDS View that provides data about "CFin Purchasing Document: Header" in SAP S/4HANA. It reads from 2 data sources (I_CFinRpldPurchasingDocument, I_PurchasingDocument) and exposes 96 fields with key fields SenderLogicalSystem, CFinPurchasingDocument, CFinPurchasingDocument. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CFinRpldPurchasingDocument | I_CFinRpldPurchasingDocument | from |
| I_PurchasingDocument | I_PurchasingDocument | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_CFinPurchasingDocumentItem | _CFinPurchasingDocumentItem | $projection.SenderLogicalSystem = _CFinPurchasingDocumentItem.SenderLogicalSystem and $projection.CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument |
| [0..1] | I_LogicalSystem | _LogicalSystem | $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | CFin Purchasing Document: Header | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | ICFINPOROOT | 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 |
Fields (96)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SenderLogicalSystem | SenderLogicalSystem | Sender Logical System | |
| KEY | CFinPurchasingDocument | Purchasing Document | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingDocumentSubtype | PurchasingDocumentSubtype | Control | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| CreationDate | CreationDate | Time Stamp | ||
| Supplier | Supplier | Supplier | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | PO Date | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| PricingDocument | PricingDocument | Doc. Condition | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Subj.to Release | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Incomplete | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Proc. State | ||
| CreatedByUser | CreatedByUser | User Name | ||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | ||
| PurchasingDocumentIsAged | PurchasingDocumentIsAged | Document aged | ||
| _CFinPurchasingDocumentItem | _CFinPurchasingDocumentItem | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PaymentTerms | _PaymentTerms | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PricingProcedure | _PricingProcedure | |||
| KEY | CFinPurchasingDocument | Purchasing Document | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingDocumentSubtype | PurchasingDocumentSubtype | Control | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| CreationDate | CreationDate | Time Stamp | ||
| Supplier | Supplier | Supplier | ||
| PaymentTerms | PaymentTerms | Pyt Terms | ||
| CashDiscount1Days | CashDiscount1Days | Days from Baseline Date for Payment | ||
| CashDiscount2Days | CashDiscount2Days | Days from Baseline Date for Payment | ||
| NetPaymentDays | NetPaymentDays | Net Pmt Terms Period | ||
| CashDiscount1Percent | CashDiscount1Percent | Disc. Percent 1 | ||
| CashDiscount2Percent | CashDiscount2Percent | Disc. Percent 2 | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| ExchangeRate | ExchangeRate | Exchange rate | ||
| ExchangeRateIsFixed | ExchangeRateIsFixed | Fixed Exch.Rate | ||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | PO Date | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| SupplyingSupplier | SupplyingSupplier | Goods Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| PricingDocument | PurchasingDocumentCondition | Doc. Condition | ||
| PricingProcedure | PricingProcedure | Procedure | ||
| InvoicingParty | InvoicingParty | Supplier | ||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | Subj.to Release | ||
| TaxReturnCountry | TaxReturnCountry | Reporting C/R | ||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | Incomplete | ||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Proc. State | ||
| CreatedByUser | CreatedByUser | User Name | ||
| IsEndOfPurposeBlocked | I_PurchasingDocument | IsEndOfPurposeBlocked | Busin. Purp. Cmpltd. | |
| PurchasingDocumentIsAged | I_PurchasingDocument | PurchasingDocumentIsAged | Document aged | |
| _CFinPurchasingDocumentItem | _CFinPurchasingDocumentItem | |||
| _CompanyCode | _CompanyCode | |||
| _PurchasingDocumentType | _PurchasingDocumentType | |||
| _PurchasingDocumentCategory | _PurchasingDocumentCategory | |||
| _Supplier | _Supplier | |||
| _SupplyingSupplier | _SupplyingSupplier | |||
| _InvoicingParty | _InvoicingParty | |||
| _PaymentTerms | _PaymentTerms | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _PurchasingGroup | _PurchasingGroup | |||
| _DocumentCurrency | _DocumentCurrency | |||
| _SupplyingPlant | _SupplyingPlant | |||
| _PricingProcedure | _PricingProcedure | |||
| _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_CFinPurchasingDocument.
-- 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_CFinPurchasingDocument AS
SELECT
SenderLogicalSystem,
cast( CFinRpldPurchasingDocument as fins_cfin_av_purchasing_doc preserving type ) AS CFinPurchasingDocument,
CompanyCode,
PurchasingDocumentCategory,
PurchasingDocumentType,
PurchasingDocumentSubtype,
PurchasingDocumentDeletionCode,
CreationDate,
Supplier,
PaymentTerms,
CashDiscount1Days,
CashDiscount2Days,
NetPaymentDays,
CashDiscount1Percent,
CashDiscount2Percent,
PurchasingOrganization,
PurchasingGroup,
DocumentCurrency,
ExchangeRate,
ExchangeRateIsFixed,
PurchasingDocumentOrderDate,
ValidityStartDate,
ValidityEndDate,
SupplyingSupplier,
SupplyingPlant,
PricingDocument,
PricingProcedure,
InvoicingParty,
ReleaseIsNotCompleted,
TaxReturnCountry,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
CreatedByUser,
IsEndOfPurposeBlocked,
PurchasingDocumentIsAged
FROM I_CFinRpldPurchasingDocument
LEFT OUTER JOIN I_CFinPurchasingDocumentItem AS _CFinPurchasingDocumentItem ON SenderLogicalSystem = _CFinPurchasingDocumentItem.SenderLogicalSystem AND CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument -- association [0..*]
LEFT OUTER JOIN I_LogicalSystem AS _LogicalSystem ON SenderLogicalSystem = _LogicalSystem.LogicalSystem -- association [0..1]
-- UNION ALL with additional select branch(es): I_PurchasingDocument
;
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