P_PL_SAFTPOSupplierInvoice
P_PL_SAFTPOSupplierInvoice is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentHistory) and exposes 6 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocumentHistory | I_PurchasingDocumentHistory | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SupplierInvoice | _SupplierInvoice | $projection.SupplierInvoice = _SupplierInvoice.SupplierInvoice and $projection.FiscalYear = _SupplierInvoice.FiscalYear |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPLSAFTPOSUPINV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (6)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | PurchasingDocument | ||
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | ||
| SupplierInvoice | ||||
| FiscalYear | ||||
| Item | ||||
| _SupplierInvoice | _SupplierInvoice |
@AbapCatalog.sqlViewName: 'PPLSAFTPOSUPINV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTPOSupplierInvoice
as select from I_PurchasingDocumentHistory
association [1..1] to I_SupplierInvoice as _SupplierInvoice on $projection.SupplierInvoice = _SupplierInvoice.SupplierInvoice
and $projection.FiscalYear = _SupplierInvoice.FiscalYear
{
key PurchasingDocument,
key PurchasingDocumentItem,
min(PurchasingHistoryDocument) as SupplierInvoice,
min(PurchasingHistoryDocumentYear) as FiscalYear,
min(PurchasingHistoryDocumentItem) as Item,
_SupplierInvoice
}
where
PurchasingHistoryDocumentType = '2'
group by
PurchasingDocument,
PurchasingDocumentItem
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENTHISTORY"
],
"ASSOCIATED":
[
"I_SUPPLIERINVOICE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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