FAC_DART_Z3_PROFITCENTER_BASE

DDL: FAC_DART_Z3_PROFITCNTR_BASE SQL: FAC_DZPROFITCTRB Type: view

Profit Center Master Data Base

FAC_DART_Z3_PROFITCENTER_BASE is a CDS View that provides data about "Profit Center Master Data Base" in SAP S/4HANA. It reads from 4 data sources (cepc_bukrs, I_ProfitCenter, I_ProfitCenter, I_CompanyCode) and exposes 89 fields with key fields ProfitCenter, ControllingArea, ValidityEndDate, CompanyCodeAssigned, CompanyCode.

Data Sources (4)

SourceAliasJoin Type
cepc_bukrs _assignedcocode inner
I_ProfitCenter _profitcenter from
I_ProfitCenter _profitcenter union_all
I_CompanyCode I_CompanyCode inner

Parameters (1)

NameTypeDefault
P_Language sylangu

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName FAC_DZPROFITCTRB view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
EndUserText.label Profit Center Master Data Base view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view

Fields (89)

KeyFieldSource TableSource FieldDescription
KEY ProfitCenter I_ProfitCenter ProfitCenter
KEY ControllingArea I_ProfitCenter ControllingArea
KEY ValidityEndDate I_ProfitCenter ValidityEndDate
KEY CompanyCodeAssigned cepc_bukrs bukrs
KEY CompanyCode cepc_bukrs bukrs
ControllingAreaName _ControllingArea ControllingAreaName
ProfitCenterName
ProfitCenterLongName
ProfitCtrResponsibleUser ProfitCtrResponsibleUser
ValidityStartDate ValidityStartDate
Department Department
ProfitCenterStandardHierarchy ProfitCenterStandardHierarchy
Segment Segment
ProfitCenterIsBlocked ProfitCenterIsBlocked
FormulaPlanningTemplate FormulaPlanningTemplate
FormOfAddress FormOfAddress
AddressName AddressName
AdditionalName AdditionalName
ProfitCenterAddrName3 ProfitCenterAddrName3
ProfitCenterAddrName4 ProfitCenterAddrName4
StreetAddressName StreetAddressName
POBox POBox
CityName CityName
PostalCode PostalCode
District District
Country Country
Region Region
TaxJurisdiction TaxJurisdiction
Language Language
PhoneNumber1 PhoneNumber1
PhoneNumber2 PhoneNumber2
TeleboxNumber TeleboxNumber
TelexNumber TelexNumber
FaxNumber FaxNumber
DataCommunicationPhoneNumber DataCommunicationPhoneNumber
ProfitCenterPrinterName ProfitCenterPrinterName
ProfitCenterCreatedByUser ProfitCenterCreatedByUser
ProfitCenterCreationDate ProfitCenterCreationDate
_Text _Text
_Country _Country
_ControllingArea _ControllingArea
_ProfitCenterHierarchyNode _ProfitCenterHierarchyNode
_Language _Language
_Segment _Segment
ProfitCenter
KEY ControllingArea I_ProfitCenter ControllingArea
KEY ValidityEndDate I_ProfitCenter ValidityEndDate
KEY CompanyCodeAssigned cepc_bukrs bukrs
KEY CompanyCode I_CompanyCode CompanyCode
ControllingAreaName
ProfitCenterName
ProfitCenterLongName
ProfitCtrResponsibleUser ProfitCtrResponsibleUser
ValidityStartDate ValidityStartDate
Department Department
ProfitCenterStandardHierarchy ProfitCenterStandardHierarchy
Segment Segment
ProfitCenterIsBlocked ProfitCenterIsBlocked
FormulaPlanningTemplate FormulaPlanningTemplate
FormOfAddress FormOfAddress
AddressName AddressName
AdditionalName AdditionalName
ProfitCenterAddrName3 ProfitCenterAddrName3
ProfitCenterAddrName4 ProfitCenterAddrName4
StreetAddressName StreetAddressName
POBox POBox
CityName I_ProfitCenter CityName
PostalCode PostalCode
District District
Country I_ProfitCenter Country
Region Region
TaxJurisdiction TaxJurisdiction
Language I_ProfitCenter Language
PhoneNumber1 PhoneNumber1
PhoneNumber2 PhoneNumber2
TeleboxNumber TeleboxNumber
TelexNumber TelexNumber
FaxNumber FaxNumber
DataCommunicationPhoneNumber DataCommunicationPhoneNumber
ProfitCenterPrinterName ProfitCenterPrinterName
ProfitCenterCreatedByUser ProfitCenterCreatedByUser
ProfitCenterCreationDate ProfitCenterCreationDate
_Text _Text
_Country _Country
_ControllingArea _ControllingArea
_ProfitCenterHierarchyNode _ProfitCenterHierarchyNode
_Language _Language
_Segment _Segment
_Region _Region
@AbapCatalog.sqlViewName: 'FAC_DZPROFITCTRB'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Profit Center Master Data Base'
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED

define view FAC_DART_Z3_PROFITCENTER_BASE
  with parameters
    @Consumption.hidden: true
    @Environment.systemField: #SYSTEM_LANGUAGE
    P_Language : sylangu
  as select from I_ProfitCenter as _profitcenter

  inner join cepc_bukrs as _assignedcocode    on  _assignedcocode.kokrs = _profitcenter.ControllingArea
                                              and _assignedcocode.prctr = _profitcenter.ProfitCenter

