I_FunctionallocationEquipmentH

DDL: I_FUNCTIONALLOCATIONEQUIPMENTH SQL: IFLOCEQUI_H Type: view BASIC

Hierarchy Information between FLOC and EQUI

I_FunctionallocationEquipmentH is a Basic CDS View that provides data about "Hierarchy Information between FLOC and EQUI" in SAP S/4HANA. It reads from 1 data source (I_EquipmentTimeSeg) and exposes 7 fields with key field MaintObjectLocAcctAssgmtNmbr. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_EquipmentTimeSeg I_EquipmentTimeSeg from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_LocationAccountAssignment _LocationAccountAssignment $projection.MaintObjectLocAcctAssgmtNmbr = _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName IFLOCEQUI_H view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Hierarchy Information between FLOC and EQUI view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY MaintObjectLocAcctAssgmtNmbr I_EquipmentTimeSeg MaintObjectLocAcctAssgmtNmbr
TechnicalObject
TechObjIsEquipOrFuncnlLoc
SuperiorTechnicalObject
Equipment I_EquipmentTimeSeg Equipment
SuperordinateEquipment I_EquipmentTimeSeg SuperordinateEquipment
SuperiorFunctionalLocation _LocationAccountAssignment FunctionalLocation
@AbapCatalog.sqlViewName: 'IFLOCEQUI_H'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.privilegedAssociations:['_LocationAccountAssignment']
@EndUserText.label: 'Hierarchy Information between FLOC and EQUI'
@VDM.viewType: #BASIC

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #L

define view I_FunctionallocationEquipmentH
  as select from I_EquipmentTimeSeg

  association [0..1] to I_LocationAccountAssignment as _LocationAccountAssignment on $projection.MaintObjectLocAcctAssgmtNmbr = _LocationAccountAssignment.MaintObjectLocAcctAssgmtNmbr

{
  key I_EquipmentTimeSeg.MaintObjectLocAcctAssgmtNmbr                                         as MaintObjectLocAcctAssgmtNmbr,
    cast ( cast (I_EquipmentTimeSeg.Equipment                  as char40 )  as eams_tec_obj ) as TechnicalObject,
    cast ( 'EAMS_EQUI'                                         as eams_tec_obj_type_value)    as TechObjIsEquipOrFuncnlLoc,
    cast ( cast (_LocationAccountAssignment.FunctionalLocation as char40 ) as eams_tec_obj  ) as SuperiorTechnicalObject,
    case when _LocationAccountAssignment.FunctionalLocation <> ''
         then cast ( 'EAMS_FL'  as eams_tec_obj_type_value)
         else cast ( ''         as eams_tec_obj_type_value)
         end  as SuperiorObjIsEquipOrFuncnlLoc,
    I_EquipmentTimeSeg.Equipment                                                              as Equipment,
    I_EquipmentTimeSeg.SuperordinateEquipment                                                 as SuperordinateEquipment,
    _LocationAccountAssignment.FunctionalLocation                                             as SuperiorFunctionalLocation

} where ValidityEndDate = '99991231'
  and ( _LocationAccountAssignment.FunctionalLocation <> '' and I_EquipmentTimeSeg.SuperordinateEquipment = '' ) 
  
  
 /*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_EQUIPMENTTIMESEG",
"I_LOCATIONACCOUNTASSIGNMENT"
],
"ASSOCIATED":
[
"I_LOCATIONACCOUNTASSIGNMENT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/