I_ProductCostEstimateItem
Product Cost Estimate Item
I_ProductCostEstimateItem (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_ProductCostEstimateItem is a Basic CDS View (Fact) that provides data about "Product Cost Estimate Item" in SAP S/4HANA. It reads from 1 data source (P_CKIS) and exposes 69 fields with key fields CostingReferenceObject, CostEstimate, CostingType, CostingDate, CostingVersion. It has 10 associations to related views.
SAP Help Documentation
| Category | CDS Views for Product Cost Controlling |
|---|---|
| Data Category | FACT |
This CDS view provides the results of cost estimates for products at item level. The information can be used to analyze the calculated costs and the origins of the costs. 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 CostingItem Item number CostingItemCategory Item category in product costing Product Product Plant Plant ValuationType Valuation type Uniquely identifies separately valuated stocks of a material. ControllingAreaCurrency Controlling area currency TotalPriceInInCtrlgAreaCrcy Total price in controlling area currency Total price of the costing item in controlling area currency FixedPriceInCtrlgAreaCrcy Fixed price in controlling area currency Fixed portion of the costing item price in controlling area currency TotalAmountInCtrlgAreaCrcy Total amount in controlling area currency Total Amount of a costing item in controlling area currency FixedAmountInCtrlgAreaCrcy Fixed amount in controlling area currency Fixed amount of a costing item in controlling area currency CompanyCodeCurrency Compandy code currency TotalPriceInCompanyCodeCrcy Total price in company code currency Total price of the costing item in company code currency FixedPriceInCompanyCodeCrcy Fixed price in company code currency Fixed price of the costing item in company code currency TotalAmountInCoCodeCrcy Total value in company code currrency Total amount of a costing item in company code currency FixedAmountInCoCodeCrcy Fixed value in company code currency Fixed amount of a costing item in company code currency BaseUnit Base unit of measure QuantityInBaseUnit Quantity in base unit CostElement Cost element CostComponent Cost component Cost component number of main cost component split CostCenter Cost center ProfitCenter Profit center
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Accounting and Financial Close |
| Application Component | CO-PC-PCP |
| Capabilities | Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Accounting and Financial Close for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view provides the results of cost estimates for products at item level. The information can be used to analyze the calculated costs and the origins of the costs.</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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CKIS | P_CKIS | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProductCostEstimate | _CostEstimate | $projection.CostingReferenceObject = _CostEstimate.CostingReferenceObject and $projection.CostEstimate = _CostEstimate.CostEstimate and $projection.CostingType = _CostEstimate.CostingType and $projection.CostingDate = _CostEstimate.CostingDate and $projection.CostingVersion = _CostEstimate.CostingVersion and $projection.ValuationVariant = _CostEstimate.ValuationVariant and $projection.CostIsEnteredManually = _CostEstimate.CostIsEnteredManually |
| [0..1] | I_Product | _Product | $projection.Product = _Product.Product |
| [0..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_CostingValuationVariant | _ValuationVariant | $projection.ValuationVariant = _ValuationVariant.ValuationVariant |
| [1..1] | I_Currency | _CompanyCodeCurrency | $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency |
| [1..1] | I_Currency | _ControllingAreaCurrency | $projection.ControllingAreaCurrency = _ControllingAreaCurrency.Currency |
| [0..1] | I_UnitOfMeasure | _BaseUnitOfMeasure | $projection.BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure |
| [0..1] | I_UnitOfMeasure | _CostingUnitOfMeasure | $projection.CostingPriceQtyUnit = _CostingUnitOfMeasure.UnitOfMeasure |
| [0..1] | I_WBSElementBasicData | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPRODCOSTESI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Analytics.dataCategory | #FACT | view | |
| Analytics.internalName | #LOCAL | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_FACT | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | Product Cost Estimate Item | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (69)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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. | |
| KEY | CostingItem | posnr | Unit Costing Line Item Number | |
| CostingItemCategory | typps | Item Category | ||
| Plant | werks | Receiving Plant | ||
| Product | Product Number | |||
| ValuationType | bwtar | Valuation Type | ||
| ControllingAreaCurrency | hwaer | Local Currency | ||
| TotalPriceInInCtrlgAreaCrcy | Total Price in Controlling Area Currency | |||
| FixedPriceInCtrlgAreaCrcy | Fixed Price in Controlling Area Currency | |||
| TotalAmountInCtrlgAreaCrcy | Total Amount in Controlling Area Currency | |||
| FixedAmountInCtrlgAreaCrcy | Fixed Amount in Controlling Area Currency | |||
| TotalPriceInCompanyCodeCrcy | Total Price in Company Code Currency | |||
| FixedPriceInCompanyCodeCrcy | Fixed Price in Company Code Currency | |||
| CompanyCodeCurrency | fwaer_kpf | Object Currency | ||
| TotalAmountInCoCodeCrcy | Total Value in Company Code Currency | |||
| FixedAmountInCoCodeCrcy | Fixed Value in Company Code Currency | |||
| BaseUnit | meeht | Base Unit of Measure | ||
| QuantityInBaseUnit | menge | WarrCountValue | ||
| AssyScrapQuantityInValnQtyUnit | ausmg | Scrap Quantity | ||
| CompScrapQuantityInValnQtyUnit | ausmgko | Component Scrap Quantity | ||
| CostingPriceUnitQty | peinh | Price Unit of Prices in Controlling Area Currency | ||
| CostingPriceQtyUnit | pmeht | Price Quantity Unit | ||
| CostElement | kstar | Settlement CE | ||
| CostOriginGroup | hrkft | Origin Group as Subdivision of Cost Element | ||
| CostComponent | elemt | Cost Component Number of Main Cost Component Split | ||
| AuxiliaryCostComponent | Cost Component Number of Auxiliary Cost Component Split | |||
| Creditor | lifnr | Account Number of Supplier | ||
| CostEstIsMixedCosting | mkalk | Mixed Costing Indicator | ||
| CostgMixingRatioValue | misch_verh | Mixing Ratio | ||
| ProcmtAltvCostEstimate | kalnr_ba | Cost Estimate Number of Procurement Alternative | ||
| TransferCostEstimate | ukaln | Cost Estimate Number of Transferred Cost Estimate | ||
| TransferCostingType | ukalka | Costing Type of Transferred Cost Estimate | ||
| TransferCostingDate | ukadky | Date of Transferred Cost Estimate | ||
| TransferCostingVersion | utvers | Costing Version for Transfer | ||
| TransferValuationVariant | ubwvar | Valuation Variant of Transferred Cost Estimate | ||
| CostCenter | kostl | Substitute CC | ||
| ProfitCenter | prctr | Profit Centers | ||
| BusinessArea | gsber | Business Area | ||
| CostCtrActivityType | lstar | Activity Type | ||
| CostingObject | arbid | WorkCtrGp plan. | ||
| Operation | Operation or Phase Number | |||
| PurchasingInfoRecord | infnr | Number of purchasing info record | ||
| PurchasingOrganization | ekorg | Purchasing Organization | ||
| PurchasingInfoRecordCategory | esokz | Purchasing info record category | ||
| PurchasingDocument | ebeln | Purchasing Document Number | ||
| PurchasingDocumentItem | ebelp | Item Number of Purchasing Document | ||
| CostingValuationStrategy | Valuation Strategy for Material Component | |||
| ProductValnPurgInfoRecdStrgy | substrat | Substrategy for Material Valuat. with Purchasing Info Record | ||
| BillOfMaterialItemNumber | Bill of Material Item Number | |||
| CostingItemIsAssembly | Assembly Indicator for Item | |||
| WBSElementInternalID | WBS Element | |||
| CostCompSplitIsExisting | schkz | Main Cost Component Split for KALKTAB Item Exists | ||
| HasError | fehlkz | Error Indicator | ||
| _CostEstimate | _CostEstimate | |||
| _Product | _Product | |||
| _CostingType | _CostingType | |||
| _CostingVersion | _CostingVersion | |||
| _ValuationVariant | _ValuationVariant | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _ControllingAreaCurrency | _ControllingAreaCurrency | |||
| _BaseUnitOfMeasure | _BaseUnitOfMeasure | |||
| _CostingUnitOfMeasure | _CostingUnitOfMeasure | |||
| _WBSElement | _WBSElement |
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_ProductCostEstimateItem.
-- 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_ProductCostEstimateItem 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,
posnr AS CostingItem,
typps AS CostingItemCategory,
werks AS Plant,
cast( matnr as productnumber preserving type ) AS Product,
bwtar AS ValuationType,
hwaer AS ControllingAreaCurrency,
cast(gpreis as fpc_vdm_totpr_ca preserving type ) AS TotalPriceInInCtrlgAreaCrcy,
cast(fpreis as fpc_vdm_fxdpr_ca preserving type ) AS FixedPriceInCtrlgAreaCrcy,
cast(wertn as fpc_vdm_cawaer_total preserving type ) AS TotalAmountInCtrlgAreaCrcy,
cast(wrtfx as fpc_vdm_cawaer_fixed preserving type ) AS FixedAmountInCtrlgAreaCrcy,
cast( opreis as fpc_vdm_totpr_cc preserving type ) AS TotalPriceInCompanyCodeCrcy,
cast( opreifx as fpc_vdm_fxdpr_cc preserving type ) AS FixedPriceInCompanyCodeCrcy,
fwaer_kpf AS CompanyCodeCurrency,
cast(wrtfw_kpf as ck_gwbk preserving type) AS TotalAmountInCoCodeCrcy,
cast(wrtfw_kfx as ck_fwbk preserving type ) AS FixedAmountInCoCodeCrcy,
meeht AS BaseUnit,
menge AS QuantityInBaseUnit,
ausmg AS AssyScrapQuantityInValnQtyUnit,
ausmgko AS CompScrapQuantityInValnQtyUnit,
peinh AS CostingPriceUnitQty,
pmeht AS CostingPriceQtyUnit,
kstar AS CostElement,
hrkft AS CostOriginGroup,
elemt AS CostComponent,
cast (elemtns as ck_elemns preserving type ) AS AuxiliaryCostComponent,
lifnr AS Creditor,
mkalk AS CostEstIsMixedCosting,
misch_verh AS CostgMixingRatioValue,
kalnr_ba AS ProcmtAltvCostEstimate,
ukaln AS TransferCostEstimate,
ukalka AS TransferCostingType,
ukadky AS TransferCostingDate,
utvers AS TransferCostingVersion,
ubwvar AS TransferValuationVariant,
kostl AS CostCenter,
prctr AS ProfitCenter,
gsber AS BusinessArea,
lstar AS CostCtrActivityType,
arbid AS CostingObject,
cast( vornr as vdm_vornr preserving type ) AS Operation,
infnr AS PurchasingInfoRecord,
ekorg AS PurchasingOrganization,
esokz AS PurchasingInfoRecordCategory,
ebeln AS PurchasingDocument,
ebelp AS PurchasingDocumentItem,
cast(strat as ck_bwsma preserving type ) AS CostingValuationStrategy,
substrat AS ProductValnPurgInfoRecdStrgy,
cast(sposn as ck_sposn preserving type ) AS BillOfMaterialItemNumber,
cast(baugr as ck_baukz preserving type) AS CostingItemIsAssembly,
cast( pspnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
schkz AS CostCompSplitIsExisting,
fehlkz AS HasError
FROM P_CKIS
LEFT OUTER JOIN I_ProductCostEstimate AS _CostEstimate ON CostingReferenceObject = _CostEstimate.CostingReferenceObject AND CostEstimate = _CostEstimate.CostEstimate AND CostingType = _CostEstimate.CostingType AND CostingDate = _CostEstimate.CostingDate AND CostingVersion = _CostEstimate.CostingVersion AND ValuationVariant = _CostEstimate.ValuationVariant AND CostIsEnteredManually = _CostEstimate.CostIsEnteredManually -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product -- association [0..1]
LEFT OUTER JOIN I_CostingType AS _CostingType ON CostingType = _CostingType.CostingType -- association [0..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_CostingValuationVariant AS _ValuationVariant ON ValuationVariant = _ValuationVariant.ValuationVariant -- association [1..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_Currency AS _ControllingAreaCurrency ON ControllingAreaCurrency = _ControllingAreaCurrency.Currency -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnitOfMeasure ON BaseUnit = _BaseUnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _CostingUnitOfMeasure ON CostingPriceQtyUnit = _CostingUnitOfMeasure.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA