Mmim_MatDocDocFlow
Material Documents Document Flow
Mmim_MatDocDocFlow is a CDS View that provides data about "Material Documents Document Flow" in SAP S/4HANA. It reads from 6 data sources and exposes 96 fields with key fields PrecedingDocument, PrecedingDocumentYear, SubsequentDocument, SubsequentDocumentYear, PrecedingDocumentItem.
Data Sources (6)
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | MMIMMDOCDOCFLOW | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Material Documents Document Flow | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| DataAging.noAgingRestriction | true | view |
Fields (96)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PrecedingDocument | |||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | matdoc | mblnr | Material Doc. |
| KEY | MaterialDocumentYear | matdoc | mjahr | Mat. Doc. Year |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| SubsequentDocumentCategory | ||||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mblnr | Material Doc. | |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| SubsequentDocumentCategory | ||||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mblnr | Material Doc. | |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| SubsequentDocumentCategory | ||||
| record_typeMDOCkeyPrecedingDocument | ||||
| KEY | PrecedingDocumentYear | PrecedingDocumentYear | Reversed Doc Year | |
| KEY | SubsequentDocument | SubsequentDocument | Material Doc. | |
| KEY | SubsequentDocumentYear | SubsequentDocumentYear | Mat. Doc. Year | |
| KEY | PrecedingDocumentItem | PrecedingDocumentItem | Reversed Doc Item | |
| KEY | SubsequentDocumentItem | SubsequentDocumentItem | Mat. Doc.Item | |
| KEY | MaterialDocument | MaterialDocument | Material Doc. | |
| KEY | MaterialDocumentYear | MaterialDocumentYear | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| SubsequentDocumentCategory | SubsequentDocumentCategory | |||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mblnr | Material Doc. | |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| PrecedingDocumentCategory | ||||
| SubsequentDocumentCategory | ||||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mblnr | Material Doc. | |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| PrecedingDocumentCategory | ||||
| SubsequentDocumentCategory | ||||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | Material Doc. | ||
| KEY | MaterialDocumentYear | sjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mat | mblnr | Material Doc. |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| PrecedingDocumentCategory | ||||
| SubsequentDocumentCategory | ||||
| KEY | PrecedingDocumentYear | Reversed Doc Year | ||
| KEY | SubsequentDocument | Material Doc. | ||
| KEY | SubsequentDocumentYear | Mat. Doc. Year | ||
| KEY | PrecedingDocumentItem | Reversed Doc Item | ||
| KEY | SubsequentDocumentItem | Mat. Doc.Item | ||
| KEY | MaterialDocument | mat | mblnr | Material Doc. |
| KEY | MaterialDocumentYear | mat | mjahr | Mat. Doc. Year |
| KEY | MaterialDocumentItem | Mat. Doc.Item | ||
| KEY | FiscalYear | G/L Fiscal Year | ||
| PrecedingDocumentCategory | ||||
| SubsequentDocumentCategory | ||||
| CompanyCode |
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 Mmim_MatDocDocFlow.
-- 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: MMIMMDOCDOCFLOW
CREATE VIEW Mmim_MatDocDocFlow AS
SELECT
cast(matdoc.ebeln as mmim_preced_doc) AS PrecedingDocument,
cast('0000' as char4) AS PrecedingDocumentYear,
cast(matdoc.mblnr as mmim_subsequ_doc) AS SubsequentDocument,
cast(matdoc.mjahr as char4) AS SubsequentDocumentYear,
cast(ebelp as char20) AS PrecedingDocumentItem,
cast(zeile as char20) AS SubsequentDocumentItem,
matdoc.mblnr AS MaterialDocument,
matdoc.mjahr AS MaterialDocumentYear,
cast(zeile as char20) AS MaterialDocumentItem,
cast('0000' as char4) AS FiscalYear,
cast('M ' as char2) AS SubsequentDocumentCategory,
cast('' as bukrs) as CompanyCode AS record_typeMDOCkeyPrecedingDocument,
cast('M2' as char2) AS PrecedingDocumentCategory,
cast('' as bukrs) AS CompanyCode
INNER JOIN ekko ON /* join condition not captured in parsed metadata */
INNER JOIN likp ON /* join condition not captured in parsed metadata */
INNER JOIN tvlk ON /* join condition not captured in parsed metadata */
INNER JOIN aufk AS o ON /* join condition not captured in parsed metadata */
INNER JOIN matdoc ON /* join condition not captured in parsed metadata */
INNER JOIN iseg AS pi_document_item ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA