I_PrftCtrCompanyCodeAssignment
Company code assignment to profit center
I_PrftCtrCompanyCodeAssignment is a Composite CDS View that provides data about "Company code assignment to profit center" in SAP S/4HANA. It has 2 associations to related views.
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_PrftCtrSpcfcCoCodeAssgmt | _PrftCtrSpcfcCoCodeAssgmt | $projection.ProfitCenter = _PrftCtrSpcfcCoCodeAssgmt.ProfitCenter and $projection.ControllingArea = _PrftCtrSpcfcCoCodeAssgmt.ControllingArea |
| [0..*] | I_CompanyCode | _CompanyCode | $projection.ControllingArea = _CompanyCode.ControllingArea |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIPRFTCTRCCASGN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| EndUserText.label | Company code assignment to profit center | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | ControllingArea | ||
| KEY | ProfitCenter | ProfitCenter | ||
| KEY | CompanyCode | |||
| _ControllingArea | _ControllingArea | |||
| _CompanyCode | _CompanyCode |
@AbapCatalog: {
sqlViewName: 'IFIPRFTCTRCCASGN',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@Metadata: {
ignorePropagatedAnnotations: true
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel: {
usageType: {
dataClass: #MASTER,
serviceQuality: #B,
sizeCategory: #M
},
supportedCapabilities: [ #CDS_MODELING_ASSOCIATION_TARGET, #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE ],
modelingPattern: [ #NONE ]
}
@EndUserText.label: 'Company code assignment to profit center'
define view I_PrftCtrCompanyCodeAssignment
as select distinct from I_ProfitCenter
association [0..*] to I_PrftCtrSpcfcCoCodeAssgmt as _PrftCtrSpcfcCoCodeAssgmt on $projection.ProfitCenter = _PrftCtrSpcfcCoCodeAssgmt.ProfitCenter
and $projection.ControllingArea = _PrftCtrSpcfcCoCodeAssgmt.ControllingArea
association [0..*] to I_CompanyCode as _CompanyCode on $projection.ControllingArea = _CompanyCode.ControllingArea
{
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_ControllingArea',
element: 'ControllingArea' }
}]
@ObjectModel.foreignKey.association: '_ControllingArea'
key ControllingArea,
key ProfitCenter,
@Consumption.valueHelpDefinition: [
{ entity: { name: 'I_CompanyCodeStdVH',
element: 'ControllingArea' }
}]
key coalesce( _PrftCtrSpcfcCoCodeAssgmt.CompanyCode, _CompanyCode.CompanyCode ) as CompanyCode,
_ControllingArea,
_CompanyCode
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_PRFTCTRSPCFCCOCODEASSGMT",
"I_PROFITCENTER"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_PRFTCTRSPCFCCOCODEASSGMT"
],
"BASE":
[
"I_PROFITCENTER"
],
"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