R_MaintJobWorkItemComponentTP
Maintenance Job Work Item Component TP
R_MaintJobWorkItemComponentTP is a Composite CDS View that provides data about "Maintenance Job Work Item Component TP" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent_2) and exposes 27 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintOrderComponentInternalID. It has 4 associations to related views. Part of development package VDM_EAM_MAINTJOB_MANAGE_COMP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrderComponent_2 | I_MaintenanceOrderComponent_2 | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductPlant | _ProductPlant | _ProductPlant.Product = $projection.Material and _ProductPlant.Plant = $projection.Plant |
| [0..1] | P_MaterialValuationCategory | _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' |
| [1..1] | R_MaintenanceJobTP | _MaintenanceJob | _MaintenanceJob.MaintenanceOrder = $projection.MaintenanceOrder |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Job Work Item Component TP | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | MaintenanceOrder | Order | |
| KEY | MaintenanceOrderOperation | MaintenanceOrderOperation | Suboperation | |
| KEY | MaintenanceOrderSubOperation | MaintenanceOrderSubOperation | Suboperation | |
| KEY | MaintOrderComponentInternalID | MaintOrderComponentInternalID | Object number | |
| MaintenanceOrderComponent | MaintenanceOrderComponent | BOM item | ||
| Material | Material | Vehicle Model | ||
| MaterialNameendasMaterialName | ||||
| ComponentDescription | ComponentDescription | Item Text | ||
| RequirementQuantityInBaseUnit | RequirementQuantityInBaseUnit | Threshold value | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| Plant | Plant | Valuation Area | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| QuantityWithdrawnInBaseUnit | QuantityWithdrawnInBaseUnit | Withdrawal Qty | ||
| GoodsMovementType | GoodsMovementType | Movement Type | ||
| ValuationType | Batch | |||
| SerialNumberProfile | _ProductPlant | SerialNumberProfile | SerialNoProfile | |
| SerialNumberProcedure | _SerialNumberProfileProcedure | SerialNumberProcedure | ||
| SerialNumberUsageInAssignment | _SerialNumberProfileProcedure | SerialNumberUsageInAssignment | ||
| InventoryValuationCategory | _MaterialValuationCategory | InventoryValuationCategory | ||
| MaintOrdOpCompItemCategory | Item Category | |||
| MatlCompIsMarkedForBackflush | MatlCompIsMarkedForBackflush | Backflush | ||
| ReservationIsFinallyIssued | ReservationIsFinallyIssued | Res Final Issue | ||
| TotalReturnedQuantity | ||||
| _MaintenanceJobWorkItem | _MaintenanceJobWorkItem | |||
| _MaintenanceJob | _MaintenanceJob | |||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _UnitOfMeasure | _UnitOfMeasure |
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 R_MaintJobWorkItemComponentTP.
-- 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 R_MaintJobWorkItemComponentTP AS
SELECT
MaintenanceOrder,
MaintenanceOrderOperation,
MaintenanceOrderSubOperation,
MaintOrderComponentInternalID,
MaintenanceOrderComponent,
Material,
case when Material ='' then ComponentDescription else _MaterialText[1:Language=$session.system_language].MaterialName end as MaterialName AS MaterialNameendasMaterialName,
ComponentDescription,
RequirementQuantityInBaseUnit,
BaseUnit,
Plant,
StorageLocation,
QuantityWithdrawnInBaseUnit,
GoodsMovementType,
cast (MaintenanceOrderComponentBatch as valuationtype) AS ValuationType,
_ProductPlant.SerialNumberProfile AS SerialNumberProfile,
_SerialNumberProfileProcedure.SerialNumberProcedure AS SerialNumberProcedure,
_SerialNumberProfileProcedure.SerialNumberUsageInAssignment AS SerialNumberUsageInAssignment,
_MaterialValuationCategory.InventoryValuationCategory AS InventoryValuationCategory,
cast(MaintComponentItemCategory as postp preserving type ) AS MaintOrdOpCompItemCategory,
MatlCompIsMarkedForBackflush,
ReservationIsFinallyIssued,
cast(0 as enmng ) AS TotalReturnedQuantity
FROM I_MaintenanceOrderComponent_2
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON _ProductPlant.Product = Material AND _ProductPlant.Plant = Plant -- association [0..1]
LEFT OUTER JOIN P_MaterialValuationCategory 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 R_MaintenanceJobTP AS _MaintenanceJob ON _MaintenanceJob.MaintenanceOrder = MaintenanceOrder -- association [1..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