P_MaintTechObjBreakdown

DDL: P_MAINTTECHOBJBREAKDOWN Type: view_entity COMPOSITE

Maintenance Object Breakdown Query

P_MaintTechObjBreakdown is a Composite CDS View that provides data about "Maintenance Object Breakdown Query" in SAP S/4HANA. It reads from 1 data source (P_MaintObjBrkdwnTableFunction) and exposes 35 fields with key fields LeadingMaintNotification, MaintenancePlant. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_MaintObjBrkdwnTableFunction P_MaintObjBrkdwnTableFunction from

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_TechnicalObject _TechnicalObject $projection.TechnicalObjectForJoin = _TechnicalObject.TechnicalObject and $projection.TechObjIsEquipOrFunLocForJoin = _TechnicalObject.TechObjIsEquipOrFuncnlLoc
[1..1] I_CalendarDate _Date $projection.MalfunctionEndDate = _Date.CalendarDate
[0..1] I_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc $projection.TechObjIsEquipOrFunLocForJoin = _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc
[0..1] I_EquipmentTimeSeg _EquipmentTimeSeg _EquipmentTimeSeg.Equipment = $projection.Equipment and _EquipmentTimeSeg.ValidityStartDate <= $projection.MalfunctionStartDate and _EquipmentTimeSeg.ValidityEndDate > $projection.MalfunctionStartDate

