I_MaterialStockNetWeight

DDL: I_MATERIALSTOCKNETWEIGHT SQL: IMATSTKNETW Type: view COMPOSITE

Netweight of Material on Stock

I_MaterialStockNetWeight is a Composite CDS View that provides data about "Netweight of Material on Stock" in SAP S/4HANA. It reads from 1 data source (I_MaterialStockTimeSeries) and exposes 29 fields with key fields PeriodType, EndDate, YearPeriod, Material, Plant.

Data Sources (1)

SourceAliasJoin Type
I_MaterialStockTimeSeries I_MaterialStockTimeSeries from

Parameters (2)

NameTypeDefault
P_StartDate vdm_v_start_date
P_EndDate vdm_v_end_date

Annotations (10)

NameValueLevelField
EndUserText.label Netweight of Material on Stock view
VDM.viewType #COMPOSITE view
Metadata.allowExtensions true view
AccessControl.authorizationCheck #MANDATORY view
AbapCatalog.sqlViewName IMATSTKNETW view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY PeriodType PeriodType PeriodIndicator
KEY EndDate EndDate Term to
KEY YearPeriod YearPeriod Fiscal Year Period
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY Batch Batch Lot No.
KEY Supplier Supplier Supplier
KEY SDDocument SDDocument SD Document
KEY SDDocumentItem SDDocumentItem
KEY WBSElementInternalID WBSElementInternalID WBS Internal ID
KEY Customer Customer Sold-to Party
KEY InventoryStockType InventoryStockType Stock Type
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY FiscalYearVariant FiscalYearVariant FY Variant
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
_Material _Material
_Plant _Plant
_Supplier _Supplier
_Customer _Customer
_InventorySpecialStockType _InventorySpecialStockType
_InventoryStockType _InventoryStockType
_StorageLocation _StorageLocation
MaterialWeightUnit _Material MaterialWeightUnit
_WeightUnit _Material _WeightUnit
MaterialNetWeight _Material MaterialNetWeight
_FiscalYearVariant _FiscalYearVariant
MatlWrhsStkQtyInMatlBaseUnit MatlWrhsStkQtyInMatlBaseUnit Quantity
quan143asMatlWrhsStockNetWeight Quantity

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_MaterialStockNetWeight.
-- 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.
-- SQL view name: IMATSTKNETW
-- Parameters: P_StartDate : vdm_v_start_date, P_EndDate : vdm_v_end_date

CREATE VIEW I_MaterialStockNetWeight AS
SELECT
  PeriodType,
  EndDate,
  YearPeriod,
  Material,
  Plant,
  StorageLocation,
  Batch,
  Supplier,
  SDDocument,
  SDDocumentItem,
  WBSElementInternalID,
  Customer,
  InventoryStockType,
  InventorySpecialStockType,
  FiscalYearVariant,
  MaterialBaseUnit,
  _Material.MaterialWeightUnit AS MaterialWeightUnit,
  _Material._WeightUnit AS _WeightUnit,
  _Material.MaterialNetWeight AS MaterialNetWeight,
  MatlWrhsStkQtyInMatlBaseUnit,
  cast (MatlWrhsStkQtyInMatlBaseUnit as abap.quan(14,3) ) * cast (_Material.MaterialNetWeight as abap.quan(14,3) ) as MatlWrhsStockNetWeight AS quan143asMatlWrhsStockNetWeight
FROM I_MaterialStockTimeSeries
;