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

C_ServiceCostRate

DDL: C_SERVICECOSTRATE SQL: CFISRVCOSTRATE Type: view CONSUMPTION

Service Cost Rate

C_ServiceCostRate is a Consumption CDS View that provides data about "Service Cost Rate" in SAP S/4HANA. It reads from 1 data source (I_ServiceCostRate) and exposes 48 fields with key field AccountingCostRateUUID. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ServiceCostRate I_ServiceCostRate from

Associations (8)

CardinalityTargetAliasCondition
[0..*] I_CostCenterVH _CostCenterVH $projection.ControllingArea = _CostCenterVH.ControllingArea and $projection.CompanyCode = _CostCenterVH.CompanyCode and $projection.CostCenter = _CostCenterVH.CostCenter
[0..*] I_CostCenterActivityTypeVH _ActivityTypeVH $projection.ControllingArea = _ActivityTypeVH.ControllingArea and $projection.ActivityType = _ActivityTypeVH.CostCtrActivityType and $projection.CostCtrActivityTypeQtyUnit = _ActivityTypeVH.CostCtrActivityTypeQtyUnit
[0..*] I_ServiceCostLevelVH _ServiceCostLevelVH $projection.ServiceCostLevel = _ServiceCostLevelVH.ServiceCostLevel
[0..*] I_Employmentshlp _Employmentshlp $projection.PersonnelNumber = _Employmentshlp.PersonnelNumber and $projection.CompanyCode = _Employmentshlp.CompanyCode
[0..*] I_WBSElementBasicDataStdVH _WBSElementValueHelp $projection.WBSElementExternalID = _WBSElementValueHelp.WBSElementExternalID
[0..1] I_TimeSheetOvertimeCat _I_TimeSheetOvertimeCat $projection.TimeSheetOvertimeCategory = _I_TimeSheetOvertimeCat.TimeSheetOvertimeCategory
[0..1] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger and _LedgerText.Language = $session.system_language
[0..*] C_HierRuntimeRprstnDplLeafNode _CostCenterHierarchyLeafNode $projection.CostCenter = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity and $projection.ControllingArea = _CostCenterHierarchyLeafNode.HierarchyNodeClass and _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date and _CostCenterHierarchyLeafNode.ValidityEndDate >= $session.system_date and _CostCenterHierarchyLeafNode.HierarchyType = '0101'

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName CFISRVCOSTRATE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label Service Cost Rate view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
UI.headerInfo.typeName Cost Rate view
UI.headerInfo.typeNamePlural Cost Rates view
UI.textArrangement #TEXT_LAST view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_ServiceCostRate_2 view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY AccountingCostRateUUID AccountingCostRateUUID
CompanyCode CompanyCode Receiver Company Code
ValidityDate Validity Start Date
ReceivingCompanyCode ReceivingCompanyCode Rcvg Co Code
IsIntercompanyRate IsIntercompanyRate
CostCenter CostCenter Cost Center
CostCenterHierarchy Cost Center Hierarchy
CostCenterHierarchyNode
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
ActivityType ActivityType Activity Type
WorkItem WorkItem Work Item ID
EmployeeFullName
WBSElementExternalID WBSElementExternalID WBS Element External ID
ValidityStartFiscalYear ValidityStartFiscalYear
ValidityStartFiscalPeriod ValidityStartFiscalPeriod
Currency Currency Valuation Crcy
CostRateVarblAmount
CostRateScaleFactor CostRateScaleFactor
CostCtrActivityTypeQtyUnit CostCtrActivityTypeQtyUnit
ControllingArea ControllingArea Controlling Area
WBSElementInternalID WBSElementInternalID WBS Internal ID
ValidityEndFiscalYear ValidityEndFiscalYear
ValidityEndFiscalPeriod ValidityEndFiscalPeriod
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
RowIndex
CostRateIsOverwriteMode
CompanyCodeName
ReceivingCompanyCodeName
CostCenterName
TimeSheetOvertimeCategoryText
CostCtrActivityTypeName
ServiceCostLevelName
WorkItemName
WBSElementDescription _WBSElementInternalID WBSDescription WBS Element Name
Ledger Ledger Ledger
LedgerName _LedgerText LedgerName Ledger Name
_Currency _Currency
_UnitOfMeasure _UnitOfMeasure
_CostCenterVH _CostCenterVH
_ActivityTypeVH _ActivityTypeVH
_WorkItem _WorkItem
_ServiceCostLevelVH _ServiceCostLevelVH
_Employmentshlp _Employmentshlp
_WBSElementValueHelp _WBSElementValueHelp
_I_TimeSheetOvertimeCat _I_TimeSheetOvertimeCat
_LedgerText _LedgerText
_CostCenterHierarchyLeafNode _CostCenterHierarchyLeafNode

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 C_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: CFISRVCOSTRATE

