C_ServiceCostRate_2

DDL: C_SERVICECOSTRATE_2 Type: view_entity CONSUMPTION

Service Cost Rate

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

Data Sources (1)

SourceAliasJoin Type
I_ServiceCostRate_2 _ServiceCostRate_2 from

Associations (9)

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 _EmploymentSrchHelp $projection.PersonnelNumber = _EmploymentSrchHelp.PersonnelNumber and $projection.CompanyCode = _EmploymentSrchHelp.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'
[1..1] E_AccountingCostRate _Extension $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID

Annotations (15)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label Service Cost Rate view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L 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

Fields (49)

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
PersonnelNumber PersonnelNumber Personnel No.
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
_EmploymentSrchHelp _EmploymentSrchHelp
_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_2.
-- 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.

CREATE VIEW C_ServiceCostRate_2 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,
  PersonnelNumber,
  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_2 AS _ServiceCostRate_2
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 _EmploymentSrchHelp ON PersonnelNumber = _EmploymentSrchHelp.PersonnelNumber AND CompanyCode = _EmploymentSrchHelp.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..*]
LEFT OUTER JOIN E_AccountingCostRate AS _Extension ON AccountingCostRateUUID = _Extension.AccountingCostRateUUID  -- association [1..1]
;