I_PhysInvtryWBSElementVH

DDL: I_PHYSINVTRYWBSELEMENTVH Type: view_entity COMPOSITE Package: ODATA_MM_IM_PI_MANAGE_COUNT

WBS Elements in Physical Inventory

I_PhysInvtryWBSElementVH is a Composite CDS View that provides data about "WBS Elements in Physical Inventory" in SAP S/4HANA. It reads from 1 data source (I_WBSElementBasicDataStdVH) and exposes 13 fields with key fields WBSElementInternalID, Plant, StorageLocation, Material, Batch. It has 3 associations to related views. It is exposed through 2 OData services (ASQL_F5430, ASQL_F8634). Part of development package ODATA_MM_IM_PI_MANAGE_COUNT.

Data Sources (1)

SourceAliasJoin Type
I_WBSElementBasicDataStdVH _wbselement 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 WBS Elements 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 WBSElementInternalID view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #NONE view
Consumption.ranked true view

OData Services (2)

ServiceBindingVersionContractRelease
ASQL_F5430 ASQL_F5430 C2 NOT_RELEASED
ASQL_F8634 ASQL_F8634 C2 NOT_RELEASED

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY WBSElementInternalID I_WBSElementBasicDataStdVH WBSElementInternalID WBS Internal ID
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
WBSElementExternalID I_WBSElementBasicDataStdVH WBSElementExternalID WBS Element External ID
WBSDescription I_WBSElementBasicDataStdVH WBSDescription WBS Element Name
ControllingArea I_WBSElementBasicDataStdVH ControllingArea Controlling Area
ProfitCenter I_WBSElementBasicDataStdVH ProfitCenter Profit Center
_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_PhysInvtryWBSElementVH.
-- 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_PhysInvtryWBSElementVH AS
SELECT
  _wbselement.WBSElementInternalID AS WBSElementInternalID,
  _matdoc.Plant AS Plant,
  _matdoc.StockIdfgStorageLocation AS StorageLocation,
  _matdoc.StockIdentifyingMaterial AS Material,
  _matdoc.StockIdentifyingBatch AS Batch,
  _matdoc.InventorySpecialStockType AS InventorySpecialStockType,
  _wbselement.WBSElementExternalID AS WBSElementExternalID,
  _wbselement.WBSDescription AS WBSDescription,
  _wbselement.ControllingArea AS ControllingArea,
  _wbselement.ProfitCenter AS ProfitCenter
INNER JOIN I_WBSElementBasicDataStdVH AS _wbselement 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]
;