I_FldLogsMatlDocumentRecord
Field Logistics Material Document Record
I_FldLogsMatlDocumentRecord is a Basic CDS View that provides data about "Field Logistics Material Document Record" in SAP S/4HANA. It reads from 1 data source (matdoc) and exposes 37 fields with key fields MaterialDocument, MaterialDocumentYear, MaterialDocumentItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc | matdoc | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Field Logistics Material Document Record | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | false | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (37)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialDocument | mblnr | Material Doc. | |
| KEY | MaterialDocumentYear | mjahr | Mat. Doc. Year | |
| KEY | MaterialDocumentItem | zeile | Mat. Doc.Item | |
| QuantityInBaseUnit | menge | WarrCountValue | ||
| MaterialBaseUnit | meins | Valuation Unit | ||
| PurchaseOrder | ebeln | Source PurchDoc | ||
| PurchaseOrderItem | ebelp | Item pur. doc. | ||
| GoodsMovementType | bwart | Valuation Type | ||
| ReversedMaterialDocumentYear | Reversed Doc Year | |||
| ReversedMaterialDocument | Reversed Mat Doc | |||
| ReversedMaterialDocumentItem | Reversed Doc Item | |||
| Material | matnr | Vehicle Model | ||
| MaterialDocumentRecordType | record_type | Type of Data Record | ||
| IsMaterialDocumentHeader | header_counter | Matl Doc. Counter | ||
| Plant | werks | Receiving Plant | ||
| IssuingOrReceivingPlant | Receiving plant | |||
| DeliveryDocument | vbeln_im | Delivery | ||
| DeliveryDocumentItem | vbelp_im | Item | ||
| GoodsMovementIsCancelled | cancelled | Item Discarded | ||
| IsReversalMovementType | reversal_movement | RevMvmtTypeInd. | ||
| EntryUnit | erfme | Unit of Entry | ||
| QuantityInEntryUnit | erfmg | Quantity in UnE | ||
| IsAutomaticallyCreated | xauto | Auto. Item Keys | ||
| StockIdentifyingMaterial | matbf | Stock Mat. | ||
| InventoryStockType | lbbsa_sid | Stock Type | ||
| StockIdfgStorageLocation | lgort_sid | Stor. Location SID | ||
| SpecialStockIdfgWBSElement | WBSElem of Inv. | |||
| MatlStkChangeQtyInBaseUnit | stock_qty | Stock Quantity | ||
| Batch | charg_sid | Batch SID | ||
| ValuationType | bwtar | Valuation Type | ||
| PostingDate | budat | Posting Date | ||
| OrderQuantityUnit | bstme | Unit.Order | ||
| Inc2380137735lgortasStorageLocation | ||||
| Reservation | rsnum | Reservation | ||
| ReservationItem | rspos | Item no. | ||
| OrderID | aufnr | SettlementOrder | ||
| ProjectNetwork | nplnr | Network |
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_FldLogsMatlDocumentRecord.
-- 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 I_FldLogsMatlDocumentRecord AS
SELECT
mblnr AS MaterialDocument,
mjahr AS MaterialDocumentYear,
zeile AS MaterialDocumentItem,
menge AS QuantityInBaseUnit,
meins AS MaterialBaseUnit,
ebeln AS PurchaseOrder,
ebelp AS PurchaseOrderItem,
bwart AS GoodsMovementType,
cast(sjahr as nsdm_sjahr preserving type) AS ReversedMaterialDocumentYear,
cast(smbln as nsdm_smbln preserving type) AS ReversedMaterialDocument,
cast(smblp as nsdm_smblp preserving type) AS ReversedMaterialDocumentItem,
matnr AS Material,
record_type AS MaterialDocumentRecordType,
header_counter AS IsMaterialDocumentHeader,
werks AS Plant,
cast(umwrk as nsdm_plant preserving type) AS IssuingOrReceivingPlant,
vbeln_im AS DeliveryDocument,
vbelp_im AS DeliveryDocumentItem,
cancelled AS GoodsMovementIsCancelled,
reversal_movement AS IsReversalMovementType,
erfme AS EntryUnit,
erfmg AS QuantityInEntryUnit,
xauto AS IsAutomaticallyCreated,
matbf AS StockIdentifyingMaterial,
lbbsa_sid AS InventoryStockType,
lgort_sid AS StockIdfgStorageLocation,
cast(mat_pspnr as ps_s4_pspnr ) AS SpecialStockIdfgWBSElement,
stock_qty AS MatlStkChangeQtyInBaseUnit,
charg_sid AS Batch,
bwtar AS ValuationType,
budat AS PostingDate,
bstme AS OrderQuantityUnit,
rsnum AS Reservation,
rspos AS ReservationItem,
aufnr AS OrderID,
nplnr AS ProjectNetwork
FROM matdoc
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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