P_BOMItemStock

DDL: P_BOMITEMSTOCK SQL: PCPMBOMSTOCK Type: view COMPOSITE

P_BOMItemStock is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BOMItemInclOrderAndNotifType) and exposes 42 fields with key fields BillOfMaterial, BillOfMaterialVariant, BillOfMaterialCategory, BillOfMaterialItemNodeNumber, HierarchyNodeUniqueID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_BOMItemInclOrderAndNotifType I_BOMItemInclOrderAndNotifType from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_OrderType _MaintenanceOrderType $projection.MaintenanceOrderType = _MaintenanceOrderType.OrderType
[0..1] I_PMNotificationType _NotificationType $projection.NotificationType = _NotificationType.NotificationType

Annotations (8)

NameValueLevelField
VDM.private true view
AbapCatalog.sqlViewName PCPMBOMSTOCK view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY BillOfMaterial BillOfMaterial BOM
KEY BillOfMaterialVariant BillOfMaterialVariant AlternativeBOM
KEY BillOfMaterialCategory BillOfMaterialCategory BOM category
KEY BillOfMaterialItemNodeNumber BillOfMaterialItemNodeNumber Item node
KEY HierarchyNodeUniqueID HierarchyNodeUniqueID
KEY NotificationType NotificationType Notifictn Type
KEY MaintenanceOrderType MaintenanceOrderType Order Type
StorageLocation StorageLocation StorageLocation
IssuingPlant IssuingPlant
Plant Plant Valuation Area
MatlWrhsStkQtyInMatlBaseUnit MatlWrhsStkQtyInMatlBaseUnit Quantity
MatlWrhsStkQtyOnPlantLvl MatlWrhsStkQtyOnPlantLvl
AvailabilityCheckType AvailabilityCheckType Avail. check
BOMItemDescription BOMItemDescription Item Text
BOMItemText2 BOMItemText2 Item Text
BillOfMaterialComponent BillOfMaterialComponent Component
BillOfMaterialItemCategory BillOfMaterialItemCategory Item Category
BillOfMaterialItemQuantity BillOfMaterialItemQuantity Quantity
BillOfMaterialItemUnit BillOfMaterialItemUnit Component UoM
BillOfMaterialVariantUsage BillOfMaterialVariantUsage Usage
ConstructionMaterial ConstructionMaterial ConstType
DrillDownState DrillDownState
Equipment Equipment Equipment check
FunctionalLocation FunctionalLocation Object ID
FunctionalLocationLabelName FunctionalLocationLabelName Functional Loc.
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
Material Material Vehicle Model
ParentNodeUniqueID ParentNodeUniqueID
TechObjIsEquipOrFuncnlLoc TechObjIsEquipOrFuncnlLoc Tech. Obj. Type
TechnicalObject TechnicalObject Technical Object
IsNew
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
_BillOfMaterialComponent _BillOfMaterialComponent
_ConstructionMaterial _ConstructionMaterial
_Equipment _Equipment
_FunctionalLocation _FunctionalLocation
_FunctionalLocationLabel _FunctionalLocationLabel
_MaintNotifTypesPerPlant _MaintNotifTypesPerPlant
_Material _Material
_Plant _Plant
_MaintenanceOrderType _MaintenanceOrderType
_NotificationType _NotificationType

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 P_BOMItemStock.
-- 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: PCPMBOMSTOCK

CREATE VIEW P_BOMItemStock AS
SELECT
  BillOfMaterial,
  BillOfMaterialVariant,
  BillOfMaterialCategory,
  BillOfMaterialItemNodeNumber,
  HierarchyNodeUniqueID,
  NotificationType,
  MaintenanceOrderType,
  StorageLocation,
  IssuingPlant,
  Plant,
  MatlWrhsStkQtyInMatlBaseUnit,
  MatlWrhsStkQtyOnPlantLvl,
  AvailabilityCheckType,
  BOMItemDescription,
  BOMItemText2,
  BillOfMaterialComponent,
  BillOfMaterialItemCategory,
  BillOfMaterialItemQuantity,
  BillOfMaterialItemUnit,
  BillOfMaterialVariantUsage,
  ConstructionMaterial,
  DrillDownState,
  Equipment,
  FunctionalLocation,
  FunctionalLocationLabelName,
  HierarchyNodeLevel,
  Material,
  ParentNodeUniqueID,
  TechObjIsEquipOrFuncnlLoc,
  TechnicalObject,
  cast( '' as xfeld ) AS IsNew,
  IsMarkedForDeletion
FROM I_BOMItemInclOrderAndNotifType
LEFT OUTER JOIN I_OrderType AS _MaintenanceOrderType ON MaintenanceOrderType = _MaintenanceOrderType.OrderType  -- association [0..1]
LEFT OUTER JOIN I_PMNotificationType AS _NotificationType ON NotificationType = _NotificationType.NotificationType  -- association [0..1]
;