Annotations (4)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label Maintenance Object Breakdown Query view

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY LeadingMaintNotification TechObjBrkDwn LeadingMaintNotification
KEY MaintenancePlant TechObjBrkDwn MaintenancePlant Plant
MaintenanceNotification TechObjBrkDwn MaintenanceNotification Notification
MalfunctionStartDate TechObjBrkDwn MalfunctionStartDate Malfunct. Start
MalfunctionEndDate TechObjBrkDwn MalfunctionEndDate Malfunct. End
MalfunctionStartTime TechObjBrkDwn MalfunctionStartTime Mal. Start (T.)
MalfunctionEndTime TechObjBrkDwn MalfunctionEndTime Malfunction End
S1MalfunctionStartDateTime TechObjBrkDwn S1MalfunctionStartDateTime
S1MalfunctionEndDateTime TechObjBrkDwn S1MalfunctionEndDateTime
EffctvMalfunctionEndDateTime TechObjBrkDwn EffctvMalfunctionEndDateTime
EffctvMalfunctionStartDateTime TechObjBrkDwn EffctvMalfunctionStartDateTime
TechnicalObjectForJoin TechObjBrkDwn TechnicalObject Technical Object
TechnicalObject
TechObjIsEquipOrFunLocForJoin TechObjBrkDwn TechObjIsEquipOrFuncnlLoc Tech. Obj. Type
TechObjIsEquipOrFuncnlLoc
NumberOfReportedBreakdowns TechObjBrkDwn NumberOfReportedBreakdowns
TechnicalObjectType _TechnicalObject TechnicalObjectType Text object
TechnicalObjectLabel _TechnicalObject TechnicalObjectLabel Tech. Object
AssetManufacturerName _TechnicalObject AssetManufacturerName Manufacturer
ManufacturerPartTypeName _TechnicalObject ManufacturerPartTypeName Model number
ConstructionMaterial _TechnicalObject ConstructionMaterial ConstType
ManufacturerCountry _TechnicalObject ManufacturerCountry Mnf. Cntry/Regn
AuthorizationGroup _TechnicalObject AuthorizationGroup AuthorizGroup
ConstructionYear _TechnicalObject ConstructionYear
ConstructionMonth _TechnicalObject ConstructionMonth
UnitOfMeasure TechObjBrkDwn UnitOfMeasure Unit Protected Qty
TimeBetweenRepairInHours TechObjBrkDwn TimeBetweenRepairInHours
TotalRepairTimeInHours TechObjBrkDwn TotalRepairTimeInHours
Equipment _TechnicalObject Equipment Equipment check
_TechnicalObject _TechnicalObject
_ManufacturerCountry _TechnicalObject _ManufacturerCountry
_TechnicalObjectType _TechnicalObject _TechnicalObjectType
_TechObjIsEquipOrFuncnlLoc _TechObjIsEquipOrFuncnlLoc
_Date _Date
_EquipmentTimeSeg _EquipmentTimeSeg

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 P_MaintTechObjBreakdown.
-- 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 P_MaintTechObjBreakdown AS
SELECT
  TechObjBrkDwn.LeadingMaintNotification AS LeadingMaintNotification,
  TechObjBrkDwn.MaintenancePlant AS MaintenancePlant,
  TechObjBrkDwn.MaintenanceNotification AS MaintenanceNotification,
  TechObjBrkDwn.MalfunctionStartDate AS MalfunctionStartDate,
  TechObjBrkDwn.MalfunctionEndDate AS MalfunctionEndDate,
  TechObjBrkDwn.MalfunctionStartTime AS MalfunctionStartTime,
  TechObjBrkDwn.MalfunctionEndTime AS MalfunctionEndTime,
  TechObjBrkDwn.S1MalfunctionStartDateTime AS S1MalfunctionStartDateTime,
  TechObjBrkDwn.S1MalfunctionEndDateTime AS S1MalfunctionEndDateTime,
  TechObjBrkDwn.EffctvMalfunctionEndDateTime AS EffctvMalfunctionEndDateTime,
  TechObjBrkDwn.EffctvMalfunctionStartDateTime AS EffctvMalfunctionStartDateTime,
  TechObjBrkDwn.TechnicalObject AS TechnicalObjectForJoin,
  cast( TechObjBrkDwn.TechnicalObject as eams_tec_obj ) AS TechnicalObject,
  TechObjBrkDwn.TechObjIsEquipOrFuncnlLoc AS TechObjIsEquipOrFunLocForJoin,
  cast( TechObjBrkDwn.TechObjIsEquipOrFuncnlLoc as eams_tec_obj_type_value ) AS TechObjIsEquipOrFuncnlLoc,
  TechObjBrkDwn.NumberOfReportedBreakdowns AS NumberOfReportedBreakdowns,
  _TechnicalObject.TechnicalObjectType AS TechnicalObjectType,
  _TechnicalObject.TechnicalObjectLabel AS TechnicalObjectLabel,
  _TechnicalObject.AssetManufacturerName AS AssetManufacturerName,
  _TechnicalObject.ManufacturerPartTypeName AS ManufacturerPartTypeName,
  _TechnicalObject.ConstructionMaterial AS ConstructionMaterial,
  _TechnicalObject.ManufacturerCountry AS ManufacturerCountry,
  _TechnicalObject.AuthorizationGroup AS AuthorizationGroup,
  _TechnicalObject.ConstructionYear AS ConstructionYear,
  _TechnicalObject.ConstructionMonth AS ConstructionMonth,
  TechObjBrkDwn.UnitOfMeasure AS UnitOfMeasure,
  TechObjBrkDwn.TimeBetweenRepairInHours AS TimeBetweenRepairInHours,
  TechObjBrkDwn.TotalRepairTimeInHours AS TotalRepairTimeInHours,
  _TechnicalObject.Equipment AS Equipment,
  _TechnicalObject._ManufacturerCountry AS _ManufacturerCountry,
  _TechnicalObject._TechnicalObjectType AS _TechnicalObjectType
FROM P_MaintObjBrkdwnTableFunction
LEFT OUTER JOIN I_TechnicalObject AS _TechnicalObject ON TechnicalObjectForJoin = _TechnicalObject.TechnicalObject AND TechObjIsEquipOrFunLocForJoin = _TechnicalObject.TechObjIsEquipOrFuncnlLoc  -- association [0..1]
LEFT OUTER JOIN I_CalendarDate AS _Date ON MalfunctionEndDate = _Date.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_TechObjIsEquipOrFuncnlLoc AS _TechObjIsEquipOrFuncnlLoc ON TechObjIsEquipOrFunLocForJoin = _TechObjIsEquipOrFuncnlLoc.TechObjIsEquipOrFuncnlLoc  -- association [0..1]
LEFT OUTER JOIN I_EquipmentTimeSeg AS _EquipmentTimeSeg ON _EquipmentTimeSeg.Equipment = Equipment AND _EquipmentTimeSeg.ValidityStartDate <= MalfunctionStartDate AND _EquipmentTimeSeg.ValidityEndDate > MalfunctionStartDate  -- association [0..1]
;