I_AccountingCostRate
Interface view for search model CostRate
I_AccountingCostRate is a Basic CDS View that provides data about "Interface view for search model CostRate" in SAP S/4HANA. It reads from 5 data sources (I_CostCenterText, I_CostCenterActivityTypeText, I_Ledger, P_CostRateBusinessTransTypeTxt, P_AccountingCostRate) and exposes 22 fields with key field AccountingCostRateUUID. It has 5 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_CostCenterText | _CurrentCostCenterText | inner |
| I_CostCenterActivityTypeText | _I_CostCenterActivityTypeText | inner |
| I_Ledger | _Ledger | inner |
| P_CostRateBusinessTransTypeTxt | _P_CostRateBusinessTransType | inner |
| P_AccountingCostRate | _Rate | from |
Associations (5)
| 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 | _CurrentCostCenter | $projection.ControllingArea = _CurrentCostCenter.ControllingArea and $projection.CostCenter = _CurrentCostCenter.CostCenter and _CurrentCostCenter.ValidityStartDate <= $projection.ValidityStartDate and _CurrentCostCenter.ValidityEndDate >= $projection.ValidityEndDate |
| [0..1] | I_PlanningCategory | _PlanningCategory | $projection.PlanningCategory = _PlanningCategory.PlanningCategory |
| [0..1] | I_UnitOfMeasure | _UnitOfMeasure | $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFIACCOSTRATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| EndUserText.label | Interface view for search model CostRate | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AccountingCostRateUUID | AccountingCostRateUUID | ||
| Ledger | P_AccountingCostRate | Ledger | ||
| CompanyCode | P_AccountingCostRate | CompanyCode | ||
| ControllingArea | P_AccountingCostRate | ControllingArea | ||
| CostCenter | P_AccountingCostRate | CostCenter | ||
| ActivityType | ActivityType | |||
| PlanningCategory | PlanningCategory | |||
| BusinessTransactionTypeName | P_CostRateBusinessTransTypeTxt | BusinessTransactionTypeName | ||
| ValidityStartDate | P_AccountingCostRate | ValidityStartDate | ||
| ValidityEndDate | P_AccountingCostRate | ValidityEndDate | ||
| CostCtrActivityTypeQtyUnit | P_AccountingCostRate | CostCtrActivityTypeQtyUnit | ||
| Currency | Currency | |||
| CostRateTotalAmount | CostRateTotalAmount | |||
| CostRateScaleFactor | CostRateScaleFactor | |||
| AccountingCostRateDesc | AccountingCostRateDesc | |||
| CostCtrActivityTypeName | I_CostCenterActivityTypeText | CostCtrActivityTypeName | ||
| _CompanyCode | _CompanyCode | |||
| CostCenterName | I_CostCenterText | CostCenterName | ||
| _CurrentCostCenter | _CurrentCostCenter | |||
| _Currency | _Currency | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _PlanningCategory | _PlanningCategory |
@AbapCatalog.sqlViewName: 'IFIACCOSTRATE'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Interface view for search model CostRate'
@ClientHandling: {
type: #CLIENT_DEPENDENT,
algorithm: #SESSION_VARIABLE
}
@ObjectModel: {
usageType: {
sizeCategory: #L,
serviceQuality: #C,
dataClass: #TRANSACTIONAL
}
}
@VDM.viewType: #BASIC
define view I_AccountingCostRate
as select from P_AccountingCostRate as _Rate
inner join I_Ledger as _Ledger on _Rate.Ledger = _Ledger.Ledger
and _Ledger.IsLeadingLedger = 'X'
inner join P_CostRateBusinessTransTypeTxt as _P_CostRateBusinessTransType on _Rate.BusinessTransactionType = _P_CostRateBusinessTransType.BusinessTransactionType
and _P_CostRateBusinessTransType.Language = $session.system_language
inner join I_CostCenterActivityTypeText as _I_CostCenterActivityTypeText on _Rate.ControllingArea = _I_CostCenterActivityTypeText.ControllingArea
and _Rate.ActivityType = _I_CostCenterActivityTypeText.CostCtrActivityType
and _I_CostCenterActivityTypeText.ValidityStartDate <= _Rate.ValidityStartDate
and _I_CostCenterActivityTypeText.ValidityEndDate >= _Rate.ValidityEndDate
and _I_CostCenterActivityTypeText.Language = $session.system_language
inner join I_CostCenterText as _CurrentCostCenterText on _Rate.ControllingArea = _CurrentCostCenterText.ControllingArea
and _Rate.CostCenter = _CurrentCostCenterText.CostCenter
and _CurrentCostCenterText.ValidityStartDate <= _Rate.ValidityStartDate
and _CurrentCostCenterText.ValidityEndDate >= _Rate.ValidityEndDate
and _CurrentCostCenterText.Language = $session.system_language
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..*] to I_CostCenter as _CurrentCostCenter on $projection.ControllingArea = _CurrentCostCenter.ControllingArea
and $projection.CostCenter = _CurrentCostCenter.CostCenter
and _CurrentCostCenter.ValidityStartDate <= $projection.ValidityStartDate
and _CurrentCostCenter.ValidityEndDate >= $projection.ValidityEndDate
association [0..1] to I_PlanningCategory as _PlanningCategory on $projection.PlanningCategory = _PlanningCategory.PlanningCategory
association [0..1] to I_UnitOfMeasure as _UnitOfMeasure on $projection.CostCtrActivityTypeQtyUnit = _UnitOfMeasure.UnitOfMeasure
// association [0..1] to P_CostRateBusinessTransType as _P_CostRateBusinessTransType on $projection.BusinessTransactionType = _P_CostRateBusinessTransType.BusinessTransactionType
{
key AccountingCostRateUUID,
_Rate.Ledger,
_Rate.CompanyCode,
_Rate.ControllingArea,
_Rate.CostCenter,
ActivityType,
PlanningCategory,
_P_CostRateBusinessTransType.BusinessTransactionTypeName,
@Semantics.businessDate.from: true
_Rate.ValidityStartDate,
@Semantics.businessDate.to: true
_Rate.ValidityEndDate,
@Semantics.unitOfMeasure:true
_Rate.CostCtrActivityTypeQtyUnit,
@Semantics.currencyCode: true
Currency,
@Semantics.amount.currencyCode: 'Currency'
CostRateTotalAmount,
CostRateScaleFactor,
AccountingCostRateDesc,
_I_CostCenterActivityTypeText.CostCtrActivityTypeName,
_CompanyCode,
// _CostCenter,
_CurrentCostCenterText.CostCenterName,
_CurrentCostCenter,
//_CostCtrActivityType,
// _CurrentCostCtrActyType,
// _I_CostCenterActivityTypeText,
_Currency,
_UnitOfMeasure,
_PlanningCategory
// _Text
// _P_CostRateBusinessTransType
}
where
CostRateIsDeleted = '' and _Rate.CurrencyRole = '00'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COSTCENTERACTIVITYTYPETEXT",
"I_COSTCENTERTEXT",
"I_LEDGER",
"P_ACCOUNTINGCOSTRATE",
"P_COSTRATEBUSINESSTRANSTYPETXT"
],
"ASSOCIATED":
[
"I_COMPANYCODE",
"I_COSTCENTER",
"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