@AbapCatalog.sqlViewName: 'PTECHOBJHIER'
@AbapCatalog.compiler.compareFilter: true@VDM.private: true@VDM.viewType: #COMPOSITE@AccessControl.authorizationCheck:#NOT_REQUIRED// First Union: Selection of all Functional Locations assigned to a parent Functional Location
// Second Union: Selection of all Equipments assigned to a parent Functional Location
// Third Union: Selection of all Equipments assigned to a parent Equipment
// First Union: Selection of all Functional Locations assigned to a parent Functional Location
// Second Union: Selection of all Equipments assigned to a parent Functional Location
// Third Union: Selection of all Equipments assigned to a parent Equipment
defineview P_TechnicalObjectHierarchy
asselectfrom I_Functionallocationhierarchy
// determination of all connection between functional location and functional location
{
key I_Functionallocationhierarchy.TechnicalObject,
key I_Functionallocationhierarchy.TechObjIsEquipOrFuncnlLoc,
SuperiorTechnicalObject,
SuperiorObjIsEquipOrFuncnlLoc,
FunctionalLocation as FunctionalLocation,
SuperiorFunctionalLocation as SuperiorFunctionalLocation,
cast ( ' ' as equnr preserving type) as SuperordinateEquipment,
cast ( ' ' as equnr preserving type) as Equipment
}
unionselectfrom I_FunctionallocationEquipmentH
{
key I_FunctionallocationEquipmentH.TechnicalObject,
key I_FunctionallocationEquipmentH.TechObjIsEquipOrFuncnlLoc,
SuperiorTechnicalObject,
SuperiorObjIsEquipOrFuncnlLoc,
cast ( ' ' as tplnr preserving type) as FunctionalLocation,
SuperiorFunctionalLocation as SuperiorFunctionalLocation,
cast ( ' ' as equnr preserving type) as SuperordinateEquipment,
Equipment as Equipment
}
unionselectfrom I_Equipmenthierarchy
{
key I_Equipmenthierarchy.TechnicalObject,
key I_Equipmenthierarchy.TechObjIsEquipOrFuncnlLoc,
SuperiorTechnicalObject,
SuperiorObjIsEquipOrFuncnlLoc,
cast ( ' ' as tplnr preserving type) as FunctionalLocation,
cast ( ' ' as tplnr preserving type) as SuperiorFunctionalLocation,
SuperordinateEquipment as SuperordinateEquipment,
Equipment as Equipment
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EQUIPMENTHIERARCHY",
"I_FUNCTIONALLOCATIONEQUIPMENTH",
"I_FUNCTIONALLOCATIONHIERARCHY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/