I_ServiceCostRate

DDL: I_SERVICECOSTRATE SQL: IFISRVCOSTRATE Type: view BASIC

Interface View for Service Cost Rate

I_ServiceCostRate is a Basic CDS View (Fact) that provides data about "Interface View for Service Cost Rate" in SAP S/4HANA. It reads from 1 data source (P_AccountingCostRate) and exposes 42 fields with key field AccountingCostRateUUID. It has 16 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_AccountingCostRate _Rate from

Associations (16)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CompanyCode _ReceivingCompanyCode $projection.ReceivingCompanyCode = _ReceivingCompanyCode.CompanyCode
[0..1] I_Currency _Currency $projection.Currency = _Currency.Currency
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..1] I_CostCenter _CurrentCostCenter $projection.ControllingArea = _CurrentCostCenter.ControllingArea and $projection.CostCenter = _CurrentCostCenter.CostCenter and _CurrentCostCenter.ValidityStartDate <= $session.system_date and _CurrentCostCenter.ValidityEndDate >= $session.system_date
[0..*] I_CostCenterActivityType _CostCtrActivityType $projection.ControllingArea = _CostCtrActivityType.ControllingArea and $projection.ActivityType = _CostCtrActivityType.CostCtrActivityType
[0..1] I_CostCenterActivityType _CurrentCostCtrActyType $projection.ControllingArea = _CurrentCostCtrActyType.ControllingArea and $projection.ActivityType = _CurrentCostCtrActyType.CostCtrActivityType and _CurrentCostCtrActyType.ValidityStartDate <= $session.system_date and _CurrentCostCtrActyType.ValidityEndDate >= $session.system_date
[0..1] I_WorkItem _WorkItem $projection.WorkItem = _WorkItem.WorkItem
[0..*] I_ServiceCostLevel _ServiceCostLevel $projection.ServiceCostLevel = _ServiceCostLevel.ServiceCostLevel
[0..1] I_ServiceCostLevel _CurrentServiceCostLevel $projection.ServiceCostLevel = _CurrentServiceCostLevel.ServiceCostLevel and _CurrentServiceCostLevel.ValidityStartDate <= $session.system_date and _CurrentServiceCostLevel.ValidityEndDate >= $session.system_date
[0..1] I_Employment _Employment $projection.PersonnelNumber = _Employment.EmploymentInternalID and _Employment.StartDate <= $session.system_date and _Employment.EndDate >= $session.system_date
[1] I_PersonWorkAgreement_1 _PersonWorkAgreement $projection.PersonnelNumber = _PersonWorkAgreement.PersonWorkAgreement
[0..1] I_WBSElement _WBSElement $projection.WBSElementExternalID = _WBSElement.WBSElement
[0..1] I_WBSElementByInternalKey _WBSElementInternalID $projection.WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
[1..1] E_AccountingCostRate _Extension $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IFISRVCOSTRATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Interface View for Service Cost Rate view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
Analytics.dataCategory #FACT view
Analytics.dataExtraction.enabled true view
Analytics.dataExtraction.delta.changeDataCapture.automatic true view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_ServiceCostRate_2 view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY AccountingCostRateUUID AccountingCostRateUUID
Ledger P_AccountingCostRate Ledger
CurrencyRole CurrencyRole
CompanyCode CompanyCode
ControllingArea ControllingArea
CostCenter CostCenter
ActivityType ActivityType
IsIntercompanyRate IsIntercompanyRate
ReceivingCompanyCode ReceivingCompanyCode
ServiceCostLevel ServiceCostLevel
PersonnelNumber PersonnelNumber
WBSElementInternalID WBSElementInternalID
WBSElementExternalID WBSElementExternalID
WorkItem WorkItem
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
ValidityStartFiscalYear ValidityStartFiscalYear
ValidityStartFiscalPeriod ValidityStartFiscalPeriod
ValidityStartFiscalYearPeriod
ValidityStartDate ValidityStartDate
ValidityEndFiscalYear ValidityEndFiscalYear
ValidityEndFiscalPeriod ValidityEndFiscalPeriod
ValidityEndFiscalYearPeriod
ValidityEndDate ValidityEndDate
CostCtrActivityTypeQtyUnit CostCtrActivityTypeQtyUnit
Currency Currency
CostRateVarblAmount
CostRateScaleFactor CostRateScaleFactor
_CompanyCode _CompanyCode
_ReceivingCompanyCode _ReceivingCompanyCode
_CostCenter _CostCenter
_CurrentCostCenter _CurrentCostCenter
_CostCtrActivityType _CostCtrActivityType
_CurrentCostCtrActyType _CurrentCostCtrActyType
_ServiceCostLevel _ServiceCostLevel
_CurrentServiceCostLevel _CurrentServiceCostLevel
_Employment _Employment
_PersonWorkAgreement _PersonWorkAgreement
_WorkItem _WorkItem
_WBSElement _WBSElement
_WBSElementInternalID _WBSElementInternalID
_Currency _Currency
_UnitOfMeasure _UnitOfMeasure
@AbapCatalog.sqlViewName: 'IFISRVCOSTRATE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Interface View for Service Cost Rate'
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling: {
  type:      #CLIENT_DEPENDENT,
  algorithm: #SESSION_VARIABLE
}
@ObjectModel: {
    usageType: {
        sizeCategory: #L,
        serviceQuality: #B,
        dataClass: #TRANSACTIONAL
    },
    supportedCapabilities: [
        #SQL_DATA_SOURCE,
        #CDS_MODELING_DATA_SOURCE,
        #CDS_MODELING_ASSOCIATION_TARGET,
        #EXTRACTION_DATA_SOURCE
    ]
}
@VDM.viewType: #BASIC

