I_CostCenterVH
Cost Center
I_CostCenterVH is a Basic CDS View that provides data about "Cost Center" in SAP S/4HANA. It reads from 1 data source (I_CostCenter) and exposes 17 fields with key fields CostCenter, ControllingArea, ValidityEndDate. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenter | CostCenter | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ControllingArea | _ControllingAreaText | $projection.ControllingArea = _ControllingAreaText.ControllingArea association[0..*] to I_CostCenterText as _Text on $projection.ControllingArea = _Text.ControllingArea and $projection.CostCenter = _Text.CostCenter and $projection.ValidityEndDate = _Text.ValidityEndDate |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Cost Center | view | |
| AbapCatalog.sqlViewName | IFICOSTCENTERVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.representativeKey | CostCenter | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| AccessControl.authorizationCheck | #CHECK | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CostCenter | I_CostCenter | CostCenter | |
| KEY | ControllingArea | I_CostCenter | ControllingArea | |
| KEY | ValidityEndDate | I_CostCenter | ValidityEndDate | |
| CostCenterName | ||||
| CompanyCode | I_CostCenter | CompanyCode | ||
| CostCenterCategory | I_CostCenter | CostCenterCategory | ||
| CostCtrResponsiblePersonName | I_CostCenter | CostCtrResponsiblePersonName | ||
| CostCtrResponsibleUser | I_CostCenter | CostCtrResponsibleUser | ||
| ValidityStartDate | I_CostCenter | ValidityStartDate | ||
| ProfitCenter | I_CostCenter | ProfitCenter | ||
| CostCenterResponsibilityArea | ||||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenterCategory | _CostCenterCategory | |||
| _ProfitCenter | _ProfitCenter | |||
| _Text | _Text | |||
| _ControllingAreaText | _ControllingAreaText |
@VDM.viewType: #BASIC
@EndUserText.label: 'Cost Center'
@AbapCatalog.sqlViewName: 'IFICOSTCENTERVH'
@AbapCatalog.compiler.compareFilter: true
@ObjectModel.representativeKey: 'CostCenter'
@ObjectModel.semanticKey: [ 'ControllingArea', 'CostCenter', 'ValidityEndDate' ]
@ObjectModel.dataCategory:#VALUE_HELP
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #M
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking: #NOT_REQUIRED
@Search.searchable: true
@Consumption.ranked: true
@AccessControl.authorizationCheck: #CHECK
//--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG
@AccessControl.privilegedAssociations: ['_ControllingAreaText', '_Text']
// ]--GENERATED
define view I_CostCenterVH
as select from I_CostCenter as CostCenter
//--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG
association [0..1] to I_ControllingArea as _ControllingAreaText on $projection.ControllingArea = _ControllingAreaText.ControllingArea
// ]--GENERATED
association[0..*] to I_CostCenterText as _Text on $projection.ControllingArea = _Text.ControllingArea and
$projection.CostCenter = _Text.CostCenter and
$projection.ValidityEndDate = _Text.ValidityEndDate
{
@ObjectModel.text.element:[ 'CostCenterName' ]
@Search: { defaultSearchElement: true, ranking: #HIGH }
key CostCenter.CostCenter as CostCenter,
//--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_ControllingAreaStdVH',
element: 'ControllingArea' }
}]
@ObjectModel.text.association: '_ControllingAreaText'
// ]--GENERATED
@UI.hidden: true
key CostCenter.ControllingArea as ControllingArea,
@Search: { defaultSearchElement: true, ranking: #LOW }
@Semantics.businessDate.to: true
@Consumption.filter.multipleSelections: false
@Consumption.filter.selectionType: #SINGLE
key CostCenter.ValidityEndDate as ValidityEndDate,
_Text[1:Language=$session.system_language].CostCenterName,
//--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_CompanyCodeStdVH',
element: 'CompanyCode' }
}]
// ]--GENERATED
@Search: { defaultSearchElement: true, ranking: #LOW }
CostCenter.CompanyCode as CompanyCode,
@Search: { defaultSearchElement: true, ranking: #LOW }
CostCenter.CostCenterCategory as CostCenterCategory,
@Search: { defaultSearchElement: true, ranking: #LOW }
CostCenter.CostCtrResponsiblePersonName as CostCtrResponsiblePersonName,
@Search: { defaultSearchElement: true, ranking: #LOW }
CostCenter.CostCtrResponsibleUser as CostCtrResponsibleUser,
@Search: { defaultSearchElement: true, ranking: #LOW }
@Semantics.businessDate.from: true
@Consumption.filter.multipleSelections: false
@Consumption.filter.selectionType: #SINGLE
CostCenter.ValidityStartDate as ValidityStartDate,
@Search: { defaultSearchElement: true, ranking: #LOW }
CostCenter.ProfitCenter as ProfitCenter,
@UI.hidden: true
concat('KS', concat(ControllingArea, CostCenter)) as CostCenterResponsibilityArea,
// @UI.hidden: true
// concat('HI', concat(ControllingArea, CostCenterStandardHierArea)) as HierarchyResponsibilityArea,
// associations
_ControllingArea,
_CompanyCode,
_CostCenterCategory,
@Consumption.filter.businessDate.at: true
_ProfitCenter,
// _UserRespContactCard,
_Text,
//--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG
@Consumption.hidden: true
_ControllingAreaText
// ]--GENERATED
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCENTER",
"I_COSTCENTERTEXT"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_COSTCENTERCATEGORY",
"I_COSTCENTERTEXT",
"I_PROFITCENTER"
],
"BASE":
[
"I_COSTCENTER"
],
"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