C_MaintJobWrkItmCompHistProdVH
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)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintJobWrkItmCompHistlProd | I_MaintJobWrkItmCompHistlProd | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA