I_Mast

DDL: I_MAST SQL: IMAST Type: view BASIC

Material to BOM Link

I_Mast is a Basic CDS View that provides data about "Material to BOM Link" in SAP S/4HANA. It reads from 1 data source (mast) and exposes 9 fields with key fields BillOfMaterial, BillOfMaterialVariant, BillOfMaterialCategory.

Data Sources (1)

SourceAliasJoin Type
mast mast from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IMAST view
AbapCatalog.preserveKey true view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material to BOM Link view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial BOM
KEY BillOfMaterialVariant stlal AlternativeBOM
KEY BillOfMaterialCategory
Material matnr Vehicle Model
Plant werks Receiving Plant
BillOfMaterialVariantUsage stlan Usage
MatFromLotSizeQuantity losvn Lot Size From
MaterialToLotSizeQuantity losbs To Lot Size
IsConfiguredMaterial cslty Configured matl

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_Mast.
-- 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: IMAST

CREATE VIEW I_Mast AS
SELECT
  cast( stlnr as char8 preserving type) AS BillOfMaterial,
  stlal AS BillOfMaterialVariant,
  cast ('M' as stlty preserving type) AS BillOfMaterialCategory,
  matnr AS Material,
  werks AS Plant,
  stlan AS BillOfMaterialVariantUsage,
  losvn AS MatFromLotSizeQuantity,
  losbs AS MaterialToLotSizeQuantity,
  cslty AS IsConfiguredMaterial
FROM mast
;