C_MaintOrderComponentTP

DDL: C_MAINTORDERCOMPONENTTP SQL: CMAINTORDCOMPTP Type: view CONSUMPTION

Maintenance Order Component with Draft

C_MaintOrderComponentTP is a Consumption CDS View that provides data about "Maintenance Order Component with Draft" in SAP S/4HANA. It reads from 1 data source (I_MaintOrderComponentTP) and exposes 30 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintOrderComponentInternalID, MaintenanceOrderSubOperation. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintOrderComponentTP I_MaintOrderComponentTP from

Associations (4)

CardinalityTargetAliasCondition
[1..1] C_MaintOrderTP _MaintOrderTP $projection.MaintenanceOrder = _MaintOrderTP.MaintenanceOrder
[1..1] C_MaintOrderOperationTP _MaintOrderOperationTP $projection.MaintenanceOrder = _MaintOrderOperationTP.MaintenanceOrder and $projection.MaintenanceOrderOperation = _MaintOrderOperationTP.MaintenanceOrderOperation
[0..1] C_StorageLocationVH _StorageLocationVH $projection.Material = _StorageLocationVH.Material and $projection.Plant = _StorageLocationVH.Plant and $projection.StorageLocation = _StorageLocationVH.StorageLocation
[0..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CMAINTORDCOMPTP view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Order Component with Draft view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.transactionalProcessingDelegated true view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintOrderComponentTP MaintenanceOrder Order
KEY MaintenanceOrderOperation I_MaintOrderComponentTP MaintenanceOrderOperation Operation
KEY MaintOrderComponentInternalID I_MaintOrderComponentTP MaintOrderComponentInternalID Object number
KEY MaintenanceOrderSubOperation I_MaintOrderComponentTP MaintenanceOrderSubOperation Suboperation
MaintenanceOrderComponent I_MaintOrderComponentTP MaintenanceOrderComponent BOM item
MaintOrderComponentForEdit I_MaintOrderComponentTP MaintOrderComponentForEdit BOM item
Reservation I_MaintOrderComponentTP Reservation Reservation
ReservationItem I_MaintOrderComponentTP ReservationItem Reservation Item
ReservationType I_MaintOrderComponentTP ReservationType Record type
Material I_MaintOrderComponentTP Material Vehicle Model
ComponentDescription I_MaintOrderComponentTP ComponentDescription Item Text
RequirementQuantityInBaseUnit I_MaintOrderComponentTP RequirementQuantityInBaseUnit Planned Quantity
BaseUnit I_MaintOrderComponentTP BaseUnit Unit of Measure
Plant I_MaintOrderComponentTP Plant Valuation Area
StorageLocation I_MaintOrderComponentTP StorageLocation StorageLocation
MaintOrderRoutingNumber I_MaintOrderComponentTP MaintOrderRoutingNumber Plan No.f.Oper.
MaintOrderOperationCounter I_MaintOrderComponentTP MaintOrderOperationCounter Counter
QuantityWithdrawnInBaseUnit I_MaintOrderComponentTP QuantityWithdrawnInBaseUnit Quantity Issued
MaterialThumbnailMIMEType
MaterialHasThumbnail
ForDCLSupplier
_MaintOrderOperationTP _MaintOrderOperationTP
_MaintOrderTP _MaintOrderTP
_Material I_MaintOrderComponentTP _Material
_UnitOfMeasure I_MaintOrderComponentTP _UnitOfMeasure
_StorageLocation I_MaintOrderComponentTP _StorageLocation
_Plant I_MaintOrderComponentTP _Plant
_StorageLocationVH _StorageLocationVH
_MaterialText _MaterialText
ForDCL_Supplier

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_MaintOrderComponentTP.
-- 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.
-- SQL view name: CMAINTORDCOMPTP

CREATE VIEW C_MaintOrderComponentTP AS
SELECT
  I_MaintOrderComponentTP.MaintenanceOrder AS MaintenanceOrder,
  I_MaintOrderComponentTP.MaintenanceOrderOperation AS MaintenanceOrderOperation,
  I_MaintOrderComponentTP.MaintOrderComponentInternalID AS MaintOrderComponentInternalID,
  I_MaintOrderComponentTP.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
  I_MaintOrderComponentTP.MaintenanceOrderComponent AS MaintenanceOrderComponent,
  I_MaintOrderComponentTP.MaintOrderComponentForEdit AS MaintOrderComponentForEdit,
  I_MaintOrderComponentTP.Reservation AS Reservation,
  I_MaintOrderComponentTP.ReservationItem AS ReservationItem,
  I_MaintOrderComponentTP.ReservationType AS ReservationType,
  I_MaintOrderComponentTP.Material AS Material,
  I_MaintOrderComponentTP.ComponentDescription AS ComponentDescription,
  I_MaintOrderComponentTP.RequirementQuantityInBaseUnit AS RequirementQuantityInBaseUnit,
  I_MaintOrderComponentTP.BaseUnit AS BaseUnit,
  I_MaintOrderComponentTP.Plant AS Plant,
  I_MaintOrderComponentTP.StorageLocation AS StorageLocation,
  I_MaintOrderComponentTP.MaintOrderRoutingNumber AS MaintOrderRoutingNumber,
  I_MaintOrderComponentTP.MaintOrderOperationCounter AS MaintOrderOperationCounter,
  I_MaintOrderComponentTP.QuantityWithdrawnInBaseUnit AS QuantityWithdrawnInBaseUnit,
  cast( '' as w3conttype ) AS MaterialThumbnailMIMEType,
  cast('' as xfeld ) AS MaterialHasThumbnail,
  I_MaintOrderComponentTP._Material AS _Material,
  I_MaintOrderComponentTP._UnitOfMeasure AS _UnitOfMeasure,
  I_MaintOrderComponentTP._StorageLocation AS _StorageLocation,
  I_MaintOrderComponentTP._Plant AS _Plant
FROM I_MaintOrderComponentTP
LEFT OUTER JOIN C_MaintOrderTP AS _MaintOrderTP ON MaintenanceOrder = _MaintOrderTP.MaintenanceOrder  -- association [1..1]
LEFT OUTER JOIN C_MaintOrderOperationTP AS _MaintOrderOperationTP ON MaintenanceOrder = _MaintOrderOperationTP.MaintenanceOrder AND MaintenanceOrderOperation = _MaintOrderOperationTP.MaintenanceOrderOperation  -- association [1..1]
LEFT OUTER JOIN C_StorageLocationVH AS _StorageLocationVH ON Material = _StorageLocationVH.Material AND Plant = _StorageLocationVH.Plant AND StorageLocation = _StorageLocationVH.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [0..*]
;