I_SupDmndAllDocBatStkBsc

DDL: I_SUPDMNDALLDOCBATSTKBSC Type: view COMPOSITE

Basic View for Batch Stock

I_SupDmndAllDocBatStkBsc is a Composite CDS View that provides data about "Basic View for Batch Stock" in SAP S/4HANA. It reads from 2 data sources (P_SupDmndAllDocOpenDeliveries, P_SupDmndAllDocBatStkBsc) and exposes 36 fields.

Data Sources (2)

SourceAliasJoin Type
P_SupDmndAllDocOpenDeliveries Deliv left_outer
P_SupDmndAllDocBatStkBsc Stock from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName ISUPDMNDADBSTKB view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XXL view
EndUserText.label Basic View for Batch Stock view

Fields (36)

KeyFieldSource TableSource FieldDescription
SupplyNumber
SupplyItem
SupplyScheduleLine
Material P_SupDmndAllDocBatStkBsc Material Vehicle Model
Plant P_SupDmndAllDocBatStkBsc Plant Valuation Area
Batch P_SupDmndAllDocBatStkBsc Batch Lot No.
StorageLocation P_SupDmndAllDocBatStkBsc StorageLocation StorageLocation
SupAssgmtSource
SupplyDeliveryDate SupplyDeliveryDate
ProductAvailabilityDate SupplyDeliveryDate
RequestedDeliveryDate SupplyDeliveryDate
InventorySpecialStockType P_SupDmndAllDocBatStkBsc InventorySpecialStockType Special Stock Type
SalesOrder P_SupDmndAllDocBatStkBsc SalesOrder SD Document
SalesOrderItem P_SupDmndAllDocBatStkBsc SalesOrderItem Sales Order Item
MaterialGroup P_SupDmndAllDocBatStkBsc MaterialGroup Product Group
Customer P_SupDmndAllDocBatStkBsc Customer Sold-to Party
Supplier P_SupDmndAllDocBatStkBsc Supplier Supplier
MaterialType P_SupDmndAllDocBatStkBsc MaterialType Material Type
StockSegment P_SupDmndAllDocBatStkBsc StockSegment Stock Segment
CrossPlantConfigurableProduct P_SupDmndAllDocBatStkBsc CrossPlantConfigurableProduct Cross-plant CP
IsInternalBatchManaged P_SupDmndAllDocBatStkBsc IsInternalBatchManaged Batches
TotalQuantity P_SupDmndAllDocBatStkBsc TotalQuantity Activity Quantity
UnrestrictedStkInStkUnit UnrestrictedStkInStkUnit
QualityInspectionStockQuantity QualityInspectionStockQuantity
TransferStockStorageLocQty TransferStockStorageLocQty
TransferStockPlantQuantity TransferStockPlantQuantity
StockInTransitQuantity StockInTransitQuantity Stk in Transit
BlockedStockQuantity BlockedStockQuantity
RestrictedStockQuantity RestrictedStockQuantity
TiedEmptiesStockQuantity TiedEmptiesStockQuantity
GoodsReceiptBlockedStockQty GoodsReceiptBlockedStockQty Val. GR Blocked Stck
DeliveredQuantity0asOpenSupplyQuantity
BaseUnit P_SupDmndAllDocBatStkBsc BaseUnit Unit of Measure
NetPriceAmount P_SupDmndAllDocBatStkBsc NetPriceAmount Net Price
DocumentCurrency P_SupDmndAllDocBatStkBsc DocumentCurrency Document Currency
DeliveredQuantity P_SupDmndAllDocOpenDeliveries DeliveredQuantity Qty. in OPUn

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_SupDmndAllDocBatStkBsc.
-- 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_SupDmndAllDocBatStkBsc AS
SELECT
  cast('' as abap.char( 12 )) AS SupplyNumber,
  cast('000000' as abap.char(6)) AS SupplyItem,
  cast('0000' as abap.char(4)) AS SupplyScheduleLine,
  Stock.Material AS Material,
  Stock.Plant AS Plant,
  Stock.Batch AS Batch,
  Stock.StorageLocation AS StorageLocation,
  'C' AS SupAssgmtSource,
  SupplyDeliveryDate,
  SupplyDeliveryDate AS ProductAvailabilityDate,
  SupplyDeliveryDate AS RequestedDeliveryDate,
  Stock.InventorySpecialStockType AS InventorySpecialStockType,
  Stock.SalesOrder AS SalesOrder,
  Stock.SalesOrderItem AS SalesOrderItem,
  Stock.MaterialGroup AS MaterialGroup,
  Stock.Customer AS Customer,
  Stock.Supplier AS Supplier,
  Stock.MaterialType AS MaterialType,
  Stock.StockSegment AS StockSegment,
  Stock.CrossPlantConfigurableProduct AS CrossPlantConfigurableProduct,
  Stock.IsInternalBatchManaged AS IsInternalBatchManaged,
  Stock.TotalQuantity AS TotalQuantity,
  UnrestrictedStkInStkUnit,
  QualityInspectionStockQuantity,
  TransferStockStorageLocQty,
  TransferStockPlantQuantity,
  StockInTransitQuantity,
  BlockedStockQuantity,
  RestrictedStockQuantity,
  TiedEmptiesStockQuantity,
  GoodsReceiptBlockedStockQty,
  ( Stock.TotalQuantity - coalesce( Deliv.DeliveredQuantity, 0 ) ) as OpenSupplyQuantity AS DeliveredQuantity0asOpenSupplyQuantity,
  Stock.BaseUnit AS BaseUnit,
  Stock.NetPriceAmount AS NetPriceAmount,
  Stock.DocumentCurrency AS DocumentCurrency,
  Deliv.DeliveredQuantity AS DeliveredQuantity
FROM P_SupDmndAllDocBatStkBsc AS Stock
LEFT OUTER JOIN P_SupDmndAllDocOpenDeliveries AS Deliv ON /* join condition not captured in parsed metadata */
;