I_PhysInvtrySalesOrderItemVH

DDL: I_PHYSINVTRYSALESORDERITEMVH Type: view_entity COMPOSITE

Sales Order Items in Physical Inventory

I_PhysInvtrySalesOrderItemVH is a Composite CDS View that provides data about "Sales Order Items in Physical Inventory" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItemStdVH) and exposes 12 fields with key fields SalesDocument, SalesDocumentItem, Plant, StorageLocation, Material. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItemStdVH _salesDocumentItem inner

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[1..1] I_Product _Product $projection.Material = _Product.Product

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Sales Order Items in Physical Inventory view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey SalesDocumentItem view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #NONE view
Consumption.ranked true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocumentItemStdVH SalesDocument SD Document
KEY SalesDocumentItem I_SalesDocumentItemStdVH SalesDocumentItem Sales Document Item
KEY Plant _matdoc Plant Valuation Area
KEY StorageLocation _matdoc StockIdfgStorageLocation
KEY Material _matdoc StockIdentifyingMaterial
KEY Batch _matdoc StockIdentifyingBatch
KEY InventorySpecialStockType _matdoc InventorySpecialStockType Special Stock Type
SalesDocumentItemText I_SalesDocumentItemStdVH SalesDocumentItemText Item Descr.
_SalesDocument I_SalesDocumentItemStdVH _SalesDocument
_Plant _Plant
_StorageLocation _StorageLocation
_Product _Product

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_PhysInvtrySalesOrderItemVH.
-- 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_PhysInvtrySalesOrderItemVH AS
SELECT
  _salesDocumentItem.SalesDocument AS SalesDocument,
  _salesDocumentItem.SalesDocumentItem AS SalesDocumentItem,
  _matdoc.Plant AS Plant,
  _matdoc.StockIdfgStorageLocation AS StorageLocation,
  _matdoc.StockIdentifyingMaterial AS Material,
  _matdoc.StockIdentifyingBatch AS Batch,
  _matdoc.InventorySpecialStockType AS InventorySpecialStockType,
  _salesDocumentItem.SalesDocumentItemText AS SalesDocumentItemText,
  _salesDocumentItem._SalesDocument AS _SalesDocument
INNER JOIN I_SalesDocumentItemStdVH AS _salesDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [1..1]
;