C_ServiceCostRateHistory

DDL: C_SERVICECOSTRATEHISTORY SQL: CFISRVCOSTRATEH Type: view CONSUMPTION Package: FINS_CO_COST_RATE

Service Cost Rate with History

C_ServiceCostRateHistory is a Consumption CDS View that provides data about "Service Cost Rate with History" in SAP S/4HANA. It reads from 1 data source (I_AccountingCostRateHistory) and exposes 38 fields with key field AccountingCostRateUUID. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F3161). Part of development package FINS_CO_COST_RATE.

Data Sources (1)

SourceAliasJoin Type
I_AccountingCostRateHistory I_AccountingCostRateHistory from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_LedgerText _LedgerText $projection.Ledger = _LedgerText.Ledger and _LedgerText.Language = $session.system_language

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName CFISRVCOSTRATEH 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 with History 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.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F3161 ASQL_F3161 C2 NOT_RELEASED

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY AccountingCostRateUUID AccountingCostRateUUID
CompanyCode CompanyCode Receiver Company Code
ReceivingCompanyCode ReceivingCompanyCode Rcvg Co Code
IsIntercompanyRate IsIntercompanyRate
CostCenter CostCenter Cost Center
TimeSheetOvertimeCategory TimeSheetOvertimeCategory
ActivityType ActivityType Activity Type
ServiceCostLevel ServiceCostLevel Service Cost Level
WorkItem WorkItem Work Item ID
PersonnelNumber PersonnelNumber Personnel No.
EmployeeFullName
WBSElementExternalID WBSElementExternalID WBS Element External ID
ValidityStartFiscalYear ValidityStartFiscalYear
ValidityStartFiscalPeriod ValidityStartFiscalPeriod
Currency Currency Valuation Crcy
Ledger Ledger Ledger
LedgerName _LedgerText LedgerName Ledger Name
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
CreationDateTime CreationDateTime Timestamp
DeletionDateTime DeletionDateTime
CostRateIsDeleted CostRateIsDeleted
CreatedByUser CreatedByUser User Name
DeletedByUser DeletedByUser
CompanyCodeName
ReceivingCompanyCodeName
CostCenterName
CostCtrActivityTypeName
ServiceCostLevelName
WorkItemName
WBSElementDescription _WBSElementInternalID WBSDescription WBS Element Name

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_ServiceCostRateHistory.
-- 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: CFISRVCOSTRATEH

CREATE VIEW C_ServiceCostRateHistory AS
SELECT
  AccountingCostRateUUID,
  CompanyCode,
  ReceivingCompanyCode,
  IsIntercompanyRate,
  CostCenter,
  TimeSheetOvertimeCategory,
  ActivityType,
  ServiceCostLevel,
  WorkItem,
  PersonnelNumber,
  cast( _PersonWorkAgreement.PersonFullName as fco_employee_full_name preserving type) AS EmployeeFullName,
  WBSElementExternalID,
  ValidityStartFiscalYear,
  ValidityStartFiscalPeriod,
  Currency,
  Ledger,
  _LedgerText.LedgerName AS LedgerName,
  cast( CostRateVarblAmount as fco_cost_rate preserving type ) AS CostRateVarblAmount,
  CostRateScaleFactor,
  CostCtrActivityTypeQtyUnit,
  ControllingArea,
  WBSElementInternalID,
  ValidityEndFiscalYear,
  ValidityEndFiscalPeriod,
  ValidityStartDate,
  ValidityEndDate,
  CreationDateTime,
  DeletionDateTime,
  CostRateIsDeleted,
  CreatedByUser,
  DeletedByUser,
  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( _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
FROM I_AccountingCostRateHistory
LEFT OUTER JOIN I_LedgerText AS _LedgerText ON Ledger = _LedgerText.Ledger AND _LedgerText.Language = $session.system_language  -- association [0..1]
;