I_PlanCostRate
Interface View for Plan Cost Rate
I_PlanCostRate is a Basic CDS View that provides data about "Interface View for Plan Cost Rate" in SAP S/4HANA. It reads from 1 data source (P_AccountingCostRate) and exposes 33 fields with key field AccountingCostRateUUID. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_AccountingCostRate | _Rate | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.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..1] | I_PlanningCategory | _PlanningCategory | $projection.PlanningCategory = _PlanningCategory.PlanningCategory |
| [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_UnitOfMeasure | _UnitOfMeasure | $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure |
| [1..1] | E_AccountingCostRate | _Extension | $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIPLANCOSTRATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Interface View for Plan Cost Rate | 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 |
Fields (33)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingCostRateUUID | AccountingCostRateUUID | ||
| Ledger | P_AccountingCostRate | Ledger | ||
| CurrencyRole | CurrencyRole | |||
| CompanyCode | CompanyCode | |||
| ControllingArea | ControllingArea | |||
| CostCenter | CostCenter | |||
| ActivityType | ActivityType | |||
| PlanningCategory | PlanningCategory | |||
| ValidityStartFiscalYear | ValidityStartFiscalYear | |||
| ValidityStartFiscalPeriod | ValidityStartFiscalPeriod | |||
| ValidityStartFiscalYearPeriod | ||||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndFiscalYear | ValidityEndFiscalYear | |||
| ValidityEndFiscalPeriod | ValidityEndFiscalPeriod | |||
| ValidityEndFiscalYearPeriod | ||||
| ValidityEndDate | ValidityEndDate | |||
| CostCtrActivityTypeQtyUnit | CostCtrActivityTypeQtyUnit | |||
| Currency | Currency | |||
| CostRateFixedAmount | CostRateFixedAmount | |||
| CostRateTotalAmount | CostRateTotalAmount | |||
| CostRateVarblAmount | ||||
| CostRateScaleFactor | CostRateScaleFactor | |||
| ControllingObject | ControllingObject | |||
| CostObject | CostObject | |||
| AccountingCostRateDesc | AccountingCostRateDesc | |||
| _CompanyCode | _CompanyCode | |||
| _CostCenter | _CostCenter | |||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _CostCtrActivityType | _CostCtrActivityType | |||
| _CurrentCostCtrActyType | _CurrentCostCtrActyType | |||
| _Currency | _Currency | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _PlanningCategory | _PlanningCategory |
@AbapCatalog.sqlViewName: 'IFIPLANCOSTRATE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Interface View for Plan Cost Rate'
@ClientHandling: {
type: #CLIENT_DEPENDENT,
algorithm: #SESSION_VARIABLE
}
@ObjectModel: {
usageType: {
sizeCategory: #L,
serviceQuality: #B,
dataClass: #TRANSACTIONAL
}
}
@VDM.viewType: #BASIC
define view I_PlanCostRate
as select from P_AccountingCostRate as _Rate
left outer to one join I_Ledger as _Ledger on _Rate.Ledger = _Ledger.Ledger
// and _Ledger.IsLeadingLedger = 'X'
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
association [0..1] to I_Currency as _Currency on $projection.Currency = _Currency.Currency
association [0..*] to I_CostCenter as _CostCenter on $projection.ControllingArea = _CostCenter.ControllingArea
and $projection.CostCenter = _CostCenter.CostCenter
association [0..1] to I_CostCenter as _CurrentCostCenter on $projection.ControllingArea = _CurrentCostCenter.ControllingArea
and $projection.CostCenter = _CurrentCostCenter.CostCenter
and _CurrentCostCenter.ValidityStartDate <= $session.system_date
and _CurrentCostCenter.ValidityEndDate >= $session.system_date
association [0..1] to I_PlanningCategory as _PlanningCategory on $projection.PlanningCategory = _PlanningCategory.PlanningCategory
association [0..*] to I_CostCenterActivityType as _CostCtrActivityType on $projection.ControllingArea = _CostCtrActivityType.ControllingArea
and $projection.ActivityType = _CostCtrActivityType.CostCtrActivityType
association [0..1] to I_CostCenterActivityType as _CurrentCostCtrActyType on $projection.ControllingArea = _CurrentCostCtrActyType.ControllingArea
and $projection.ActivityType = _CurrentCostCtrActyType.CostCtrActivityType
and _CurrentCostCtrActyType.ValidityStartDate <= $session.system_date
and _CurrentCostCtrActyType.ValidityEndDate >= $session.system_date
association [0..1] to I_UnitOfMeasure as _UnitOfMeasure on $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
association [1..1] to E_AccountingCostRate as _Extension on $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID
{
key AccountingCostRateUUID,
_Rate.Ledger,
CurrencyRole,
CompanyCode,
ControllingArea,
CostCenter,
ActivityType,
PlanningCategory,
@Semantics.fiscal.year: true
ValidityStartFiscalYear,
@Semantics.fiscal.period: true
ValidityStartFiscalPeriod,
@Semantics.fiscal.yearPeriod: true
cast((concat( ValidityStartFiscalYear, ValidityStartFiscalPeriod )) as fins_fyearperiod) as ValidityStartFiscalYearPeriod,
@Semantics.businessDate.from: true
ValidityStartDate,
@Semantics.fiscal.year: true
ValidityEndFiscalYear,
@Semantics.fiscal.period: true
ValidityEndFiscalPeriod,
@Semantics.fiscal.yearPeriod: true
cast((concat( ValidityEndFiscalYear, ValidityEndFiscalPeriod )) as fins_fyearperiod) as ValidityEndFiscalYearPeriod,
@Semantics.businessDate.to: true
ValidityEndDate,
@Semantics.unitOfMeasure:true
CostCtrActivityTypeQtyUnit,
@Semantics.currencyCode: true
Currency,
@Semantics.amount.currencyCode: 'Currency'
CostRateFixedAmount,
@Semantics.amount.currencyCode: 'Currency'
CostRateTotalAmount,
@Semantics.amount.currencyCode: 'Currency'
cast(CostRateTotalAmount - CostRateFixedAmount as fco_rate_varbl_amount) as CostRateVarblAmount,
CostRateScaleFactor,
ControllingObject,
CostObject,
AccountingCostRateDesc,
_CompanyCode,
_CostCenter,
_CurrentCostCenter,
_CostCtrActivityType,
_CurrentCostCtrActyType,
_Currency,
_UnitOfMeasure,
_PlanningCategory
}
where CostRateIsDeleted = '' and BusinessTransactionType = 'MPCR' and PlanningCategory = 'PLN' and CurrencyRole = '00'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LEDGER",
"P_ACCOUNTINGCOSTRATE"
],
"ASSOCIATED":
[
"E_ACCOUNTINGCOSTRATE",
"I_COMPANYCODE",
"I_COSTCENTER",
"I_COSTCENTERACTIVITYTYPE",
"I_CURRENCY",
"I_PLANNINGCATEGORY",
"I_UNITOFMEASURE"
],
"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