I_TechnicalObjectType is a Basic CDS View (Dimension) that provides data about "Techncial Object Type" in SAP S/4HANA. It reads from 1 data source (t370k) and exposes 2 fields with key field TechnicalObjectType. It has 1 association to related views.
@EndUserText.label: 'Techncial Object Type'
@Analytics: { dataCategory: #DIMENSION,
dataExtraction : { enabled: true ,
delta.changeDataCapture.automatic: true }
}
@VDM.viewType: #BASIC@AbapCatalog.sqlViewName: 'ITECHOBJTYPE'
@AbapCatalog.compiler.compareFilter: true@AccessControl.authorizationCheck:#CHECK@ObjectModel.representativeKey: 'TechnicalObjectType'
@ClientHandling.algorithm: #SESSION_VARIABLE@ObjectModel.usageType.dataClass: #CUSTOMIZING@ObjectModel.usageType.serviceQuality: #A@ObjectModel.usageType.sizeCategory: #S@Metadata.ignorePropagatedAnnotations: true@Metadata.allowExtensions: true@ObjectModel.supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET]@ObjectModel.alternativeKey:[{id:'OID',element:['EAMTechnicalObjectTypeOID']}]
@ObjectModel.sapObjectNodeType.name:'EAMTechnicalObjectType'
@ObjectModel.objectIdentifier.oidElement:'EAMTechnicalObjectTypeOID'
defineview I_TechnicalObjectType
asselectfrom t370k // T370K = Type of technical object
leftouter to one join I_MdiOidConfiguration on I_MdiOidConfiguration.ObjectTypeCode = '5810'
association [0..*] to I_TechnicalObjectTypeText as _Text on _Text.TechnicalObjectType = $projection.TechnicalObjectType
{
@ObjectModel.text.association: '_Text'
key t370k.eqart as TechnicalObjectType,
//MDI/ODM
@ObjectModel.filter.enabled:false@ObjectModel.sort.enabled:false//Context ID isnot specified
casewhen I_MdiOidConfiguration.Context is initial
//Composition is disabled
or I_MdiOidConfiguration.ComposeOid is initial thencast( t370k.eqart as technicalobjecttype_oid ) //use your own data element
//Context ID is specified
when I_MdiOidConfiguration.Context isnot initial
// and dd07l.domvalue_l isnot initial
and I_MdiOidConfiguration.ComposeOid isnot initial thencast( concat( concat( I_MdiOidConfiguration.Context, ':' ), t370k.eqart ) as technicalobjecttype_oid ) //use your own data element
endas EAMTechnicalObjectTypeOID, //use your own OID field name
// Propagate association
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MDIOIDCONFIGURATION",
"T370K"
],
"ASSOCIATED":
[
"I_TECHNICALOBJECTTYPETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/