@Analytics:{
    dataCategory: #FACT,
    dataExtraction: {
        enabled: true,
        delta.changeDataCapture: {
        automatic: true
        }
    }
}

@VDM.lifecycle.status: #DEPRECATED
@VDM.lifecycle.successor: 'I_ServiceCostRate_2'

define view I_ServiceCostRate
  as select from P_AccountingCostRate as _Rate
  // inner join   I_Ledger             as _Ledger on  _Rate.Ledger            = _Ledger.Ledger

  //                                             and _Ledger.IsLeadingLedger = 'X'

  association [0..1] to I_CompanyCode             as _CompanyCode             on  $projection.CompanyCode = _CompanyCode.CompanyCode
  association [0..1] to I_CompanyCode             as _ReceivingCompanyCode    on  $projection.ReceivingCompanyCode = _ReceivingCompanyCode.CompanyCode
  association [0..1] to I_Currency                as _Currency                on  $projection.Currency = _Currency.Currency
  association [0..*] to I_CostCenter              as _CostCenter              on  $projection.ControllingArea = _CostCenter.ControllingArea
                                                                              and $projection.CostCenter      = _CostCenter.CostCenter
  association [0..1] to I_CostCenter              as _CurrentCostCenter       on  $projection.ControllingArea          = _CurrentCostCenter.ControllingArea
                                                                              and $projection.CostCenter               = _CurrentCostCenter.CostCenter
                                                                              and _CurrentCostCenter.ValidityStartDate <= $session.system_date
                                                                              and _CurrentCostCenter.ValidityEndDate   >= $session.system_date
  association [0..*] to I_CostCenterActivityType  as _CostCtrActivityType     on  $projection.ControllingArea = _CostCtrActivityType.ControllingArea
                                                                              and $projection.ActivityType    = _CostCtrActivityType.CostCtrActivityType
  association [0..1] to I_CostCenterActivityType  as _CurrentCostCtrActyType  on  $projection.ControllingArea               = _CurrentCostCtrActyType.ControllingArea
                                                                              and $projection.ActivityType                  = _CurrentCostCtrActyType.CostCtrActivityType
                                                                              and _CurrentCostCtrActyType.ValidityStartDate <= $session.system_date
                                                                              and _CurrentCostCtrActyType.ValidityEndDate   >= $session.system_date
  association [0..1] to I_WorkItem                as _WorkItem                on  $projection.WorkItem = _WorkItem.WorkItem
  association [0..*] to I_ServiceCostLevel        as _ServiceCostLevel        on  $projection.ServiceCostLevel = _ServiceCostLevel.ServiceCostLevel
  association [0..1] to I_ServiceCostLevel        as _CurrentServiceCostLevel on  $projection.ServiceCostLevel               = _CurrentServiceCostLevel.ServiceCostLevel
                                                                              and _CurrentServiceCostLevel.ValidityStartDate <= $session.system_date
                                                                              and _CurrentServiceCostLevel.ValidityEndDate   >= $session.system_date
  association [0..1] to I_Employment              as _Employment              on  $projection.PersonnelNumber = _Employment.EmploymentInternalID
                                                                              and _Employment.StartDate       <= $session.system_date
                                                                              and _Employment.EndDate         >= $session.system_date
  association [1]    to I_PersonWorkAgreement_1   as _PersonWorkAgreement     on  $projection.PersonnelNumber = _PersonWorkAgreement.PersonWorkAgreement                                                                            
  association [0..1] to I_WBSElement              as _WBSElement              on  $projection.WBSElementExternalID = _WBSElement.WBSElement
  association [0..1] to I_WBSElementByInternalKey as _WBSElementInternalID    on  $projection.WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID
  association [0..1] to I_UnitOfMeasure           as _UnitOfMeasure           on  $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
  association [1..1] to E_AccountingCostRate      as _Extension               on  $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID
{

  key AccountingCostRateUUID,

      _Rate.Ledger,
      CurrencyRole,
      CompanyCode,
      ControllingArea,

      CostCenter,
      ActivityType,
      IsIntercompanyRate,
      ReceivingCompanyCode,
      ServiceCostLevel,
      PersonnelNumber,
      
//      @API.element.releaseState: #DEPRECATED

//      @API.element.successor: 'WBSElementInternalID_2'

      WBSElementInternalID,
//      WBSElementInternalID_2,

//      @API.element.releaseState: #DEPRECATED

//      @API.element.successor: 'WBSElementExternalID_2'

      WBSElementExternalID,
//      WBSElementExternalID_2,


      WorkItem,
      TimeSheetOvertimeCategory,
      @Semantics.fiscal.year: true
      ValidityStartFiscalYear,
      @Semantics.fiscal.period: true
      ValidityStartFiscalPeriod,
      @Semantics.fiscal.yearPeriod: true
      cast((concat( ValidityStartFiscalYear, ValidityStartFiscalPeriod )) as fins_fyearperiod) as ValidityStartFiscalYearPeriod,
      @Semantics.businessDate.from: true
      ValidityStartDate,
      @Semantics.fiscal.year: true
      ValidityEndFiscalYear,
      @Semantics.fiscal.period: true
      ValidityEndFiscalPeriod,
      @Semantics.fiscal.yearPeriod: true
      cast((concat( ValidityEndFiscalYear, ValidityEndFiscalPeriod )) as fins_fyearperiod)     as ValidityEndFiscalYearPeriod,
      @Semantics.businessDate.to: true
      ValidityEndDate,

      @Semantics.unitOfMeasure:true
      CostCtrActivityTypeQtyUnit,
      @Semantics.currencyCode: true
      Currency,

      @Semantics.amount.currencyCode: 'Currency'
      cast(CostRateTotalAmount - CostRateFixedAmount as fco_rate_varbl_amount)                 as CostRateVarblAmount,
      CostRateScaleFactor,

      _CompanyCode,
      _ReceivingCompanyCode,
      _CostCenter,
      _CurrentCostCenter,
      _CostCtrActivityType,
      _CurrentCostCtrActyType,
      _ServiceCostLevel,
      _CurrentServiceCostLevel,
      _Employment,
      _PersonWorkAgreement,
      _WorkItem,
      _WBSElement,
      _WBSElementInternalID,
      _Currency,
      _UnitOfMeasure
}
where
      CostRateIsDeleted       = ''
  and BusinessTransactionType = 'MSCR'
  and PlanningCategory        = 'PLN'
  and CurrencyRole            = '00'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_ACCOUNTINGCOSTRATE"
],
"ASSOCIATED":
[
"E_ACCOUNTINGCOSTRATE",
"I_COMPANYCODE",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_CURRENCY",
"I_EMPLOYMENT",
"I_PERSONWORKAGREEMENT_1",
"I_SERVICECOSTLEVEL",
"I_UNITOFMEASURE",
"I_WBSELEMENT",
"I_WBSELEMENTBYINTERNALKEY",
"I_WORKITEM"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/