F_Mmim_Matdoc
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 27 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc | matdoc | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | FMMIMMATDOC | view | |
| 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 | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocument | mblnr | ||
| KEY | MaterialDocumentYear | mjahr | ||
| KEY | MaterialDocumentItem | zeile | ||
| Material | matbf | |||
| Plant | ||||
| Batch | charg | |||
| InventoryStockType | lbbsa_sid | |||
| StorageLocation | lgort | |||
| Customer | kunnr | |||
| IssuingOrReceivingPlant | umwrk | |||
| IssuingOrReceivingStorageLoc | umlgo | |||
| IssuingOrReceivingStockType | lbbsa_cid | |||
| DeliveryDocument | vbeln_im | |||
| PurchaseOrder | ebeln | |||
| OrderID | aufnr | |||
| CreatedByUser | usnam | |||
| PersonnelNumber | pernr | |||
| WorkItem | work_item_id | |||
| GoodsMovementType | bwart | |||
| EntryUnit | erfme | |||
| AccountingDocumentType | blart | |||
| InventorySpecialStockType | sobkz | |||
| StockSegment | sgt_scat | |||
| ProductSeasonYear | fsh_season_year | |||
| ProductSeason | fsh_season | |||
| ProductCollection | fsh_collection | |||
| ProductTheme | fsh_theme |
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'FMMIMMATDOC'
@EndUserText.label: 'Help-View for material documents'
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass:#MIXED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view F_Mmim_Matdoc
as
select from matdoc //nsdm_d_mtdcsa
{
key mblnr as MaterialDocument,
key mjahr as MaterialDocumentYear,
key zeile as MaterialDocumentItem,
matbf as Material,
cast(werks as werks_d) as Plant,
charg as Batch,
lbbsa_sid as InventoryStockType,
lgort as StorageLocation,
case when lifnr_sid <> '' then lifnr_sid
when lifnr <> '' then lifnr
when emlif <> '' then emlif
else ''
end as Supplier,
case when mat_kdauf <> '' then mat_kdauf
else kdauf
end as SalesOrder,
kunnr as Customer,
case when mat_pspnr <> '' then mat_pspnr
else ps_psp_pnr
end as WBSElementInternalID,
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,
fsh_season_year as ProductSeasonYear,
fsh_season as ProductSeason,
fsh_collection as ProductCollection,
fsh_theme as ProductTheme
}
where record_type = 'MDOC' and xauto = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MATDOC"
],
"ASSOCIATED":
[],
"BASE":
[],
"VERSION":0
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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