FAC_DART_Z3_PROFITCENTER
Profit Center
FAC_DART_Z3_PROFITCENTER is a CDS View that provides data about "Profit Center" in SAP S/4HANA. It reads from 2 data sources (FAC_DART_Z3_PROFITCENTER_BASE, I_LedgerCompanyCodeCrcyRoles) and exposes 47 fields with key fields ProfitCenter, ControllingArea, ValidityEndDate, CompanyCode. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| FAC_DART_Z3_PROFITCENTER_BASE | FAC_DART_Z3_PROFITCENTER_BASE | from |
| I_LedgerCompanyCodeCrcyRoles | I_LedgerCompanyCodeCrcyRoles | inner |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| P_Ledger | fins_ledger | |
| P_FiscalYear | fins_gjahr | |
| P_FromFiscalPeriod | fins_fagl_fiscper_from | |
| P_ToFiscalPeriod | fins_fagl_fiscper_to | |
| P_Language | sylangu |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_FiscalPeriodForVariant | _ToFiscalPeriodForVariant | _ToFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant and _ToFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear and _ToFiscalPeriodForVariant.FiscalPeriod = $parameters.P_ToFiscalPeriod |
| [0..1] | I_FiscalPeriodForVariant | _FromFiscalPeriodForVariant | _FromFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant and _FromFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear and _FromFiscalPeriodForVariant.FiscalPeriod = $parameters.P_FromFiscalPeriod |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FAC_DZPROFITCTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Profit Center | 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 (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProfitCenter | _profitcenter | ProfitCenter | |
| KEY | ControllingArea | _profitcenter | ControllingArea | |
| KEY | ValidityEndDate | _profitcenter | ValidityEndDate | |
| KEY | CompanyCode | _profitcenter | CompanyCode | |
| ControllingAreaName | ControllingAreaName | |||
| InputCompanyCode | _profitcenter | CompanyCode | Company Code | |
| ProfitCenterName | ProfitCenterName | |||
| ProfitCenterLongName | ProfitCenterLongName | Description of Profit Center Long | ||
| FiscalYearVariant | I_LedgerCompanyCodeCrcyRoles | FiscalYearVariant | ||
| 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 | |||
| SystemClient | System Client | |||
| _Text | _Text | |||
| _Country | _Country | |||
| _ControllingArea | _ControllingArea | |||
| _ProfitCenterHierarchyNode | _ProfitCenterHierarchyNode | |||
| _Language | _Language | |||
| _Segment | _Segment | |||
| _Region | _Region |
@AbapCatalog.sqlViewName: 'FAC_DZPROFITCTR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Profit Center'
@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
with parameters
P_Ledger : fins_ledger,
P_FiscalYear : fins_gjahr,
@EndUserText.label: 'From Fiscal Period'
P_FromFiscalPeriod : fins_fagl_fiscper_from,
@EndUserText.label: 'To Fiscal Period'
P_ToFiscalPeriod : fins_fagl_fiscper_to,
@Consumption.hidden: true
@Environment.systemField: #SYSTEM_LANGUAGE
P_Language : sylangu
as select from FAC_DART_Z3_PROFITCENTER_BASE( P_Language : $parameters.P_Language ) as _profitcenter
inner join I_LedgerCompanyCodeCrcyRoles on I_LedgerCompanyCodeCrcyRoles.CompanyCode = _profitcenter.CompanyCode
and I_LedgerCompanyCodeCrcyRoles.Ledger = $parameters.P_Ledger
association [0..1] to I_FiscalPeriodForVariant as _ToFiscalPeriodForVariant on _ToFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant
and _ToFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear
and _ToFiscalPeriodForVariant.FiscalPeriod = $parameters.P_ToFiscalPeriod
association [0..1] to I_FiscalPeriodForVariant as _FromFiscalPeriodForVariant on _FromFiscalPeriodForVariant.FiscalYearVariant = $projection.FiscalYearVariant
and _FromFiscalPeriodForVariant.FiscalYear = $parameters.P_FiscalYear
and _FromFiscalPeriodForVariant.FiscalPeriod = $parameters.P_FromFiscalPeriod
{
key _profitcenter.ProfitCenter,
@ObjectModel.foreignKey.association: '_ControllingArea'
key _profitcenter.ControllingArea,
key _profitcenter.ValidityEndDate,
key _profitcenter.CompanyCode,
ControllingAreaName,
@EndUserText.label: 'Company Code'
_profitcenter.CompanyCode as InputCompanyCode,
ProfitCenterName,
@EndUserText.label: 'Description of Profit Center Long'
ProfitCenterLongName,
I_LedgerCompanyCodeCrcyRoles.FiscalYearVariant as FiscalYearVariant,
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,
@EndUserText.label: 'System Client'
$session.client as SystemClient,
_Text,
_Country,
_ControllingArea,
_ProfitCenterHierarchyNode,
_Language,
_Segment,
_Region
}
where
_profitcenter.ValidityEndDate >= _FromFiscalPeriodForVariant.FiscalPeriodStartDate
and _profitcenter.ValidityStartDate <= _ToFiscalPeriodForVariant.FiscalPeriodEndDate
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FAC_DART_Z3_PROFITCENTER_BASE",
"I_FISCALPERIODFORVARIANT",
"I_LEDGERCOMPANYCODECRCYROLES"
],
"ASSOCIATED":
[
"I_CONTROLLINGAREA",
"I_COUNTRY",
"I_FISCALPERIODFORVARIANT",
"I_LANGUAGE",
"I_PROFITCENTERHIERARCHYNODE",
"I_PROFITCENTERTEXT",
"I_REGION",
"I_SEGMENT"
],
"BASE":
[
"FAC_DART_Z3_PROFITCENTER_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