R_MaintJobWorkItemComponentTP

DDL: R_MAINTJOBWORKITEMCOMPONENTTP Type: view_entity COMPOSITE Package: VDM_EAM_MAINTJOB_MANAGE_COMP

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)

SourceAliasJoin Type
I_MaintenanceOrderComponent_2 I_MaintenanceOrderComponent_2 from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;