P_DMVCCompanyCodeByPlant
P_DMVCCompanyCodeByPlant is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_Purreqvaluationarea, I_Plant) and exposes 3 fields with key fields Plant, CompanyCode.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Purreqvaluationarea | _Purreqvaluationarea | inner |
| I_Plant | I_Plant | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PDMVCCCP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Plant | I_Plant | Plant | |
| KEY | CompanyCode | I_Purreqvaluationarea | CompanyCode | |
| PlantName | I_Plant | PlantName |
@AbapCatalog.sqlViewName: 'PDMVCCCP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@ClientHandling.algorithm:#SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
@VDM.private:true
define view P_DMVCCompanyCodeByPlant
// I_Plant is on left side of the join, as we expect filter on Plant
as select from I_Plant
inner join I_Purreqvaluationarea as _Purreqvaluationarea on I_Plant.ValuationArea = _Purreqvaluationarea.ValuationArea
{
key I_Plant.Plant,
key _Purreqvaluationarea.CompanyCode,
I_Plant.PlantName
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PLANT",
"I_PURREQVALUATIONAREA"
],
"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