I_SupDmndAllDocNonBatStkBsc

DDL: I_SUPDMNDALLDOCNONBATSTKBSC Type: view COMPOSITE

Basic View for Non Batch Stock

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

Data Sources (2)

SourceAliasJoin Type
P_SupDmndAllDocOpenDeliveries Deliv left_outer
P_SupDmndAllDocNonBatStkBsc 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 ISUPDMNDADNBSTKB 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 Non Batch Stock view

Fields (36)

KeyFieldSource TableSource FieldDescription
SupplyNumber
SupplyItem
SupplyScheduleLine
Material P_SupDmndAllDocNonBatStkBsc Material Vehicle Model
Plant P_SupDmndAllDocNonBatStkBsc Plant Valuation Area
Batch
StorageLocation P_SupDmndAllDocNonBatStkBsc StorageLocation StorageLocation
SupAssgmtSource
SupplyDeliveryDate SupplyDeliveryDate
ProductAvailabilityDate SupplyDeliveryDate
RequestedDeliveryDate SupplyDeliveryDate
InventorySpecialStockType P_SupDmndAllDocNonBatStkBsc InventorySpecialStockType Special Stock Type
SalesOrder P_SupDmndAllDocNonBatStkBsc SalesOrder SD Document
SalesOrderItem P_SupDmndAllDocNonBatStkBsc SalesOrderItem Sales Order Item
MaterialGroup P_SupDmndAllDocNonBatStkBsc MaterialGroup Product Group
Customer P_SupDmndAllDocNonBatStkBsc Customer Sold-to Party
Supplier P_SupDmndAllDocNonBatStkBsc Supplier Supplier
MaterialType P_SupDmndAllDocNonBatStkBsc MaterialType Material Type
StockSegment
CrossPlantConfigurableProduct P_SupDmndAllDocNonBatStkBsc CrossPlantConfigurableProduct Cross-plant CP
IsInternalBatchManaged P_SupDmndAllDocNonBatStkBsc IsInternalBatchManaged Batches
TotalQuantity P_SupDmndAllDocNonBatStkBsc 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_SupDmndAllDocNonBatStkBsc BaseUnit Unit of Measure
NetPriceAmount P_SupDmndAllDocNonBatStkBsc NetPriceAmount Net Price
DocumentCurrency P_SupDmndAllDocNonBatStkBsc 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_SupDmndAllDocNonBatStkBsc.
-- 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_SupDmndAllDocNonBatStkBsc 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,
  cast('' as charg_d ) AS Batch,
  Stock.StorageLocation AS StorageLocation,
  'S' 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,
  cast('' as sgt_scat) 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_SupDmndAllDocNonBatStkBsc AS Stock
LEFT OUTER JOIN P_SupDmndAllDocOpenDeliveries AS Deliv ON /* join condition not captured in parsed metadata */
;