I_DisplayCostRate
Display Cost Rate
I_DisplayCostRate is a Basic CDS View that provides data about "Display Cost Rate" in SAP S/4HANA. It reads from 1 data source (P_AccountingCostRate) and exposes 29 fields with key fields PlanningCategory, BusinessTransactionType, Ledger, FiscalYear, FiscalPeriod.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AccountingCostRate | _CostRate | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDISPCOSTRATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Display Cost Rate | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PlanningCategory | P_AccountingCostRate | PlanningCategory | |
| KEY | BusinessTransactionType | P_AccountingCostRate | BusinessTransactionType | |
| KEY | Ledger | P_AccountingCostRate | Ledger | |
| KEY | FiscalYear | _Period | FiscalYear | |
| KEY | FiscalPeriod | _Period | FiscalPeriod | |
| KEY | ControllingArea | P_AccountingCostRate | ControllingArea | |
| KEY | CompanyCode | P_AccountingCostRate | CompanyCode | |
| KEY | CostCenter | P_AccountingCostRate | CostCenter | |
| KEY | ActivityType | P_AccountingCostRate | ActivityType | |
| KEY | IsIntercompanyRate | P_AccountingCostRate | IsIntercompanyRate | |
| KEY | TimeSheetOvertimeCategory | P_AccountingCostRate | TimeSheetOvertimeCategory | |
| KEY | ReceivingCompanyCode | P_AccountingCostRate | ReceivingCompanyCode | |
| KEY | ServiceCostLevel | P_AccountingCostRate | ServiceCostLevel | |
| KEY | PersonnelNumber | P_AccountingCostRate | PersonnelNumber | |
| KEY | WBSElementExternalID | |||
| KEY | WorkItem | P_AccountingCostRate | WorkItem | |
| WBSElementInternalID | ||||
| CostCtrActivityTypeQtyUnit | P_AccountingCostRate | CostCtrActivityTypeQtyUnit | ||
| CostRateTotalAmountInTransCrcy | ||||
| CostRateFixedAmountInTransCrcy | ||||
| CostRateVarblAmountInTransCrcy | ||||
| TransactionCurrency | P_AccountingCostRate | Currency | ||
| CostRateScaleFactor | P_AccountingCostRate | CostRateScaleFactor | ||
| CostRateFactor | ||||
| ValidityStartDate | P_AccountingCostRate | ValidityStartDate | ||
| ValidityEndDate | P_AccountingCostRate | ValidityEndDate | ||
| FromFiscalYearPeriod | ||||
| ToFiscalYearPeriod | ||||
| FiscalYearPeriod |
@AbapCatalog.sqlViewName: 'IDISPCOSTRATE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Display Cost Rate'
@ClientHandling: {
type: #CLIENT_DEPENDENT,
algorithm: #SESSION_VARIABLE
}
@VDM.viewType: #BASIC
@ObjectModel.usageType: {
sizeCategory: #L,
serviceQuality: #C,
dataClass: #TRANSACTIONAL
}
define view I_DisplayCostRate
as select from P_AccountingCostRate as _CostRate
join I_CompanyCode as _CompanyCode on _CompanyCode.CompanyCode = _CostRate.CompanyCode
join I_FiscalYearPeriod as _Period on _Period.FiscalYearVariant = _CompanyCode.FiscalYearVariant
and _CostRate.ValidityStartDate <= _Period.FiscalPeriodEndDate
and _CostRate.ValidityEndDate >= _Period.FiscalPeriodEndDate
and _Period.IsSpecialPeriod = ''
{
key _CostRate.PlanningCategory,
key _CostRate.BusinessTransactionType,
key _CostRate.Ledger as Ledger,
key _Period.FiscalYear as FiscalYear,
key _Period.FiscalPeriod as FiscalPeriod,
key _CostRate.ControllingArea,
key _CostRate.CompanyCode,
key _CostRate.CostCenter,
key _CostRate.ActivityType,
key _CostRate.IsIntercompanyRate,
key _CostRate.TimeSheetOvertimeCategory,
key _CostRate.ReceivingCompanyCode,
key _CostRate.ServiceCostLevel,
key _CostRate.PersonnelNumber,
key cast(_CostRate.WBSElementExternalID as ps_posid_edit) as WBSElementExternalID,
key _CostRate.WorkItem,
cast(_CostRate.WBSElementInternalID as ps_s4_pspnr) as WBSElementInternalID,
_CostRate.CostCtrActivityTypeQtyUnit,
cast( _CostRate.CostRateTotalAmount as fins_vwcur12 ) as CostRateTotalAmountInTransCrcy,
cast( _CostRate.CostRateFixedAmount as fins_vwcur12 ) as CostRateFixedAmountInTransCrcy,
cast( _CostRate.CostRateTotalAmount - _CostRate.CostRateFixedAmount as fins_vwcur12 ) as CostRateVarblAmountInTransCrcy,
_CostRate.Currency as TransactionCurrency,
_CostRate.CostRateScaleFactor,
cast( _CostRate.CostRateScaleFactor as fco_rate_scale_factor) as CostRateFactor,
_CostRate.ValidityStartDate,
_CostRate.ValidityEndDate,
cast((concat( _CostRate.ValidityStartFiscalYear, _CostRate.ValidityStartFiscalPeriod )) as fins_fyearperiod) as FromFiscalYearPeriod,
cast((concat( _CostRate.ValidityEndFiscalYear, _CostRate.ValidityEndFiscalPeriod )) as fins_fyearperiod) as ToFiscalYearPeriod,
cast((concat( _Period.FiscalYear, _Period.FiscalPeriod )) as fins_fyearperiod) as FiscalYearPeriod
}
where
_CostRate.CostRateIsDeleted = '' //only trans. curr.
and _CostRate.CurrencyRole = '00'
and(
_CostRate.BusinessTransactionType = 'MSCR' //Manual Service Cost Rate
or _CostRate.BusinessTransactionType = 'MPCR' //Plan Cost Rate
or _CostRate.BusinessTransactionType = 'AACR' //Activity-based Actual Cost Rate
or _CostRate.BusinessTransactionType = 'MACR' //Actual Cost Rate
)
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE",
"I_FISCALYEARPERIOD",
"P_ACCOUNTINGCOSTRATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA