I_ProductCostEstimate

DDL: I_PRODUCTCOSTESTIMATE Type: view BASIC

Product Cost Estimate

I_ProductCostEstimate (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Accounting and Financial Close

I_ProductCostEstimate is a Basic CDS View (Fact) that provides data about "Product Cost Estimate" in SAP S/4HANA. It reads from 1 data source (P_KEKO) and exposes 85 fields with key fields CostingReferenceObject, CostEstimate, CostingType, CostingDate, CostingVersion. It has 12 associations to related views.

SAP Help Documentation

CategoryCDS Views for Product Cost Controlling
Data CategoryFACT
StatusCosting status
Purpose
This CDS view provides the header information of Product Cost Estimates for Products, containing the relevant dates, lot size, unit of measure and further costing-related information. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations The following authorization object needs to be assigned to a user to be able to use this CDS view: K_KEKO ( Authorizations for Cost Estimates )

Structure
Further Important Fields Important fields in this view include the following: Field Name Description Comment CostingReferenceObject Reference object in product costing Object for which the cost estimate is carried out (such as a material, sales order/quotation, etc.). CostEstimate Cost estimate Technical key representing the object to be costed. CostingType Costing type in product costing Defines the purpose of a product cost estimate. CostingDate Costing date (key) Key date or period that determines the point in time as of which a cost estimate is valid. The key date or period is part of the key when the cost estimate is saved. CostingVersion Costing version in product costing Can be used to differentiate between cost estimates. ValuationVariant Valuation variant in product costing Defines settings required for valuation of a cost estimate. CostIsEnteredManually Costs entered manually in additive cost estimate These indicators show whether: costs in an additive cost estimate were entered manually costs were entered using a material cost estimate Product Product Plant Plant ValuationArea Valuation area Organizational level at which the material is valuated. A valuation area can be one of the following: An individual plant All plants belonging to a company code. In this case the valuation area is the company code. ValuationType Valuation type Uniquely identifies separately valuated stocks of a material. ControllingArea Controlling area The controlling area is the highest organizational unit in Controlling. CostEstimateValidityStartDate Costing date from Date as of which the cost estimate is valid. CostEstimateValidityEndDate Costing date to Date on which the materials and activities in a cost estimate are valuated. ValuationDate Valuation date of a cost estimate Date on which the materials and activities in a cost estimate are valuated. QuantityStructureDate Quantity structure date for costing Date on which the quantity structure is selected for the cost estimate with quantity structure. ProductionVersion Production version BillOfMaterial Bill of material CostingLotSize Lot size for product costing Lot size of the costed object (such as a material or sales order) used in the product cost estimate as the basis for costing. ValuationQuantityUnit Valuation unit of measure Unit of measure in which inventories of the product are valuated. The valuation unit of measure can be the same as the base unit of measure. CostEstimateStatus Costing status Key indicating the current processing status of the cost estimate. CostingSheet Costing sheet for calculating overhead Defines how overhead costs are calculated. CostingVariant Costing variant in product costing PostingPeriod Posting period PostingFiscalYear Posting fiscal year ProfitCenter Profit center CompanyCodeCurrency Compandy code currency ControllingAreaCurrency Controlling area currency EstimatedCostCostingRun ID of Costing run EstimatedCostCostingRunDate Date of costing run

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentCO-PC-PCP
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the header information of Product Cost Estimates for Products, containing the relevant dates, lot size, unit of measure and further costing-related information. </p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_KEKO P_KEKO from

Associations (12)

CardinalityTargetAliasCondition
[0..*] I_ProductCostEstimateItem _ProductCostEstimateItem $projection.CostingReferenceObject = _ProductCostEstimateItem.CostingReferenceObject and $projection.CostEstimate = _ProductCostEstimateItem.CostEstimate and $projection.CostingType = _ProductCostEstimateItem.CostingType and $projection.CostingDate = _ProductCostEstimateItem.CostingDate and $projection.CostingVersion = _ProductCostEstimateItem.CostingVersion and $projection.ValuationVariant = _ProductCostEstimateItem.ValuationVariant and $projection.CostIsEnteredManually = _ProductCostEstimateItem.CostIsEnteredManually
[1..1] I_Product _Product $projection.Product = _Product.Product
[1..1] I_ProductPlantBasic _ProductPlant $projection.Product = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[0..1] I_ProductValuationBasic _ProductValuation $projection.Plant = _ProductValuation.ValuationArea and $projection.Product = _ProductValuation.Product and $projection.ValuationType = _ProductValuation.ValuationType
[1..1] I_CostingType _CostingType $projection.CostingType = _CostingType.CostingType
[0..1] I_CostingVersion _CostingVersion $projection.CostingVersion = _CostingVersion.CostingVersion and $projection.CostingType = _CostingVersion.CostingType and $projection.ValuationVariant = _CostingVersion.ValuationVariant
[1..1] I_CostingVariant _CostingVariant $projection.CostingVariant = _CostingVariant.CostingVariant
[1..1] I_ValuationArea _ValuationArea $projection.ValuationArea = _ValuationArea.ValuationArea
[1..1] I_CostingValuationVariant _ValuationVariant $projection.ValuationVariant = _ValuationVariant.ValuationVariant
[0..1] I_Currency _ControllingAreaCurrency $projection.ControllingAreaCurrency = _ControllingAreaCurrency.Currency
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.ValuationQuantityUnit = _UnitOfMeasure.UnitOfMeasure

Annotations (15)

NameValueLevelField
AbapCatalog.sqlViewName IPRODCOSTEST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.modelingPattern #ANALYTICAL_FACT view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Product Cost Estimate view

Fields (85)

KeyFieldSource TableSource FieldDescription
KEY CostingReferenceObject bzobj Reference Object
KEY CostEstimate ProdCostEst.No.
KEY CostingType kalka Costing Type
KEY CostingDate kadky Costing Date (Key)
KEY CostingVersion tvers Costing Version
KEY ValuationVariant bwvar Valuation Variant in Costing
KEY CostIsEnteredManually kkzma Costs Entered Manually in Additive or Automatic Cost Est.
Product Product Number
Plant werks Receiving Plant
ValuationArea bwkey Valuation Area
ValuationType bwtar Valuation Type
ControllingArea kokrs Controlling Area
CompanyCode _ValuationArea CompanyCode Receiver Company Code
CostEstimateValidityStartDate kadat Costing Date From
CostEstimateValidityEndDate bidat Costing Date To
ValuationDate bwdat Valuation Date of a Cost Estimate
QuantityStructureDate aldat Quantity Structure Date for Costing
ProductionVersion verid Production Version
BillOfMaterial Bill of Material
ProductBOMUsage stlan BOM Usage
AlternativeBillOfMaterial stalt Alternative BOM
TaskListGroup plnnr Key for Task List Group
TaskListType plnty Task List Type
TaskListGroupCounter plnal Referenced BOO Variant
CostingItemIsProductComp kzroh Material Component
CostEstIsMarkedForDeletion loekz Deletion Indicator for Product Costing
CostingLotSize losgr Lot Size for Product Costing
ValuationQuantityUnit meins Valuation Unit of Measure
CostEstimateCreatedByUser erfnm Created By
AdditiveCostCreatedByUser erfma User ID of Person Who Created Additive Cost Estimate
CostEstimateCreationDate cpudt Date on Which Cost Estimate Was Created
CostEstimateStatus feh_sta Costing Status
CostingErrorMessageType maxmsg Message Type
CostEstimateIsReleased freig Release of Standard Cost Estimate
CostEstIsMixedCosting mkalk Mixed Costing Indicator
CostEstimateIsForProcmtAltv baltkz Cost Estimate for a Procurement Alternative
ProcmtAltvCostEstimate kalnr_ba Cost Estimate Number of Procurement Alternative
ProcessCategory btyp Process Category
CostgMixingRatioValue misch_verh Mixed Costing: Mixing Ratio
ProcmtAltvValuationVariant bwvar_ba Valuation Variant of Procurement Alternative
SpecialProcurementType sobsl Special Procurement Key for the Costing Object
ProductProcurementType sobes Special procurement type
SpecialProcurementPlant sowrk Special Procurement Plant - Costing
CostingSheet kalsm Costing Sheet for Calculating Overhead
CostingOverheadType aufza Overhead Type
ProductValuationStrategy bwsmr Valuation Strategy for Raw Materials and Purchased Parts
ProductValnPurgInfoRecdStrgy substrat Substrategy for Material Valuat. with Purchasing Info Record
CostingVariant klvar Costing Variant
Ledger rldnr Ledger in General Ledger Accounting
CostingOverheadGroup kosgr Costing Overhead Group
CostingOverhead zschl Overhead key
PostingPeriod poper Posting periods
PostingFiscalYear bdatj Posting Date YYYY
CostingErrorLogID cmf_nr Error Management Number
CostEstimateMarkingDate vormdat Date on Which Cost Estimate Was Marked
CostEstimateMarkingUser vormusr User Who Marked Cost Estimate in Material Master
CostEstimateReleaseDate freidat Date on Which Cost Estimate Released in Material Master
CostEstimateReleaseUser freiusr User Who Released Cost Estimate in Material Master Record
CostEstimateTransferControl uebid Transfer Control
LowLevelCode disst Low-Level Code
CostEstimateCostingLevel kalst Costing Level
CostComponentStructure elehk Cost Component Structure - CGM and Sales/Administr. Costs
AuxiliaryCostCompStructure Cost Component Structure for Auxiliary Cost Component Split
BusinessArea gsber Business Area
ProfitCenter prctr Profit Centers
CompanyCodeCurrency fwaer_kpf Object Currency
ControllingAreaCurrency hwaer Local Currency
ExchangeRateType kurst Fix.rate type (EMU)
EstimatedCostCostingRun kalaid Name of Costing Run
EstimatedCostCostingRunDate kaladat Costing Run Date
ConfiguredProduct type Configured Material (Variant)
ProductIsCostedWithQtyStruc Material Is Costed with Quantity Structure
_ProductCostEstimateItem _ProductCostEstimateItem
_Product _Product
_ProductPlant _ProductPlant
_ProductValuation _ProductValuation
_CostingType _CostingType
_CostingVersion _CostingVersion
_CostingVariant _CostingVariant
_ValuationArea _ValuationArea
_CompanyCode _ValuationArea _CompanyCode
_ValuationVariant _ValuationVariant
_ControllingAreaCurrency _ControllingAreaCurrency
_CompanyCodeCurrency _CompanyCodeCurrency
_UnitOfMeasure _UnitOfMeasure

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 I_ProductCostEstimate.
-- 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 I_ProductCostEstimate AS
SELECT
  bzobj AS CostingReferenceObject,
  cast( kalnr as fis_kalnr preserving type ) AS CostEstimate,
  kalka AS CostingType,
  kadky AS CostingDate,
  tvers AS CostingVersion,
  bwvar AS ValuationVariant,
  kkzma AS CostIsEnteredManually,
  cast( matnr as productnumber preserving type ) AS Product,
  werks AS Plant,
  bwkey AS ValuationArea,
  bwtar AS ValuationType,
  kokrs AS ControllingArea,
  _ValuationArea.CompanyCode AS CompanyCode,
  kadat AS CostEstimateValidityStartDate,
  bidat AS CostEstimateValidityEndDate,
  bwdat AS ValuationDate,
  aldat AS QuantityStructureDate,
  verid AS ProductionVersion,
  cast(stnum as ck_stnum preserving type ) AS BillOfMaterial,
  stlan AS ProductBOMUsage,
  stalt AS AlternativeBillOfMaterial,
  plnnr AS TaskListGroup,
  plnty AS TaskListType,
  plnal AS TaskListGroupCounter,
  kzroh AS CostingItemIsProductComp,
  loekz AS CostEstIsMarkedForDeletion,
  losgr AS CostingLotSize,
  meins AS ValuationQuantityUnit,
  erfnm AS CostEstimateCreatedByUser,
  erfma AS AdditiveCostCreatedByUser,
  cpudt AS CostEstimateCreationDate,
  feh_sta AS CostEstimateStatus,
  maxmsg AS CostingErrorMessageType,
  freig AS CostEstimateIsReleased,
  mkalk AS CostEstIsMixedCosting,
  baltkz AS CostEstimateIsForProcmtAltv,
  kalnr_ba AS ProcmtAltvCostEstimate,
  btyp AS ProcessCategory,
  misch_verh AS CostgMixingRatioValue,
  bwvar_ba AS ProcmtAltvValuationVariant,
  sobsl AS SpecialProcurementType,
  sobes AS ProductProcurementType,
  sowrk AS SpecialProcurementPlant,
  kalsm AS CostingSheet,
  aufza AS CostingOverheadType,
  bwsmr AS ProductValuationStrategy,
  substrat AS ProductValnPurgInfoRecdStrgy,
  klvar AS CostingVariant,
  rldnr AS Ledger,
  kosgr AS CostingOverheadGroup,
  zschl AS CostingOverhead,
  poper AS PostingPeriod,
  bdatj AS PostingFiscalYear,
  cmf_nr AS CostingErrorLogID,
  vormdat AS CostEstimateMarkingDate,
  vormusr AS CostEstimateMarkingUser,
  freidat AS CostEstimateReleaseDate,
  freiusr AS CostEstimateReleaseUser,
  uebid AS CostEstimateTransferControl,
  disst AS LowLevelCode,
  kalst AS CostEstimateCostingLevel,
  elehk AS CostComponentStructure,
  cast(elehkns as ck_elehkns preserving type) AS AuxiliaryCostCompStructure,
  gsber AS BusinessArea,
  prctr AS ProfitCenter,
  fwaer_kpf AS CompanyCodeCurrency,
  hwaer AS ControllingAreaCurrency,
  kurst AS ExchangeRateType,
  kalaid AS EstimatedCostCostingRun,
  kaladat AS EstimatedCostCostingRunDate,
  type AS ConfiguredProduct,
  cast(erzka as ck_ekalrel preserving type ) AS ProductIsCostedWithQtyStruc,
  _ValuationArea._CompanyCode AS _CompanyCode
FROM P_KEKO
LEFT OUTER JOIN I_ProductCostEstimateItem AS _ProductCostEstimateItem ON CostingReferenceObject = _ProductCostEstimateItem.CostingReferenceObject AND CostEstimate = _ProductCostEstimateItem.CostEstimate AND CostingType = _ProductCostEstimateItem.CostingType AND CostingDate = _ProductCostEstimateItem.CostingDate AND CostingVersion = _ProductCostEstimateItem.CostingVersion AND ValuationVariant = _ProductCostEstimateItem.ValuationVariant AND CostIsEnteredManually = _ProductCostEstimateItem.CostIsEnteredManually  -- association [0..*]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _ProductPlant ON Product = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ProductValuationBasic AS _ProductValuation ON Plant = _ProductValuation.ValuationArea AND Product = _ProductValuation.Product AND ValuationType = _ProductValuation.ValuationType  -- association [0..1]
LEFT OUTER JOIN I_CostingType AS _CostingType ON CostingType = _CostingType.CostingType  -- association [1..1]
LEFT OUTER JOIN I_CostingVersion AS _CostingVersion ON CostingVersion = _CostingVersion.CostingVersion AND CostingType = _CostingVersion.CostingType AND ValuationVariant = _CostingVersion.ValuationVariant  -- association [0..1]
LEFT OUTER JOIN I_CostingVariant AS _CostingVariant ON CostingVariant = _CostingVariant.CostingVariant  -- association [1..1]
LEFT OUTER JOIN I_ValuationArea AS _ValuationArea ON ValuationArea = _ValuationArea.ValuationArea  -- association [1..1]
LEFT OUTER JOIN I_CostingValuationVariant AS _ValuationVariant ON ValuationVariant = _ValuationVariant.ValuationVariant  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _ControllingAreaCurrency ON ControllingAreaCurrency = _ControllingAreaCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON ValuationQuantityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
;