Deprecated
This CDS view is deprecated in S/4HANA. Use I_MaintItmObjListPhysInventory instead. View all deprecated CDS views →

I_SerialNmbrPhysicalInvtry

DDL: I_SERIALNMBRPHYSICALINVTRY SQL: ISERNOPIDOC Type: view BASIC

Serial Number Phys Invtry doc

I_SerialNmbrPhysicalInvtry is a Basic CDS View that provides data about "Serial Number Phys Invtry doc" in SAP S/4HANA. It reads from 1 data source (ser07) and exposes 9 fields with key field MaintenanceItemObjectList. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ser07 ser07 from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PhysInvtryDocHeader _PhysInvtryDocHeader $projection.PhysicalInventoryDocument = _PhysInvtryDocHeader.PhysicalInventoryDocument and $projection.FiscalYear = _PhysInvtryDocHeader.FiscalYear
[0..1] I_PhysInvtryDocItem _PhysInvtryDocItem $projection.PhysicalInventoryDocument = _PhysInvtryDocItem.PhysicalInventoryDocument and $projection.PhysicalInventoryDocumentItem = _PhysInvtryDocItem.PhysicalInventoryDocumentItem and $projection.FiscalYear = _PhysInvtryDocItem.FiscalYear

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ISERNOPIDOC view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Serial Number Phys Invtry doc view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #BASIC view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_MaintItmObjListPhysInventory view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceItemObjectList obknr Object list
PhysicalInventoryDocument iblnr Phys. Inv. Doc.
PhysicalInventoryDocumentItem zeili Item
FiscalYear mjahr Mat. Doc. Year
PhysInvtrySerialNmbrListType oltpi OL feat. inventory
DocumentDate datum Valid to
Plant werk Plant
_PhysInvtryDocHeader _PhysInvtryDocHeader
_PhysInvtryDocItem _PhysInvtryDocItem

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_SerialNmbrPhysicalInvtry.
-- 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: ISERNOPIDOC

CREATE VIEW I_SerialNmbrPhysicalInvtry AS
SELECT
  obknr AS MaintenanceItemObjectList,
  iblnr AS PhysicalInventoryDocument,
  zeili AS PhysicalInventoryDocumentItem,
  mjahr AS FiscalYear,
  oltpi AS PhysInvtrySerialNmbrListType,
  datum AS DocumentDate,
  werk AS Plant
FROM ser07
LEFT OUTER JOIN I_PhysInvtryDocHeader AS _PhysInvtryDocHeader ON PhysicalInventoryDocument = _PhysInvtryDocHeader.PhysicalInventoryDocument AND FiscalYear = _PhysInvtryDocHeader.FiscalYear  -- association [1..1]
LEFT OUTER JOIN I_PhysInvtryDocItem AS _PhysInvtryDocItem ON PhysicalInventoryDocument = _PhysInvtryDocItem.PhysicalInventoryDocument AND PhysicalInventoryDocumentItem = _PhysInvtryDocItem.PhysicalInventoryDocumentItem AND FiscalYear = _PhysInvtryDocItem.FiscalYear  -- association [0..1]
;