I_PrftCtrCompanyCodeAssignment

DDL: I_PRFTCTRCOMPANYCODEASSIGNMENT Type: view COMPOSITE

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)

CardinalityTargetAliasCondition
[0..*] I_PrftCtrSpcfcCoCodeAssgmt _PrftCtrSpcfcCoCodeAssgmt $projection.ProfitCenter = _PrftCtrSpcfcCoCodeAssgmt.ProfitCenter and $projection.ControllingArea = _PrftCtrSpcfcCoCodeAssgmt.ControllingArea
[0..*] I_CompanyCode _CompanyCode $projection.ControllingArea = _CompanyCode.ControllingArea

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/