P_CostElementByCompanyCode
P_CostElementByCompanyCode is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CostElement) and exposes 4 fields with key fields CompanyCode, CostElement, ControllingArea. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostElement | I_CostElement | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_GLAccountInCompanyCode | _GLAccountInCompanyCode | _GLAccountInCompanyCode.GLAccount = $projection.CostElement |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCSTELEMBYCOCODE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | _GLAccountInCompanyCode | CompanyCode | |
| KEY | CostElement | CostElement | ||
| KEY | ControllingArea | ControllingArea | ||
| _GLAccountInCompanyCode | _GLAccountInCompanyCode |
@AbapCatalog.sqlViewName: 'PCSTELEMBYCOCODE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_CostElementByCompanyCode as select from I_CostElement
association [1..*] to I_GLAccountInCompanyCode as _GLAccountInCompanyCode
on _GLAccountInCompanyCode.GLAccount = $projection.CostElement
{
key _GLAccountInCompanyCode.CompanyCode,
key CostElement,
key ControllingArea,
_GLAccountInCompanyCode
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTELEMENT",
"I_GLACCOUNTINCOMPANYCODE"
],
"ASSOCIATED":
[
"I_GLACCOUNTINCOMPANYCODE"
],
"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