CREATE VIEW C_ServiceCostRate AS
SELECT
  AccountingCostRateUUID,
  CompanyCode,
  cast(ValidityStartDate as fco_valid_on) AS ValidityDate,
  ReceivingCompanyCode,
  IsIntercompanyRate,
  CostCenter,
  cast('' as fis_cctr_hryid_42) AS CostCenterHierarchy,
  cast('' as fis_cctr_hrynid_50) AS CostCenterHierarchyNode,
  TimeSheetOvertimeCategory,
  ActivityType,
  WorkItem,
  cast( _PersonWorkAgreement.PersonFullName as fco_employee_full_name preserving type) AS EmployeeFullName,
  WBSElementExternalID,
  ValidityStartFiscalYear,
  ValidityStartFiscalPeriod,
  Currency,
  cast( CostRateVarblAmount as fco_cost_rate preserving type ) AS CostRateVarblAmount,
  CostRateScaleFactor,
  CostCtrActivityTypeQtyUnit,
  ControllingArea,
  WBSElementInternalID,
  ValidityEndFiscalYear,
  ValidityEndFiscalPeriod,
  ValidityStartDate,
  ValidityEndDate,
  cast( 0 as int4) AS RowIndex,
  cast( '' as fco_overwrite) AS CostRateIsOverwriteMode,
  cast( _CompanyCode.CompanyCodeName as fis_butxt preserving type ) AS CompanyCodeName,
  cast( _ReceivingCompanyCode.CompanyCodeName as fco_receiving_companycode_name preserving type ) AS ReceivingCompanyCodeName,
  cast( _CurrentCostCenter._Text[1: Language = $session.system_language].CostCenterName as fis_kostl_name preserving type) AS CostCenterName,
  cast(_I_TimeSheetOvertimeCat._TimeSheetOvertimeCatText [1:Language = $session.system_language].TimeSheetOvertimeCategoryText as cats_ssc_overtimecattext ) AS TimeSheetOvertimeCategoryText,
  cast( _CurrentCostCtrActyType._Text[1: Language = $session.system_language].CostCtrActivityTypeName as fco_activity_type_name preserving type) AS CostCtrActivityTypeName,
  cast( _CurrentServiceCostLevel._Text[1: Language = $session.system_language].ServiceCostLevelName as fco_service_cost_level_name preserving type) AS ServiceCostLevelName,
  _WorkItem._Text[1: Language = $session.system_language].WorkItemName AS WorkItemName,
  _WBSElementInternalID.WBSDescription AS WBSElementDescription,
  Ledger,
  _LedgerText.LedgerName AS LedgerName
FROM I_ServiceCostRate
LEFT OUTER JOIN I_CostCenterVH AS _CostCenterVH ON ControllingArea = _CostCenterVH.ControllingArea AND CompanyCode = _CostCenterVH.CompanyCode AND CostCenter = _CostCenterVH.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_CostCenterActivityTypeVH AS _ActivityTypeVH ON ControllingArea = _ActivityTypeVH.ControllingArea AND ActivityType = _ActivityTypeVH.CostCtrActivityType AND CostCtrActivityTypeQtyUnit = _ActivityTypeVH.CostCtrActivityTypeQtyUnit  -- association [0..*]
LEFT OUTER JOIN I_ServiceCostLevelVH AS _ServiceCostLevelVH ON ServiceCostLevel = _ServiceCostLevelVH.ServiceCostLevel  -- association [0..*]
LEFT OUTER JOIN I_Employmentshlp AS _Employmentshlp ON PersonnelNumber = _Employmentshlp.PersonnelNumber AND CompanyCode = _Employmentshlp.CompanyCode  -- association [0..*]
LEFT OUTER JOIN I_WBSElementBasicDataStdVH AS _WBSElementValueHelp ON WBSElementExternalID = _WBSElementValueHelp.WBSElementExternalID  -- association [0..*]
LEFT OUTER JOIN I_TimeSheetOvertimeCat AS _I_TimeSheetOvertimeCat ON TimeSheetOvertimeCategory = _I_TimeSheetOvertimeCat.TimeSheetOvertimeCategory  -- association [0..1]
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger AND _LedgerText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN C_HierRuntimeRprstnDplLeafNode AS _CostCenterHierarchyLeafNode ON CostCenter = _CostCenterHierarchyLeafNode.UnivHierarchyBusinessEntity AND ControllingArea = _CostCenterHierarchyLeafNode.HierarchyNodeClass AND _CostCenterHierarchyLeafNode.ValidityStartDate <= $session.system_date AND _CostCenterHierarchyLeafNode.ValidityEndDate >= $session.system_date AND _CostCenterHierarchyLeafNode.HierarchyType = '0101'  -- association [0..*]
;