I_SerialNumberStockDifference

DDL: I_SERIALNUMBERSTOCKDIFFERENCE Type: view_entity COMPOSITE Package: ODATA_LO_SN_STOCK_QUANTITIES

Serialized Stock Difference

I_SerialNumberStockDifference is a Composite CDS View that provides data about "Serialized Stock Difference" in SAP S/4HANA. It reads from 1 data source (P_SerialNumberStockDifference) and exposes 17 fields with key fields Material, Plant, Batch, StorageLocation, InventoryStockType. Part of development package ODATA_LO_SN_STOCK_QUANTITIES.

Data Sources (1)

SourceAliasJoin Type
P_SerialNumberStockDifference P_SerialNumberStockDifference from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Serialized Stock Difference view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY Plant Plant Valuation Area
KEY Batch Batch Lot No.
KEY StorageLocation StorageLocation StorageLocation
KEY InventoryStockType InventoryStockType Stock Type
KEY InventorySpecialStockType InventorySpecialStockType Special Stock Type
KEY Supplier Supplier Supplier
KEY SalesOrder SalesOrder SD Document
KEY SalesOrderItem SalesOrderItem Sales Order Item
KEY WBSElementInternalID WBSElementInternalID WBS Internal ID
KEY Customer Customer Sold-to Party
KEY StockOwner StockOwner Owner of stock
KEY MaterialBaseUnit MaterialBaseUnit Valuation Unit
CompanyCode CompanyCode Receiver Company Code
MatlWrhsStkQtyInMatlBaseUnit
SerialNumberQuantity
SerialNumberProfile SerialNumberProfile SerialNoProfile

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_SerialNumberStockDifference.
-- 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_SerialNumberStockDifference AS
SELECT
  Material,
  Plant,
  Batch,
  StorageLocation,
  InventoryStockType,
  InventorySpecialStockType,
  Supplier,
  SalesOrder,
  SalesOrderItem,
  WBSElementInternalID,
  Customer,
  StockOwner,
  MaterialBaseUnit,
  CompanyCode,
  sum(MatlWrhsStkQtyInMatlBaseUnit) AS MatlWrhsStkQtyInMatlBaseUnit,
  sum(SerialNumberQuantity) AS SerialNumberQuantity,
  SerialNumberProfile
FROM P_SerialNumberStockDifference
;