Deprecated
This CDS view is deprecated in S/4HANA. Use I_ServiceCostRate_2 instead. View all deprecated CDS views →

I_ServiceCostRate

DDL: I_SERVICECOSTRATE SQL: IFISRVCOSTRATE Type: view BASIC

Interface View for Service Cost Rate

I_ServiceCostRate (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

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.

SAP Help Documentation

CategoryCDS Views for Overhead Accounting
Data CategoryFact
StatusReleased
Purpose
This CDS view serves as an interface view for CDS consumption views C_ServiceCostRate , and C_ServiceCostRateTimeline , which are used in the app Manage Cost Rates - Services . It is also used by CDS view A_ServiceCostRate which is consumed by the API Cost Rate. This CDS view provides data about cost rates assigned to a particular activity type, service cost level, work item or an employee who provides the service and so on. These data are consumed via related application or API. This CDS view provides the prerequisites for answering the following business questions: Which cost rates are associated with which activity type/service cost level/work item/employee? Which currencies are used in the applied cost rates? Is the cost rate valid? Is the cost rate an intercompany cost rate? Who is the sender and the receiver company (company code) for a given cost rate?

Prerequisites
The following business catalog needs to be assigned to a user to be able to use this CDS view: SAP_FIN_BC_OH_MD_CCA_PC

Structure
Object Types This view relates to the following SAP object type: AccountingCostRate

Further important fields
Field Name Description CompanyCode Indicates the company which is providing the service. ReceivingCompanyCode In an intercompany scenario, this is the company for which the service is provided. IsIntercompanyRate Indicates whether the cost rate is used in an intercompany scenario. CostCenter The cost center which is providing the service. ActivityType The type of activity performed at the cost center, such as machine time or consulting. ServiceCostLevel An attribute in the employee master data. The service cost level defines the position grade level of the employee (such as trainee, team lead, or senior project manager), which determines the applicable cost rate for services provided by that employee. PersonnelNumber Personnel number of the employee who provides the service. WBSElementExternalID Work breakdown structure element (WBS element) WorkItem You can define cost rates for specific work items, which allows you to have different rates for different activities performed by the employee, such as project management, training, or demonstrations. WBSElementInternalID The work breakdown structure element in the project. WBSElementExternalID The work breakdown structure element in the project. Currency The currency in which the rate is entered. CostRateVarblAmount Amount for the cost rate.

View on SAP Help Portal →

SAP API Hub

StateDeprecated
Line of BusinessAccounting and Financial Close
Application ComponentCO-OM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source for Data Extraction
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition

Documentation

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 Cost Rate UUID
Ledger P_AccountingCostRate Ledger Ledger in General Ledger Accounting
CurrencyRole CurrencyRole Currency and Valuation Type
CompanyCode CompanyCode Receiver Company Code
ControllingArea ControllingArea Controlling Area
CostCenter CostCenter Cost Center
ActivityType ActivityType Activity Type
IsIntercompanyRate IsIntercompanyRate Intercompany Cost Rate Indicator
ReceivingCompanyCode ReceivingCompanyCode Receiving Company Code
ServiceCostLevel ServiceCostLevel Service Cost Level
PersonnelNumber PersonnelNumber Personnel Number
WBSElementInternalID WBSElementInternalID Work Breakdown Structure Element (WBS Element)
WBSElementExternalID WBSElementExternalID Work Breakdown Structure Element (WBS Element)
WorkItem WorkItem Work Item ID
TimeSheetOvertimeCategory TimeSheetOvertimeCategory Overtime Category
ValidityStartFiscalYear ValidityStartFiscalYear From Fiscal Year
ValidityStartFiscalPeriod ValidityStartFiscalPeriod From Period
ValidityStartFiscalYearPeriod Fiscal Year + Fiscal Period
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndFiscalYear ValidityEndFiscalYear To Fiscal Year
ValidityEndFiscalPeriod ValidityEndFiscalPeriod To Period
ValidityEndFiscalYearPeriod Fiscal Year + Fiscal Period
ValidityEndDate ValidityEndDate Validity End Date
CostCtrActivityTypeQtyUnit CostCtrActivityTypeQtyUnit Activity Unit
Currency Currency Valuation Crcy
CostRateVarblAmount Variable Rate
CostRateScaleFactor CostRateScaleFactor Per
_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

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_ServiceCostRate.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IFISRVCOSTRATE

CREATE VIEW I_ServiceCostRate AS
SELECT
  AccountingCostRateUUID,
  _Rate.Ledger AS Ledger,
  CurrencyRole,
  CompanyCode,
  ControllingArea,
  CostCenter,
  ActivityType,
  IsIntercompanyRate,
  ReceivingCompanyCode,
  ServiceCostLevel,
  PersonnelNumber,
  WBSElementInternalID,
  WBSElementExternalID,
  WorkItem,
  TimeSheetOvertimeCategory,
  ValidityStartFiscalYear,
  ValidityStartFiscalPeriod,
  cast((concat( ValidityStartFiscalYear, ValidityStartFiscalPeriod )) as fins_fyearperiod) AS ValidityStartFiscalYearPeriod,
  ValidityStartDate,
  ValidityEndFiscalYear,
  ValidityEndFiscalPeriod,
  cast((concat( ValidityEndFiscalYear, ValidityEndFiscalPeriod )) as fins_fyearperiod) AS ValidityEndFiscalYearPeriod,
  ValidityEndDate,
  CostCtrActivityTypeQtyUnit,
  Currency,
  cast(CostRateTotalAmount - CostRateFixedAmount as fco_rate_varbl_amount) AS CostRateVarblAmount,
  CostRateScaleFactor
FROM P_AccountingCostRate AS _Rate
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _ReceivingCompanyCode ON ReceivingCompanyCode = _ReceivingCompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON Currency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenter AS _CurrentCostCenter ON ControllingArea = _CurrentCostCenter.ControllingArea AND CostCenter = _CurrentCostCenter.CostCenter AND _CurrentCostCenter.ValidityStartDate <= $session.system_date AND _CurrentCostCenter.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_CostCenterActivityType AS _CostCtrActivityType ON ControllingArea = _CostCtrActivityType.ControllingArea AND ActivityType = _CostCtrActivityType.CostCtrActivityType  -- association [0..*]
LEFT OUTER JOIN I_CostCenterActivityType AS _CurrentCostCtrActyType ON ControllingArea = _CurrentCostCtrActyType.ControllingArea AND ActivityType = _CurrentCostCtrActyType.CostCtrActivityType AND _CurrentCostCtrActyType.ValidityStartDate <= $session.system_date AND _CurrentCostCtrActyType.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_WorkItem AS _WorkItem ON WorkItem = _WorkItem.WorkItem  -- association [0..1]
LEFT OUTER JOIN I_ServiceCostLevel AS _ServiceCostLevel ON ServiceCostLevel = _ServiceCostLevel.ServiceCostLevel  -- association [0..*]
LEFT OUTER JOIN I_ServiceCostLevel AS _CurrentServiceCostLevel ON ServiceCostLevel = _CurrentServiceCostLevel.ServiceCostLevel AND _CurrentServiceCostLevel.ValidityStartDate <= $session.system_date AND _CurrentServiceCostLevel.ValidityEndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_Employment AS _Employment ON PersonnelNumber = _Employment.EmploymentInternalID AND _Employment.StartDate <= $session.system_date AND _Employment.EndDate >= $session.system_date  -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonWorkAgreement ON PersonnelNumber = _PersonWorkAgreement.PersonWorkAgreement  -- association [1]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElementExternalID = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElementInternalID ON WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN E_AccountingCostRate AS _Extension ON AccountingCostRateUUID = _Extension.AccountingCostRateUUID  -- association [1..1]
;