F_Mmim_Matdoc

DDL: F_MMIM_MATDOC Type: view_entity Package: MBND_CLOUD_BL

Help-View for material documents

F_Mmim_Matdoc is a CDS View that provides data about "Help-View for material documents" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 28 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem. Part of development package MBND_CLOUD_BL.

Data Sources (1)

SourceAliasJoin Type
matdoc matdoc from

Annotations (5)

NameValueLevelField
EndUserText.label Help-View for material documents view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY MaterialDocument mblnr Material Doc.
KEY MaterialDocumentYear mjahr Mat. Doc. Year
KEY MaterialDocumentItem zeile Mat. Doc.Item
Material matbf Stock Mat.
Plant Receiving Plant
Batch charg Chargeable Proc.
InventoryStockType lbbsa_sid Stock Type
StorageLocation lgort Sublocation
Customer kunnr Stock customer
IssuingOrReceivingPlant umwrk Receiving plant
IssuingOrReceivingStorageLoc umlgo Receiving SLoc.
IssuingOrReceivingStockType lbbsa_cid Stock Type
DeliveryDocument vbeln_im Delivery
PurchaseOrder ebeln Source PurchDoc
OrderID aufnr SettlementOrder
CreatedByUser usnam User Name
PersonnelNumber pernr Personnel no.
WorkItem work_item_id Work Item ID
GoodsMovementType bwart Valuation Type
EntryUnit erfme Unit of Entry
AccountingDocumentType blart Rep. rec. doc. type
InventorySpecialStockType sobkz Special Stock
StockSegment sgt_scat Stock Segment
Reservation Reservation
ProductSeasonYear fsh_season_year Season Year
ProductSeason fsh_season Season
ProductCollection fsh_collection Collection
ProductTheme fsh_theme Theme

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 F_Mmim_Matdoc.
-- 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 F_Mmim_Matdoc AS
SELECT
  mblnr AS MaterialDocument,
  mjahr AS MaterialDocumentYear,
  zeile AS MaterialDocumentItem,
  matbf AS Material,
  cast(werks as werks_d) AS Plant,
  charg AS Batch,
  lbbsa_sid AS InventoryStockType,
  lgort AS StorageLocation,
  kunnr AS Customer,
  umwrk AS IssuingOrReceivingPlant,
  umlgo AS IssuingOrReceivingStorageLoc,
  lbbsa_cid AS IssuingOrReceivingStockType,
  vbeln_im AS DeliveryDocument,
  ebeln AS PurchaseOrder,
  aufnr AS OrderID,
  usnam AS CreatedByUser,
  pernr AS PersonnelNumber,
  work_item_id AS WorkItem,
  bwart AS GoodsMovementType,
  erfme AS EntryUnit,
  blart AS AccountingDocumentType,
  sobkz AS InventorySpecialStockType,
  sgt_scat AS StockSegment,
  cast(rsnum as nsdm_rsnum preserving type ) AS Reservation,
  fsh_season_year AS ProductSeasonYear,
  fsh_season AS ProductSeason,
  fsh_collection AS ProductCollection,
  fsh_theme AS ProductTheme
FROM matdoc
;