I_FldLogsMatlDocumentRecord

DDL: I_FLDLOGSMATLDOCUMENTRECORD Type: view_entity BASIC

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)

SourceAliasJoin Type
matdoc matdoc from

Annotations (9)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;