C_MaintJobWrkItmCompHistProdVH

DDL: C_MAINTJOBWRKITMCOMPHISTPRODVH Type: view_entity CONSUMPTION

Work item historic materials

C_MaintJobWrkItmCompHistProdVH is a Consumption CDS View that provides data about "Work item historic materials" in SAP S/4HANA. It reads from 1 data source (I_MaintJobWrkItmCompHistlProd) and exposes 27 fields with key fields Material, Plant, StorageLocation, TechnicalObject, MaintenanceOrderType. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintJobWrkItmCompHistlProd I_MaintJobWrkItmCompHistlProd from

Associations (7)

CardinalityTargetAliasCondition
[0..1] I_TechnicalObject _TechnicalObject _TechnicalObject.TechnicalObject = $projection.TechnicalObject and _TechnicalObject.TechObjIsEquipOrFuncnlLoc = $projection.techobjisequiporfuncnlloc
[0..1] I_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc = $projection.techobjisequiporfuncnlloc
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[0..1] P_MaterialValuationTypesVH _MaterialValuationCategory _MaterialValuationCategory.Product = $projection.Material and _MaterialValuationCategory.Plant = $projection.Plant
[0..1] P_SerialNumberProfileProcedure _SerialNumberProfileProcedure _SerialNumberProfileProcedure.Product = $projection.Material and _SerialNumberProfileProcedure.Plant = $projection.Plant and _SerialNumberProfileProcedure.SerialNumberProcedure = 'MMSL'
[0..1] I_BatchPlant _BatchPlant $projection.Material = _BatchPlant.Material and $projection.Plant = _BatchPlant.Plant and $projection.IsBatchManagementRequired = 'X'

Annotations (10)

NameValueLevelField
EndUserText.label Work item historic materials view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view
Consumption.ranked true view
Metadata.allowExtensions true view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY Material I_MaintJobWrkItmCompHistlProd Material Vehicle Model
KEY Plant I_MaintJobWrkItmCompHistlProd Plant Valuation Area
KEY StorageLocation I_MaintJobWrkItmCompHistlProd StorageLocation StorageLocation
KEY TechnicalObject I_MaintJobWrkItmCompHistlProd TechnicalObject Technical Object
KEY MaintenanceOrderType MaintenanceOrderType Order Type
KEY Batch _BatchPlant Batch Lot No.
KEY InventoryValuationType _MaterialValuationCategory InventoryValuationType Valuation Type
TechnicalObjectLabel
TechObjIsEquipOrFuncnlLoc _TechnicalObject TechObjIsEquipOrFuncnlLoc Tech. Obj. Type
MaterialName
RcrrcOfMatlUsageInTechObj I_MaintJobWrkItmCompHistlProd RcrrcOfMatlUsageInTechObj Recurrence (Monthly)
MaterialType _Material MaterialType Material Type
MaterialBaseUnit _Material MaterialBaseUnit Valuation Unit
AuthorizationGroup _Material AuthorizationGroup AuthorizGroup
IsBatchManagementRequired IsBatchManagementRequired Batch Mgmt Rqt(Plnt)
AvailabilityCheckType _ProductPlant AvailabilityCheckType Avail. check
IsMarkedForDeletion _ProductPlant IsMarkedForDeletion Purch.org. data
SerialNumberProfile _ProductPlant SerialNumberProfile SerialNoProfile
SerialNumberProcedure _SerialNumberProfileProcedure SerialNumberProcedure
SerialNumberUsageInAssignment _SerialNumberProfileProcedure SerialNumberUsageInAssignment
InventoryValuationCategory _MaterialValuationCategory InventoryValuationCategory
MaximumAvailableQuantity
_Material _Material
_TechnicalObject _TechnicalObject
_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc
_ProductPlant _ProductPlant
_MaterialType _Material _MaterialType

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 C_MaintJobWrkItmCompHistProdVH.
-- 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 C_MaintJobWrkItmCompHistProdVH AS
SELECT
  I_MaintJobWrkItmCompHistlProd.Material AS Material,
  I_MaintJobWrkItmCompHistlProd.Plant AS Plant,
  I_MaintJobWrkItmCompHistlProd.StorageLocation AS StorageLocation,
  I_MaintJobWrkItmCompHistlProd.TechnicalObject AS TechnicalObject,
  MaintenanceOrderType,
  _BatchPlant.Batch AS Batch,
  _MaterialValuationCategory.InventoryValuationType AS InventoryValuationType,
  cast(_TechnicalObject.TechnicalObjectLabel as eams_tec_obj) AS TechnicalObjectLabel,
  _TechnicalObject.TechObjIsEquipOrFuncnlLoc AS TechObjIsEquipOrFuncnlLoc,
  _Material._Text[1: Language = $session.system_language ].MaterialName AS MaterialName,
  I_MaintJobWrkItmCompHistlProd.RcrrcOfMatlUsageInTechObj AS RcrrcOfMatlUsageInTechObj,
  _Material.MaterialType AS MaterialType,
  _Material.MaterialBaseUnit AS MaterialBaseUnit,
  _Material.AuthorizationGroup AS AuthorizationGroup,
  IsBatchManagementRequired,
  _ProductPlant.AvailabilityCheckType AS AvailabilityCheckType,
  _ProductPlant.IsMarkedForDeletion AS IsMarkedForDeletion,
  _ProductPlant.SerialNumberProfile AS SerialNumberProfile,
  _SerialNumberProfileProcedure.SerialNumberProcedure AS SerialNumberProcedure,
  _SerialNumberProfileProcedure.SerialNumberUsageInAssignment AS SerialNumberUsageInAssignment,
  _MaterialValuationCategory.InventoryValuationCategory AS InventoryValuationCategory,
  cast( 0 as bdmng ) AS MaximumAvailableQuantity,
  _Material._MaterialType AS _MaterialType
FROM I_MaintJobWrkItmCompHistlProd
LEFT OUTER JOIN I_TechnicalObject AS _TechnicalObject ON _TechnicalObject.TechnicalObject = TechnicalObject AND _TechnicalObject.TechObjIsEquipOrFuncnlLoc = techobjisequiporfuncnlloc  -- association [0..1]
LEFT OUTER JOIN I_TechObjIsEquipOrFuncnlLoc AS _TechObjIsEquipOrFuncnlLoc ON _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc = techobjisequiporfuncnlloc  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND Plant = _ProductPlant.Plant  -- association [0..1]
LEFT OUTER JOIN P_MaterialValuationTypesVH AS _MaterialValuationCategory ON _MaterialValuationCategory.Product = Material AND _MaterialValuationCategory.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN P_SerialNumberProfileProcedure AS _SerialNumberProfileProcedure ON _SerialNumberProfileProcedure.Product = Material AND _SerialNumberProfileProcedure.Plant = Plant AND _SerialNumberProfileProcedure.SerialNumberProcedure = 'MMSL'  -- association [0..1]
LEFT OUTER JOIN I_BatchPlant AS _BatchPlant ON Material = _BatchPlant.Material AND Plant = _BatchPlant.Plant AND IsBatchManagementRequired = 'X'  -- association [0..1]
;