{

  key _profitcenter.ProfitCenter,
      @ObjectModel.foreignKey.association: '_ControllingArea'
  key _profitcenter.ControllingArea,
  key _profitcenter.ValidityEndDate,
  key _assignedcocode.bukrs as CompanyCodeAssigned,
  key _assignedcocode.bukrs as CompanyCode,
      _ControllingArea.ControllingAreaName,
      _profitcenter._Text[1:Language=$parameters.P_Language].ProfitCenterName,
      _profitcenter._Text[1:Language=$parameters.P_Language].ProfitCenterLongName,

      ProfitCtrResponsibleUser,
      @Semantics.businessDate.from: true
      ValidityStartDate,
      Department,
      ProfitCenterStandardHierarchy,
      //--[ GENERATED:012:29JlHNUf7jY4ipE4XHfNBG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_SegmentStdVH',
                     element: 'Segment' }
        }]
      //@ObjectModel.text.association: '_SegmentText'

      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_Segment' //Inserted by VDM CDS Suite Plugin

      Segment,
      ProfitCenterIsBlocked,
      FormulaPlanningTemplate,
      FormOfAddress,
      AddressName,
      AdditionalName,
      ProfitCenterAddrName3,
      ProfitCenterAddrName4,
      StreetAddressName,
      POBox,
      CityName,
      PostalCode,
      District,
      @ObjectModel.foreignKey.association: '_Country' //Inserted by VDM CDS Suite Plugin

      Country,
      @ObjectModel.foreignKey.association: '_Region'
      Region,
      TaxJurisdiction,
      @Semantics.language:true
      @ObjectModel.foreignKey.association: '_Language' //Inserted by VDM CDS Suite Plugin

      Language,
      PhoneNumber1,
      PhoneNumber2,
      TeleboxNumber,
      TelexNumber,
      FaxNumber,
      DataCommunicationPhoneNumber,
      ProfitCenterPrinterName,
      ProfitCenterCreatedByUser,
      ProfitCenterCreationDate,

      _Text,
      _Country,
      _ControllingArea,
      _ProfitCenterHierarchyNode,
      _Language,
      _Segment,
      _Region



}

union all 

select from I_ProfitCenter as _profitcenter
  inner join I_CompanyCode on I_CompanyCode.CompanyCode <> ''
  left outer to many join cepc_bukrs as _assignedcocode    on  _assignedcocode.kokrs = _profitcenter.ControllingArea
                                                         and _assignedcocode.prctr = _profitcenter.ProfitCenter

{

  key _profitcenter.ProfitCenter,
      @ObjectModel.foreignKey.association: '_ControllingArea'
  key _profitcenter.ControllingArea,
  key _profitcenter.ValidityEndDate,
  key _assignedcocode.bukrs as CompanyCodeAssigned,
  key I_CompanyCode.CompanyCode,
      _profitcenter._ControllingArea.ControllingAreaName,
      _profitcenter._Text[1:Language=$parameters.P_Language].ProfitCenterName,
      _profitcenter._Text[1:Language=$parameters.P_Language].ProfitCenterLongName,

      ProfitCtrResponsibleUser,
      @Semantics.businessDate.from: true
      ValidityStartDate,
      Department,
      ProfitCenterStandardHierarchy,
      //--[ GENERATED:012:29JlHNUf7jY4ipE4XHfNBG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_SegmentStdVH',
                     element: 'Segment' }
        }]
      //@ObjectModel.text.association: '_SegmentText'

      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_Segment' //Inserted by VDM CDS Suite Plugin

      Segment,
      ProfitCenterIsBlocked,
      FormulaPlanningTemplate,
      FormOfAddress,
      AddressName,
      AdditionalName,
      ProfitCenterAddrName3,
      ProfitCenterAddrName4,
      StreetAddressName,
      POBox,
      _profitcenter.CityName,
      PostalCode,
      District,
      @ObjectModel.foreignKey.association: '_Country' //Inserted by VDM CDS Suite Plugin

      _profitcenter.Country,
      @ObjectModel.foreignKey.association: '_Region'
      Region,
      TaxJurisdiction,
      @Semantics.language:true
      @ObjectModel.foreignKey.association: '_Language' //Inserted by VDM CDS Suite Plugin

      _profitcenter.Language,
      PhoneNumber1,
      PhoneNumber2,
      TeleboxNumber,
      TelexNumber,
      FaxNumber,
      DataCommunicationPhoneNumber,
      ProfitCenterPrinterName,
      ProfitCenterCreatedByUser,
      ProfitCenterCreationDate,

      _Text,
      _Country,
      _ControllingArea,
      _ProfitCenterHierarchyNode,
      _Language,
      _Segment,
      _Region



}
where _assignedcocode.bukrs is null or _assignedcocode.bukrs = ''


/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_CONTROLLINGAREA",
"I_PROFITCENTER",
"I_PROFITCENTERTEXT",
"CEPC_BUKRS"
],
"ASSOCIATED":
[
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_LANGUAGE",
"I_PROFITCENTERHIERARCHYNODE",
"I_PROFITCENTERTEXT",
"I_REGION",
"I_SEGMENT"
],
"BASE":
[
"I_PROFITCENTER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/