R_CostEstPreparedItemization

DDL: R_COSTESTPREPAREDITEMIZATION Type: view_entity BASIC

Prepared Cost Estimate Itemization

R_CostEstPreparedItemization is a Basic CDS View that provides data about "Prepared Cost Estimate Itemization" in SAP S/4HANA. It reads from 1 data source (finplan_pcc_ce) and exposes 43 fields with key fields CostEstPrepConfiguration, CostEstPrprdConfignRecord. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
finplan_pcc_ce finplan_pcc_ce from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_CostingType _CostingType $projection.CostingType = _CostingType.CostingType
[1..1] I_CostingValuationVariant _ValuationVariant $projection.ValuationVariant = _ValuationVariant.ValuationVariant
[1..1] I_CostingVariant _CostingVariant $projection.CostingVariant = _CostingVariant.CostingVariant
[1..1] I_Product _Product $projection.SoldProduct = _Product.Product
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.ValuationQuantityUnit = _UnitOfMeasure.UnitOfMeasure
[0..1] I_Currency _ControllingAreaCurrency $projection.GlobalCurrency = _ControllingAreaCurrency.Currency
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_CostingVersion _CostingVersion $projection.CostingVersion = _CostingVersion.CostingVersion and $projection.CostingType = _CostingVersion.CostingType and $projection.ValuationVariant = _CostingVersion.ValuationVariant

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Prepared Cost Estimate Itemization view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (43)

KeyFieldSource TableSource FieldDescription
KEY CostEstPrepConfiguration confid Privacy Level
KEY CostEstPrprdConfignRecord record Object GUID
ProdCostEstNumber ce_number ProdCostEst.No.
CostingType costing_type Costing Type
EstimatedCostCostingRunDate costing_date Costing Date
CostingVersion costing_version Costing Version
ValuationVariant valuation_variant Valuation Variant
CostComponentView cost_component_view Cost Comp. View
CostingVariant costing_variant Costing Variant
CostEstimateStatus costing_status Costing Status
ValuationType valuation_type Valuation Type
CostComponentStructure cost_component_layout Cost Comp. Str.
Plant plant Valuation Area
SoldProduct product Product Sold
CostOfGoodsSoldSplitIsUsed use_cogs_split COGS Split is used
ComponentPlant mat_plant Plant
ComponentProduct material Vehicle Model
ChartOfAccounts chart_of_accounts Chart of Accts
GLAccount account Std. Account
PartnerCostCenter partner_cost_center Partner Cost Center
PartnerCostCtrActivityType partner_activity_type Partner Cost Center Activity Type
ControllingArea co_area Controlling Area
ProfitCenter profit_ctr Profit Center
CompanyCode compcode Company Code
Ledger ledger Ledger
CostComponent cost_component Cost Component
ValuationQuantity quantity Value
ValuationQuantityUnit base_unit_of_measure Valuation UoM
CostingLotSize lotsize Quantity
LotSizeUnit lotsizeunit Lot Size Unit
FixedVariableType fix_var_indicator Fixed Variable Type
AmountInGlobalCurrency co_area_currency_amount Amount in Global Currency
GlobalCurrency co_area_currency_key Global Currency
AmountInCompanyCodeCurrency ccode_currency_amount Amount in Company Code Currency
CompanyCodeCurrency ccode_currency_key Company Code Currency
_CostingType _CostingType
_ValuationVariant _ValuationVariant
_CostingVariant _CostingVariant
_Product _Product
_UnitOfMeasure _UnitOfMeasure
_ControllingAreaCurrency _ControllingAreaCurrency
_CompanyCodeCurrency _CompanyCodeCurrency
_CostingVersion _CostingVersion

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_CostEstPreparedItemization.
-- 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_CostEstPreparedItemization AS
SELECT
  confid AS CostEstPrepConfiguration,
  record AS CostEstPrprdConfignRecord,
  ce_number AS ProdCostEstNumber,
  costing_type AS CostingType,
  costing_date AS EstimatedCostCostingRunDate,
  costing_version AS CostingVersion,
  valuation_variant AS ValuationVariant,
  cost_component_view AS CostComponentView,
  costing_variant AS CostingVariant,
  costing_status AS CostEstimateStatus,
  valuation_type AS ValuationType,
  cost_component_layout AS CostComponentStructure,
  Plant,
  product AS SoldProduct,
  use_cogs_split AS CostOfGoodsSoldSplitIsUsed,
  mat_plant AS ComponentPlant,
  material AS ComponentProduct,
  chart_of_accounts AS ChartOfAccounts,
  account AS GLAccount,
  partner_cost_center AS PartnerCostCenter,
  partner_activity_type AS PartnerCostCtrActivityType,
  co_area AS ControllingArea,
  profit_ctr AS ProfitCenter,
  compcode AS CompanyCode,
  Ledger,
  cost_component AS CostComponent,
  quantity AS ValuationQuantity,
  base_unit_of_measure AS ValuationQuantityUnit,
  lotsize AS CostingLotSize,
  LotSizeUnit,
  fix_var_indicator AS FixedVariableType,
  co_area_currency_amount AS AmountInGlobalCurrency,
  co_area_currency_key AS GlobalCurrency,
  ccode_currency_amount AS AmountInCompanyCodeCurrency,
  ccode_currency_key AS CompanyCodeCurrency
FROM finplan_pcc_ce
LEFT OUTER JOIN I_CostingType AS _CostingType ON CostingType = _CostingType.CostingType  -- association [1..1]
LEFT OUTER JOIN I_CostingValuationVariant AS _ValuationVariant ON ValuationVariant = _ValuationVariant.ValuationVariant  -- association [1..1]
LEFT OUTER JOIN I_CostingVariant AS _CostingVariant ON CostingVariant = _CostingVariant.CostingVariant  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON SoldProduct = _Product.Product  -- association [1..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON ValuationQuantityUnit = _UnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _ControllingAreaCurrency ON GlobalCurrency = _ControllingAreaCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- 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]
;