I_MatlStockDocumentItemSet

DDL: I_MATLSTOCKDOCUMENTITEMSET Type: view_entity BASIC

Material Document Item Set

I_MatlStockDocumentItemSet is a Basic CDS View that provides data about "Material Document Item Set" in SAP S/4HANA. It reads from 1 data source (matstkdocitmset) and exposes 16 fields with key fields MaterialStockDocumentItemSetID, MatlStkDocumentItemSetElement. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
matstkdocitmset matstkdocitmset from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_MaterialDocumentRecord _MaterialDocument $projection.MaterialDocumentYear = _MaterialDocument.MaterialDocumentYear and $projection.MaterialDocument = _MaterialDocument.MaterialDocument and $projection.MaterialDocumentItem = _MaterialDocument.MaterialDocumentItem

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material Document Item Set view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view
VDM.private false view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY MaterialStockDocumentItemSetID matdocitmset_id Document Set Id
KEY MatlStkDocumentItemSetElement matdocitmset_det_id Set Element Id
MaterialDocument materialdocument Material Doc.
MaterialDocumentYear materialdocumentyear Material Document Year
MaterialDocumentItem materialdocumentitem Material Document Item
Material _MaterialDocument Material Vehicle Model
Plant _MaterialDocument Plant Valuation Area
StorageLocation _MaterialDocument StorageLocation StorageLocation
PostingDate _MaterialDocument PostingDate Posting Date for GR
DebitCreditCode _MaterialDocument DebitCreditCode Single-Character Flag
Batch _MaterialDocument Batch Lot No.
QuantityInEntryUnit _MaterialDocument QuantityInEntryUnit Quantity in Unit of Entry
EntryUnit _MaterialDocument EntryUnit Unit of Entry
MatlWrhsStkQtyInMatlBaseUnit stockquantity Quantity
MaterialBaseUnit materialbaseunit Valuation Unit
_MaterialDocument _MaterialDocument

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_MatlStockDocumentItemSet.
-- 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_MatlStockDocumentItemSet AS
SELECT
  matdocitmset_id AS MaterialStockDocumentItemSetID,
  matdocitmset_det_id AS MatlStkDocumentItemSetElement,
  MaterialDocument,
  MaterialDocumentYear,
  MaterialDocumentItem,
  _MaterialDocument.Material AS Material,
  _MaterialDocument.Plant AS Plant,
  _MaterialDocument.StorageLocation AS StorageLocation,
  _MaterialDocument.PostingDate AS PostingDate,
  _MaterialDocument.DebitCreditCode AS DebitCreditCode,
  _MaterialDocument.Batch AS Batch,
  _MaterialDocument.QuantityInEntryUnit AS QuantityInEntryUnit,
  _MaterialDocument.EntryUnit AS EntryUnit,
  stockquantity AS MatlWrhsStkQtyInMatlBaseUnit,
  MaterialBaseUnit
FROM matstkdocitmset
LEFT OUTER JOIN I_MaterialDocumentRecord AS _MaterialDocument ON MaterialDocumentYear = _MaterialDocument.MaterialDocumentYear AND MaterialDocument = _MaterialDocument.MaterialDocument AND MaterialDocumentItem = _MaterialDocument.MaterialDocumentItem  -- association [1..1]
;