Deprecated
This CDS view is deprecated in S/4HANA. Use C_StockQtyCurrentValue_2 instead. View all deprecated CDS views →

C_StockQuantityCurrentValue

DDL: C_STOCKQUANTITYCURRENTVALUE Type: view CONSUMPTION

Current Stock Quantity and Value

C_StockQuantityCurrentValue (Consumption)

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

Supply Chain

C_StockQuantityCurrentValue is a Consumption CDS View that provides data about "Current Stock Quantity and Value" in SAP S/4HANA. It reads from 1 data source (I_StockQuantityCurrentValue) and exposes 21 fields.

SAP API Hub

StateC1
Line of BusinessSupply Chain
Application ComponentMM-IM-VDM-SGM
CapabilitiesAnalytical Query
PackageSupply Chain for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
I_StockQuantityCurrentValue I_StockQuantityCurrentValue from

Parameters (1)

NameTypeDefault
P_DisplayCurrency nsdm_display_currency

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CSTOCKQUANVALCUR view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Current Stock Quantity and Value view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.modelingPattern #ANALYTICAL_QUERY view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor C_StockQtyCurrentValue_2 view
Analytics.query true view

Fields (21)

KeyFieldSource TableSource FieldDescription
defaultValueEUR
P_DisplayCurrencyProduct
Plant Plant Valuation Area
StorageLocation StorageLocation Storage Location
Batch Batch Batch Number (Stock Identifier)
Supplier Supplier Supplier for Special Stock
SDDocument SDDocument Sales Order Number of Valuated Sales Order Stock
SDDocumentItem SDDocumentItem Sales Order Item of Valuated Sales Order Stock
WBSElementInternalID WBSElementInternalID Valuated Sales Order Stock WBS Element
Customer Customer Customer for Special Stock
SpecialStockIdfgStockOwner SpecialStockIdfgStockOwner Add. Supplier for Special Stock
InventoryStockType InventoryStockType Stock Type of Goods Movement (Stock Identifier)
InventorySpecialStockType InventorySpecialStockType Special Stock Type
ProductGroup ProductGroup Product Sold Group
ProductType ProductType Product Type Group
MaterialBaseUnit MaterialBaseUnit Base Unit of Measure
Currency Currency Valuation Crcy
DisplayCurrency DisplayCurrency Display Currency
MatlWrhsStkQtyInMatlBaseUnit MatlWrhsStkQtyInMatlBaseUnit Stock Quantity in Base Unit of Measure
StockValueInCCCrcy StockValueInCCCrcy Stock Value in Company Code Currency
StockValueInDisplayCurrency StockValueInDisplayCurrency Stock Value in Display Currency

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 C_StockQuantityCurrentValue.
-- 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.
-- Parameters: P_DisplayCurrency : nsdm_display_currency

CREATE VIEW C_StockQuantityCurrentValue AS
SELECT
  defaultValue: 'EUR' AS defaultValueEUR,
  valueHelpDefinition: [{ entity: { name:'I_Currency', element:'Currency' AS P_DisplayCurrencyProduct,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  SDDocument,
  SDDocumentItem,
  WBSElementInternalID,
  Customer,
  SpecialStockIdfgStockOwner,
  InventoryStockType,
  InventorySpecialStockType,
  ProductGroup,
  ProductType,
  MaterialBaseUnit,
  Currency,
  DisplayCurrency,
  MatlWrhsStkQtyInMatlBaseUnit,
  StockValueInCCCrcy,
  StockValueInDisplayCurrency
FROM I_StockQuantityCurrentValue
;