I_REFixedAssetRelation

DDL: I_REFIXEDASSETRELATION SQL: IREFIXASTREL Type: view BASIC

Real Estate Relation to Fixed Asset

I_REFixedAssetRelation is a Basic CDS View that provides data about "Real Estate Relation to Fixed Asset" in SAP S/4HANA. It reads from 1 data source (I_FixedAsset) and exposes 5 fields with key field REStatusObjectAsset. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_FixedAsset I_FixedAsset from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_FixedAsset _FixedAsset $projection.CompanyCode = _FixedAsset.CompanyCode and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset and $projection.FixedAsset = _FixedAsset.FixedAsset
[0..1] I_REObjectTypeText _REObjectTypeText _REObjectTypeText.RealEstateObjectType = 'AN' and _REObjectTypeText.Language = $session.system_language

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IREFIXASTREL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Real Estate Relation to Fixed Asset view
ObjectModel.representativeKey REStatusObjectAsset view
ObjectModel.semanticKey REStatusObjectAsset view
ObjectModel.compositionRoot true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #BASIC view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY REStatusObjectAsset
CompanyCode CompanyCode
MasterFixedAsset MasterFixedAsset
FixedAsset FixedAsset
_FixedAsset _FixedAsset
@AbapCatalog.sqlViewName: 'IREFIXASTREL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Real Estate Relation to Fixed Asset'
@ObjectModel: { representativeKey: 'REStatusObjectAsset',
                semanticKey: 'REStatusObjectAsset',
                compositionRoot:true,
                usageType.serviceQuality: #C,
                usageType.sizeCategory: #XXL,
                usageType.dataClass: #MASTER }
@VDM.viewType: #BASIC

define view I_REFixedAssetRelation
  as select from I_FixedAsset

  // Association to children

  association [1..1] to I_FixedAsset       as _FixedAsset       on  $projection.CompanyCode      = _FixedAsset.CompanyCode
                                                                and $projection.MasterFixedAsset = _FixedAsset.MasterFixedAsset
                                                                and $projection.FixedAsset       = _FixedAsset.FixedAsset
  association [0..1] to I_REObjectTypeText as _REObjectTypeText on  _REObjectTypeText.RealEstateObjectType = 'AN'
                                                                and _REObjectTypeText.Language             = $session.system_language
{

  key cast( concat( 'AN' , concat( CompanyCode , concat( MasterFixedAsset , FixedAsset ) ) ) as receasobjnr ) as REStatusObjectAsset,
      CompanyCode,
      MasterFixedAsset,
      FixedAsset,
      cast(
                concat(concat(concat(concat(
                CompanyCode,
                '/'),
                MasterFixedAsset),
                '/'),
                FixedAsset)
                as recaidentkey )                                                                                as REIdentificationKey,
      cast(
                concat(concat(concat(concat(concat_with_space(_REObjectTypeText.REObjectTypePrefix,
                CompanyCode,1 ),
                '/'),
                MasterFixedAsset),
                '/'),
                FixedAsset)
                as recaident )                                                                                as REIdentification,

      _FixedAsset



}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_FIXEDASSET",
"I_REOBJECTTYPETEXT"
],
"ASSOCIATED":
[
"I_FIXEDASSET",
"I_REOBJECTTYPETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/