F_Mmm_Docflow_Lnk

DDL: F_MMM_DOCFLOW_LNK SQL: FMMIMDOCFLOWLNK Type: view

Material Documents Reference Documents

F_Mmm_Docflow_Lnk is a CDS View that provides data about "Material Documents Reference Documents" in SAP S/4HANA. It reads from 5 data sources (F_Mmim_Acdoca_Ele, matdoc, matdoc, matdoc, matdoc) and exposes 77 fields.

Data Sources (5)

SourceAliasJoin Type
F_Mmim_Acdoca_Ele F_Mmim_Acdoca_Ele from
matdoc matdoc union_all
matdoc matdoc union_all
matdoc matdoc union_all
matdoc matdoc union_all

Annotations (9)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName FMMIMDOCFLOWLNK view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Material Documents Reference Documents view

Fields (77)

KeyFieldSource TableSource FieldDescription
MaterialDocument ReferenceDocument Reference Document
MaterialDocumentYear ReferenceDocumentContext Mat. Doc. Year
MaterialDocumentItem ReferenceDocumentItem Mat. Doc.Item
ItemCategoryGroup
ItemCategory
ReferenceDocument AccountingDocument Material Doc.
ReferenceDocumentItem LedgerGLLineItem Mat. Doc.Item
CompanyCode CompanyCode Receiver Company Code
DocumentYear FiscalYear Mat. Doc. Year
GoodsMovementType Valuation Type
InventorySpecialStockType Special Stock
GoodMovementRefDocType Movement ind.
OrderType Receipt Ind.
ConsumptionPosting Consumption
ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentYear Reversed Doc Year
MaterialDocumentYear mjahr Mat. Doc. Year
MaterialDocumentItem zeile Mat. Doc.Item
ItemCategoryGroup
ItemCategory
ReferenceDocument ebeln Material Doc.
ReferenceDocumentItem Mat. Doc.Item
CompanyCode Receiver Company Code
DocumentYear Mat. Doc. Year
GoodsMovementType bwart Valuation Type
InventorySpecialStockType sobkz Special Stock
GoodMovementRefDocType kzbew Movement ind.
OrderType kzzug Receipt Ind.
ConsumptionPosting kzvbr Consumption
ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentYear Reversed Doc Year
MaterialDocumentYear mjahr Mat. Doc. Year
MaterialDocumentItem zeile Mat. Doc.Item
ItemCategoryGroup
ItemCategory
ReferenceDocument vbeln_im Material Doc.
ReferenceDocumentItem vbelp_im Mat. Doc.Item
CompanyCode Receiver Company Code
DocumentYear Mat. Doc. Year
GoodsMovementType bwart Valuation Type
InventorySpecialStockType sobkz Special Stock
GoodMovementRefDocType kzbew Movement ind.
OrderType kzzug Receipt Ind.
ConsumptionPosting kzvbr Consumption
ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentYear Reversed Doc Year
MaterialDocumentYear sjahr Mat. Doc. Year
MaterialDocumentItem smblp Mat. Doc.Item
ItemCategoryGroup
ItemCategory
ReferenceDocument mblnr Material Doc.
ReferenceDocumentItem zeile Mat. Doc.Item
CompanyCode Receiver Company Code
DocumentYear mjahr Mat. Doc. Year
GoodsMovementType bwart Valuation Type
InventorySpecialStockType sobkz Special Stock
GoodMovementRefDocType kzbew Movement ind.
OrderType kzzug Receipt Ind.
ConsumptionPosting kzvbr Consumption
ReversedMaterialDocument Reversed Mat Doc
ReversedMaterialDocumentYear Reversed Doc Year
MaterialDocumentYear mjahr Mat. Doc. Year
MaterialDocumentItem zeile Mat. Doc.Item
ItemCategoryGroup
ItemCategory
ReferenceDocument Material Doc.
ReferenceDocumentItem Mat. Doc.Item
CompanyCode Receiver Company Code
DocumentYear Mat. Doc. Year
GoodsMovementType bwart Valuation Type
InventorySpecialStockType sobkz Special Stock
GoodMovementRefDocType kzbew Movement ind.
OrderType kzzug Receipt Ind.
ConsumptionPosting kzvbr Consumption
ReversedMaterialDocument smbln Reversed Mat Doc
ReversedMaterialDocumentYear sjahr Reversed Doc Year
ReversedMaterialDocumentItem smblp Reversed Doc Item

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_Mmm_Docflow_Lnk.
-- 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: FMMIMDOCFLOWLNK

CREATE VIEW F_Mmm_Docflow_Lnk AS
SELECT
  ReferenceDocument AS MaterialDocument,
  ReferenceDocumentContext AS MaterialDocumentYear,
  ReferenceDocumentItem AS MaterialDocumentItem,
  cast('ACC' as char6) AS ItemCategoryGroup,
  cast('' as char2) AS ItemCategory,
  AccountingDocument AS ReferenceDocument,
  LedgerGLLineItem AS ReferenceDocumentItem,
  CompanyCode,
  FiscalYear AS DocumentYear,
  cast('' as bwart) AS GoodsMovementType,
  cast('' as sobkz) AS InventorySpecialStockType,
  cast('' as kzbew) AS GoodMovementRefDocType,
  cast('' as kzzug) AS OrderType,
  cast('' as kzvbr) AS ConsumptionPosting,
  cast('' as mblnr) AS ReversedMaterialDocument,
  cast('' as mjahr) AS ReversedMaterialDocumentYear,
  smblp AS ReversedMaterialDocumentItem
FROM F_Mmim_Acdoca_Ele
-- UNION ALL with additional select branch(es): matdoc
;