P_Purchasingdocument_Fs
P_Purchasingdocument_Fs is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_PurchasingDocument, I_PurchasingInfoRecord) and exposes 3 fields with key fields Supplier, Supplier, Material.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchasingDocument | PurchasingDoc | from |
| I_PurchasingInfoRecord | PurchasingInfoRecord | union |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPurchasingdocFs | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | I_PurchasingDocument | Supplier | |
| KEY | Supplier | |||
| KEY | Material | I_PurchasingInfoRecord | Material |
@AbapCatalog.sqlViewName: 'PPurchasingdocFs'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private: true
define view P_Purchasingdocument_Fs as select from I_PurchasingDocument as PurchasingDoc
join I_PurchasingDocumentItem as PurchasingDocItem on PurchasingDocItem.PurchasingDocument = PurchasingDoc.PurchasingDocument
//left outer join I_PurchasingInfoRecord as PurchasingInfoRecord on PurchasingDocItem.Material = PurchasingInfoRecord.Material and PurchasingInfoRecord.Supplier = PurchasingDoc.Supplier
{
// key PurchasingDoc.PurchasingDocument,
key PurchasingDoc.Supplier,
key PurchasingDocItem.Material
}
union select from I_PurchasingInfoRecord as PurchasingInfoRecord
{
key PurchasingInfoRecord.Supplier,
key PurchasingInfoRecord.Material
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PURCHASINGDOCUMENT",
"I_PURCHASINGDOCUMENTITEM",
"I_PURCHASINGINFORECORD"
],
"ASSOCIATED":
[],
"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