R_PlanCostRateTP

DDL: R_PLANCOSTRATETP Type: view_entity TRANSACTIONAL Package: RAP_FIN_CO_COST_RATE

Plan Cost Rate - TP

R_PlanCostRateTP is a Transactional CDS View that provides data about "Plan Cost Rate - TP" in SAP S/4HANA. It reads from 1 data source (I_AccountingCostRate_2) and exposes 45 fields with key field AccountingCostRateUUID. It has 2 associations to related views. Part of development package RAP_FIN_CO_COST_RATE.

Data Sources (1)

SourceAliasJoin Type
I_AccountingCostRate_2 _PlanCostRate from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PlanningCategory _PlanningCategory $projection.PlanningCategory = _PlanningCategory.PlanningCategory
[1] E_AccountingCostRate _Extension $projection.AccountingCostRateUUID = _Extension.AccountingCostRateUUID

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Plan Cost Rate - TP view
Metadata.ignorePropagatedAnnotations false view
ObjectModel.sapObjectNodeType.name AccountingCostRate view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view

Fields (45)

KeyFieldSource TableSource FieldDescription
KEY AccountingCostRateUUID I_AccountingCostRate_2 AccountingCostRateUUID
Ledger I_AccountingCostRate_2 Ledger Ledger
CurrencyRole I_AccountingCostRate_2 CurrencyRole Curr./Val. Type
CompanyCode I_AccountingCostRate_2 CompanyCode Receiver Company Code
ControllingArea I_AccountingCostRate_2 ControllingArea Controlling Area
CostCenter I_AccountingCostRate_2 CostCenter Cost Center
ActivityType I_AccountingCostRate_2 ActivityType Activity Type
PlanningCategory I_AccountingCostRate_2 PlanningCategory Plan Category
ValidityStartFiscalYear I_AccountingCostRate_2 ValidityStartFiscalYear
ValidityStartFiscalPeriod I_AccountingCostRate_2 ValidityStartFiscalPeriod
ValidityStartDate I_AccountingCostRate_2 ValidityStartDate Validity Start Date
ValidityEndFiscalYear I_AccountingCostRate_2 ValidityEndFiscalYear
ValidityEndFiscalPeriod I_AccountingCostRate_2 ValidityEndFiscalPeriod
ValidityEndDate I_AccountingCostRate_2 ValidityEndDate ValidTo
CostCtrActivityTypeQtyUnit I_AccountingCostRate_2 CostCtrActivityTypeQtyUnit
Currency I_AccountingCostRate_2 Currency Valuation Crcy
CostRateFixedAmount I_AccountingCostRate_2 CostRateFixedAmount
CostRateTotalAmount I_AccountingCostRate_2 CostRateTotalAmount
CostRateVarblAmount I_AccountingCostRate_2 CostRateVarblAmount
CostRateScaleFactor I_AccountingCostRate_2 CostRateScaleFactor
ControllingObject I_AccountingCostRate_2 ControllingObject Object number
AccountingCostRateObject I_AccountingCostRate_2 AccountingCostRateObject
ComponentBreakdown I_AccountingCostRate_2 ComponentBreakdown
LocalLastChangeDateTime
LastChangeDateTime
ValidityDate
CostCenterHierarchy
CostCenterHierarchyName
CostCenterHierarchyNode
HierarchyNodeText
RowIndex
CostRateIsOverwriteMode
CreatedByUser CreatedByUser User Name
CreationDateTime CreationDateTime Timestamp
_CompanyCode I_AccountingCostRate_2 _CompanyCode
_CostCenter I_AccountingCostRate_2 _CostCenter
_CostCtrActivityType I_AccountingCostRate_2 _CostCtrActivityType
_Currency I_AccountingCostRate_2 _Currency
_CurrentCostCenter I_AccountingCostRate_2 _CurrentCostCenter
_CurrentCostCtrActyType I_AccountingCostRate_2 _CurrentCostCtrActyType
_UnitOfMeasure I_AccountingCostRate_2 _UnitOfMeasure
_LedgerText I_AccountingCostRate_2 _LedgerText
_PlanningCategory _PlanningCategory
_CostCtrActivityTypeText I_AccountingCostRate_2 _CostCtrActivityTypeText
_ControllingAreaText I_AccountingCostRate_2 _ControllingAreaText

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 R_PlanCostRateTP.
-- 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 R_PlanCostRateTP AS
SELECT
  _PlanCostRate.AccountingCostRateUUID AS AccountingCostRateUUID,
  _PlanCostRate.Ledger AS Ledger,
  _PlanCostRate.CurrencyRole AS CurrencyRole,
  _PlanCostRate.CompanyCode AS CompanyCode,
  _PlanCostRate.ControllingArea AS ControllingArea,
  _PlanCostRate.CostCenter AS CostCenter,
  _PlanCostRate.ActivityType AS ActivityType,
  _PlanCostRate.PlanningCategory AS PlanningCategory,
  _PlanCostRate.ValidityStartFiscalYear AS ValidityStartFiscalYear,
  _PlanCostRate.ValidityStartFiscalPeriod AS ValidityStartFiscalPeriod,
  _PlanCostRate.ValidityStartDate AS ValidityStartDate,
  _PlanCostRate.ValidityEndFiscalYear AS ValidityEndFiscalYear,
  _PlanCostRate.ValidityEndFiscalPeriod AS ValidityEndFiscalPeriod,
  _PlanCostRate.ValidityEndDate AS ValidityEndDate,
  _PlanCostRate.CostCtrActivityTypeQtyUnit AS CostCtrActivityTypeQtyUnit,
  _PlanCostRate.Currency AS Currency,
  _PlanCostRate.CostRateFixedAmount AS CostRateFixedAmount,
  _PlanCostRate.CostRateTotalAmount AS CostRateTotalAmount,
  _PlanCostRate.CostRateVarblAmount AS CostRateVarblAmount,
  _PlanCostRate.CostRateScaleFactor AS CostRateScaleFactor,
  _PlanCostRate.ControllingObject AS ControllingObject,
  _PlanCostRate.AccountingCostRateObject AS AccountingCostRateObject,
  _PlanCostRate.ComponentBreakdown AS ComponentBreakdown,
  cast(0.0000000 as abp_lastchange_tstmpl) AS LocalLastChangeDateTime,
  cast(0.0000000 as vdm_lastchangedon) AS LastChangeDateTime,
  cast(_PlanCostRate.ValidityStartDate as fco_valid_on) AS ValidityDate,
  cast('' as fis_cctr_hryid_42) AS CostCenterHierarchy,
  cast('' as hrytxt) AS CostCenterHierarchyName,
  cast('' as fis_cctr_hrynid_50) AS CostCenterHierarchyNode,
  cast('' as nodetxt) AS HierarchyNodeText,
  cast( 0 as int4) AS RowIndex,
  cast( '' as fco_overwrite) AS CostRateIsOverwriteMode,
  CreatedByUser,
  CreationDateTime,
  _PlanCostRate._CompanyCode AS _CompanyCode,
  _PlanCostRate._CostCenter AS _CostCenter,
  _PlanCostRate._CostCtrActivityType AS _CostCtrActivityType,
  _PlanCostRate._Currency AS _Currency,
  _PlanCostRate._CurrentCostCenter AS _CurrentCostCenter,
  _PlanCostRate._CurrentCostCtrActyType AS _CurrentCostCtrActyType,
  _PlanCostRate._UnitOfMeasure AS _UnitOfMeasure,
  _PlanCostRate._LedgerText AS _LedgerText,
  _PlanCostRate._CostCtrActivityTypeText AS _CostCtrActivityTypeText,
  _PlanCostRate._ControllingAreaText AS _ControllingAreaText
FROM I_AccountingCostRate_2 AS _PlanCostRate
LEFT OUTER JOIN I_PlanningCategory AS _PlanningCategory ON PlanningCategory = _PlanningCategory.PlanningCategory  -- association [0..1]
LEFT OUTER JOIN E_AccountingCostRate AS _Extension ON AccountingCostRateUUID = _Extension.AccountingCostRateUUID  -- association [1]
;