I_MaintJobWrkItmCompProduct
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)
| Source | Alias | Join Type |
|---|---|---|
| P_MaintJobCompProdPlntStrgloc | P_MaintJobCompProdPlntStrgloc | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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