I_MaintJobWrkItmCompProduct

DDL: I_MAINTJOBWRKITMCOMPPRODUCT Type: view_entity COMPOSITE

Maintenance Job Workitem Material

I_MaintJobWrkItmCompProduct is a Composite CDS View that provides data about "Maintenance Job Workitem Material" in SAP S/4HANA. It reads from 1 data source (P_MaintJobCompProdPlntStrgloc) and exposes 22 fields with key fields Product, Plant, StorageLocation, MaintenanceOrderType. It has 9 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_MaintJobCompProdPlntStrgloc P_MaintJobCompProdPlntStrgloc from

Associations (9)

CardinalityTargetAliasCondition
[0..*] I_ProductText _Text $projection.Product = _Text.Product
[0..1] I_Producttype _ProductType $projection.ProductType = _ProductType.ProductType
[0..1] I_ProductGroup_2 _ProductGroup_2 $projection.ProductGroup = _ProductGroup_2.ProductGroup
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_ComponentItemCategory _ComponentItemCategory $projection.ProductType = _ComponentItemCategory.MaterialType and $projection.Plant = _ComponentItemCategory.Plant
[0..1] P_MaterialValuationTypesVH _MaterialValuationCategory _MaterialValuationCategory.Product = $projection.Product and _MaterialValuationCategory.Plant = $projection.Plant
[0..1] P_SerialNumberProfileProcedure _SerialNumberProfileProcedure _SerialNumberProfileProcedure.Product = $projection.Product and _SerialNumberProfileProcedure.Plant = $projection.Plant and _SerialNumberProfileProcedure.SerialNumberProcedure = 'MMSL'
[0..1] I_MaterialUnrestrictedUseStock _MaterialUnrestrictedUseStock $projection.Product = _MaterialUnrestrictedUseStock.Material and $projection.Plant = _MaterialUnrestrictedUseStock.Plant and $projection.StorageLocation = _MaterialUnrestrictedUseStock.StorageLocation
[0..1] I_UnrestrictedUseStkOnPlntLvl _UnrestrictedUseStkOnPlntLvl $projection.Product = _UnrestrictedUseStkOnPlntLvl.Material and $projection.Plant = _UnrestrictedUseStkOnPlntLvl.Plant

Annotations (6)

NameValueLevelField
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Job Workitem Material view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation StorageLocation
KEY MaintenanceOrderType MaintenanceOrderType Order Type
ProductType ProductType Product Type Group
ProductGroup ProductGroup Product Sold Group
BaseUnit BaseUnit Unit of Measure
IsMarkedForDeletion IsMarkedForDeletion Purch.org. data
AuthorizationGroup AuthorizationGroup AuthorizGroup
AvailabilityCheckType AvailabilityCheckType Avail. check
MaterialDescription
SerialNumberProfile SerialNumberProfile SerialNoProfile
SerialNumberProcedure _SerialNumberProfileProcedure SerialNumberProcedure
SerialNumberUsageInAssignment _SerialNumberProfileProcedure SerialNumberUsageInAssignment
InventoryValuationCategory _MaterialValuationCategory InventoryValuationCategory
MatlWrhsStkQtyInMatlBaseUnit _MaterialUnrestrictedUseStock MatlWrhsStkQtyInMatlBaseUnit Quantity
MatlWrhsStkQtyOnPlantLvl _UnrestrictedUseStkOnPlntLvl MatlWrhsStkQtyInMatlBaseUnit Quantity
_Text _Text
_ProductType _ProductType
_ProductGroup_2 _ProductGroup_2
_BaseUnit _BaseUnit
_ComponentItemCategory _ComponentItemCategory

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_MaintJobWrkItmCompProduct.
-- 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_MaintJobWrkItmCompProduct AS
SELECT
  Product,
  Plant,
  StorageLocation,
  MaintenanceOrderType,
  ProductType,
  ProductGroup,
  BaseUnit,
  IsMarkedForDeletion,
  AuthorizationGroup,
  AvailabilityCheckType,
  _Text[1: Language = $session.system_language ].ProductName AS MaterialDescription,
  SerialNumberProfile,
  _SerialNumberProfileProcedure.SerialNumberProcedure AS SerialNumberProcedure,
  _SerialNumberProfileProcedure.SerialNumberUsageInAssignment AS SerialNumberUsageInAssignment,
  _MaterialValuationCategory.InventoryValuationCategory AS InventoryValuationCategory,
  _MaterialUnrestrictedUseStock.MatlWrhsStkQtyInMatlBaseUnit AS MatlWrhsStkQtyInMatlBaseUnit,
  _UnrestrictedUseStkOnPlntLvl.MatlWrhsStkQtyInMatlBaseUnit AS MatlWrhsStkQtyOnPlantLvl
FROM P_MaintJobCompProdPlntStrgloc
LEFT OUTER JOIN I_ProductText AS _Text ON Product = _Text.Product  -- association [0..*]
LEFT OUTER JOIN I_Producttype AS _ProductType ON ProductType = _ProductType.ProductType  -- association [0..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _ProductGroup_2 ON ProductGroup = _ProductGroup_2.ProductGroup  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_ComponentItemCategory AS _ComponentItemCategory ON ProductType = _ComponentItemCategory.MaterialType AND Plant = _ComponentItemCategory.Plant  -- association [0..1]
LEFT OUTER JOIN P_MaterialValuationTypesVH AS _MaterialValuationCategory ON _MaterialValuationCategory.Product = Product AND _MaterialValuationCategory.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN P_SerialNumberProfileProcedure AS _SerialNumberProfileProcedure ON _SerialNumberProfileProcedure.Product = Product AND _SerialNumberProfileProcedure.Plant = Plant AND _SerialNumberProfileProcedure.SerialNumberProcedure = 'MMSL'  -- association [0..1]
LEFT OUTER JOIN I_MaterialUnrestrictedUseStock AS _MaterialUnrestrictedUseStock ON Product = _MaterialUnrestrictedUseStock.Material AND Plant = _MaterialUnrestrictedUseStock.Plant AND StorageLocation = _MaterialUnrestrictedUseStock.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_UnrestrictedUseStkOnPlntLvl AS _UnrestrictedUseStkOnPlntLvl ON Product = _UnrestrictedUseStkOnPlntLvl.Material AND Plant = _UnrestrictedUseStkOnPlntLvl.Plant  -- association [0..1]
;