I_CostingVariant

DDL: I_COSTINGVARIANT Type: view BASIC

Costing Variant

I_CostingVariant (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_CostingVariant is a Basic CDS View (Dimension) that provides data about "Costing Variant" in SAP S/4HANA. It reads from 1 data source (tck03) and exposes 10 fields with key field CostingVariant. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Product Cost Controlling
Data CategoryDIMENSION
Purpose
This CDS view provides information about settings for Costing Variants in Product Cost Planning. 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 .

Structure
Further Important Fields Important fields in I_CostingVariant include the following: Field Name Description Comment CostingVariant Costing variant in product costing Defines how a cost estimate is performed and valuated. ValuationVariant Valuation variant in product costing Defines settings required for the valuation of a cost estimate. CostingType Costing type in product costing Defines the purpose of a product cost estimate. Important fields in I_CostingVariantText include the following: Field Name Description CostingVariant Costing variant in product costing Language Language key CostingVariantName Description of costing variant

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessAccounting and Financial Close
Application ComponentCO-PC-PCP
CapabilitiesAnalytical Dimension, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Defining CDS Entities
PackageAccounting and Financial Close for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides information about settings for Costing Variants in Product Cost Planning. </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
tck03 tck03 from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_CostingVariantText _Text $projection.CostingVariant = _Text.CostingVariant
[0..1] I_CostingValuationVariant _CostingValuationVariant $projection.ValuationVariant = _CostingValuationVariant.ValuationVariant
[0..1] I_CostingType _CostingType $projection.CostingType = _CostingType.CostingType

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IFICOSTGVARIANT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.type #CLIENT_DEPENDENT view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey CostingVariant view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Costing Variant view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY CostingVariant klvar Costing Variant
ValuationVariant bwvar Valuation Variant in Costing
CostEstimateReferenceVariant refid Reference Variant
CostingType kalka Costing Type
CostEstimateTransferControl uebid Transfer Control
CostEstTransfCtrlIsChangeable voraend Defaults Can Be Changed
CostingReferenceObject bzobj Reference Object
_Text _Text
_CostingValuationVariant _CostingValuationVariant
_CostingType _CostingType

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_CostingVariant.
-- 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_CostingVariant AS
SELECT
  klvar AS CostingVariant,
  bwvar AS ValuationVariant,
  refid AS CostEstimateReferenceVariant,
  kalka AS CostingType,
  uebid AS CostEstimateTransferControl,
  voraend AS CostEstTransfCtrlIsChangeable,
  bzobj AS CostingReferenceObject
FROM tck03
LEFT OUTER JOIN I_CostingVariantText AS _Text ON CostingVariant = _Text.CostingVariant  -- association [0..*]
LEFT OUTER JOIN I_CostingValuationVariant AS _CostingValuationVariant ON ValuationVariant = _CostingValuationVariant.ValuationVariant  -- association [0..1]
LEFT OUTER JOIN I_CostingType AS _CostingType ON CostingType = _CostingType.CostingType  -- association [0..1]
;