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 | ||
| KEY | CFinPurchasingDocument | |||
| CompanyCode | CompanyCode | |||
| PurchasingDocumentCategory | PurchasingDocumentCategory | |||
| PurchasingDocumentType | PurchasingDocumentType | |||
| PurchasingDocumentSubtype | PurchasingDocumentSubtype | |||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | |||
| CreationDate | CreationDate | |||
| Supplier | Supplier | |||
| PaymentTerms | PaymentTerms | |||
| CashDiscount1Days | CashDiscount1Days | |||
| CashDiscount2Days | CashDiscount2Days | |||
| NetPaymentDays | NetPaymentDays | |||
| CashDiscount1Percent | CashDiscount1Percent | |||
| CashDiscount2Percent | CashDiscount2Percent | |||
| PurchasingOrganization | PurchasingOrganization | |||
| PurchasingGroup | PurchasingGroup | |||
| DocumentCurrency | DocumentCurrency | |||
| ExchangeRate | ExchangeRate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | |||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | |||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| SupplyingSupplier | SupplyingSupplier | |||
| SupplyingPlant | SupplyingPlant | |||
| PricingDocument | PricingDocument | |||
| PricingProcedure | PricingProcedure | |||
| InvoicingParty | InvoicingParty | |||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | |||
| TaxReturnCountry | TaxReturnCountry | |||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | |||
| PurchasingProcessingStatus | PurchasingProcessingStatus | |||
| CreatedByUser | CreatedByUser | |||
| IsEndOfPurposeBlocked | IsEndOfPurposeBlocked | |||
| PurchasingDocumentIsAged | PurchasingDocumentIsAged | |||
| _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 | |||
| CompanyCode | CompanyCode | |||
| PurchasingDocumentCategory | PurchasingDocumentCategory | |||
| PurchasingDocumentType | PurchasingDocumentType | |||
| PurchasingDocumentSubtype | PurchasingDocumentSubtype | |||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | |||
| CreationDate | CreationDate | |||
| Supplier | Supplier | |||
| PaymentTerms | PaymentTerms | |||
| CashDiscount1Days | CashDiscount1Days | |||
| CashDiscount2Days | CashDiscount2Days | |||
| NetPaymentDays | NetPaymentDays | |||
| CashDiscount1Percent | CashDiscount1Percent | |||
| CashDiscount2Percent | CashDiscount2Percent | |||
| PurchasingOrganization | PurchasingOrganization | |||
| PurchasingGroup | PurchasingGroup | |||
| DocumentCurrency | DocumentCurrency | |||
| ExchangeRate | ExchangeRate | |||
| ExchangeRateIsFixed | ExchangeRateIsFixed | |||
| PurchasingDocumentOrderDate | PurchasingDocumentOrderDate | |||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| SupplyingSupplier | SupplyingSupplier | |||
| SupplyingPlant | SupplyingPlant | |||
| PricingDocument | PurchasingDocumentCondition | |||
| PricingProcedure | PricingProcedure | |||
| InvoicingParty | InvoicingParty | |||
| ReleaseIsNotCompleted | ReleaseIsNotCompleted | |||
| TaxReturnCountry | TaxReturnCountry | |||
| PurchasingCompletenessStatus | PurchasingCompletenessStatus | |||
| PurchasingProcessingStatus | PurchasingProcessingStatus | |||
| CreatedByUser | CreatedByUser | |||
| IsEndOfPurposeBlocked | I_PurchasingDocument | IsEndOfPurposeBlocked | ||
| PurchasingDocumentIsAged | I_PurchasingDocument | PurchasingDocumentIsAged | ||
| _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 |
@EndUserText.label: 'CFin Purchasing Document: Header'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
viewType:#COMPOSITE,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
authorizationCheck: #CHECK,
personalData.blocking: #('TRANSACTIONAL_DATA')
}
@AbapCatalog:{
sqlViewName: 'ICFINPOROOT',
preserveKey: true,
compiler.compareFilter: true
}
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #C,
sizeCategory: #L
}
}
/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] } */
define view I_CFinPurchasingDocument
as select from I_CFinRpldPurchasingDocument
association [0..*] to I_CFinPurchasingDocumentItem as _CFinPurchasingDocumentItem on $projection.SenderLogicalSystem = _CFinPurchasingDocumentItem.SenderLogicalSystem
and $projection.CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument
{
key SenderLogicalSystem,
key 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,
_CFinPurchasingDocumentItem,
_CompanyCode,
_PurchasingDocumentType,
_PurchasingDocumentCategory,
_Supplier,
_SupplyingSupplier,
_InvoicingParty,
_PaymentTerms,
_PurchasingOrganization,
_PurchasingGroup,
_DocumentCurrency,
_SupplyingPlant,
_PricingProcedure,
_LogicalSystem // Make association public
}
union all select from I_PurchasingDocument
association [0..*] to I_CFinPurchasingDocumentItem as _CFinPurchasingDocumentItem on $projection.SenderLogicalSystem = _CFinPurchasingDocumentItem.SenderLogicalSystem
and $projection.CFinPurchasingDocument = _CFinPurchasingDocumentItem.CFinPurchasingDocument
association [0..1] to I_LogicalSystem as _LogicalSystem on $projection.SenderLogicalSystem = _LogicalSystem.LogicalSystem
{
@ObjectModel.foreignKey.association: '_LogicalSystem'
key cast( ' ' as logsys preserving type ) as SenderLogicalSystem,
key cast( PurchasingDocument 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,
PurchasingDocumentCondition as PricingDocument,
PricingProcedure,
InvoicingParty,
ReleaseIsNotCompleted,
TaxReturnCountry,
PurchasingCompletenessStatus,
PurchasingProcessingStatus,
CreatedByUser,
I_PurchasingDocument.IsEndOfPurposeBlocked,
I_PurchasingDocument.PurchasingDocumentIsAged,
_CFinPurchasingDocumentItem,
_CompanyCode,
_PurchasingDocumentType,
_PurchasingDocumentCategory,
_Supplier,
_SupplyingSupplier,
_InvoicingParty,
_PaymentTerms,
_PurchasingOrganization,
_PurchasingGroup,
_DocumentCurrency,
_SupplyingPlant,
_PricingProcedure,
_LogicalSystem // Make association public
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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