I_MatlDocOvwSrlNmbrPhysInvtry

DDL: I_MATLDOCOVWSRLNMBRPHYSINVTRY Type: view_entity COMPOSITE

Serial Nr for MatDoc Overview from PI

I_MatlDocOvwSrlNmbrPhysInvtry is a Composite CDS View that provides data about "Serial Nr for MatDoc Overview from PI" in SAP S/4HANA. It reads from 1 data source (P_PhysInvtryDiffSerialNumber) and exposes 13 fields with key fields Material, SerialNumber, MaterialDocument, MaterialDocumentItem, MaterialDocumentYear. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PhysInvtryDiffSerialNumber P_PhysInvtryDiffSerialNumber from

Associations (2)

CardinalityTargetAliasCondition
[1..*] F_Mmim_Findmatdoc _FindMatDoc $projection.MaterialDocument = _FindMatDoc.MaterialDocument and $projection.MaterialDocumentYear = _FindMatDoc.MaterialDocumentYear and $projection.MaterialDocumentItem = _FindMatDoc.MaterialDocumentItem
[0..1] I_Product _Product $projection.Material = _Product.Product

Annotations (10)

NameValueLevelField
EndUserText.label Serial Nr for MatDoc Overview from PI view
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
UI.headerInfo.typeName Serial Number Details view
UI.headerInfo.typeNamePlural Serial Number Details view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY Material Material Vehicle Model
KEY SerialNumber SerialNumber Serial Number
KEY MaterialDocument MaterialDocument Material Doc.
KEY MaterialDocumentItem MaterialDocumentItem Material Document Item
KEY MaterialDocumentYear MaterialDocumentYear Material Document Year
Equipment Equipment Equipment check
MaterialName
PhysicalInventoryDocument PhysicalInventoryDocument Physical Inventory Document
PhysicalInventoryDocumentItem PhysicalInventoryDocumentItem Physical Inventory Document Item
SerialNumberIsInBooks In Book
SerialNumberIsCounted In Stock
_Product _Product
_FindMatDoc _FindMatDoc

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_MatlDocOvwSrlNmbrPhysInvtry.
-- 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_MatlDocOvwSrlNmbrPhysInvtry AS
SELECT
  Material,
  SerialNumber,
  MaterialDocument,
  MaterialDocumentItem,
  MaterialDocumentYear,
  Equipment,
  _Product._Text[1: Language=$session.system_language].ProductName AS MaterialName,
  PhysicalInventoryDocument,
  PhysicalInventoryDocumentItem,
  case when SerialNumberPhysicalInvtryType = '1' then 'X' else '' end AS SerialNumberIsInBooks,
  case when SerialNumberPhysicalInvtryType = '2' then 'X' else '' end AS SerialNumberIsCounted
FROM P_PhysInvtryDiffSerialNumber
LEFT OUTER JOIN F_Mmim_Findmatdoc AS _FindMatDoc ON MaterialDocument = _FindMatDoc.MaterialDocument AND MaterialDocumentYear = _FindMatDoc.MaterialDocumentYear AND MaterialDocumentItem = _FindMatDoc.MaterialDocumentItem  -- association [1..*]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
;