I_InhRepairStatusText

DDL: I_INHREPAIRSTATUSTEXT Type: view COMPOSITE Package: CRMS4_REPAIR_BO

In-House Service Status - Text

I_InhRepairStatusText is a Composite CDS View that provides data about "In-House Service Status - Text" in SAP S/4HANA. It reads from 2 data sources (I_InhRepairUserStatusText, I_SrvcLifeCycleSystemStatusT) and exposes 9 fields with key fields InhRepairStatus, Language, InhRepairStatus, Language. It has 1 association to related views. Part of development package CRMS4_REPAIR_BO.

Data Sources (2)

SourceAliasJoin Type
I_InhRepairUserStatusText I_InhRepairUserStatusText from
I_SrvcLifeCycleSystemStatusT I_SrvcLifeCycleSystemStatusT union

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_InhRepairStatus _InhRepairStatus $projection.InhRepairStatus = _InhRepairStatus.InhRepairStatus

Annotations (14)

NameValueLevelField
EndUserText.label In-House Service Status - Text view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.dataCategory #TEXT view
ObjectModel.representativeKey InhRepairStatus view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IIHRSTATUSTEXT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY InhRepairStatus
KEY Language Language
InhRepairStatusName
_InhRepairStatus _InhRepairStatus
KEY InhRepairStatus
KEY Language Language
InhRepairStatusName
_InhRepairStatus _InhRepairStatus
_Language _Language
@EndUserText.label: 'In-House Service Status - Text' //2602 CE : Repair replaced with Service

@VDM: {
    viewType: #COMPOSITE,
    lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
    authorizationCheck: #NOT_REQUIRED
}
@ObjectModel: {
    dataCategory: #TEXT,
    representativeKey: 'InhRepairStatus',
    usageType: {serviceQuality: #B, sizeCategory: #L, dataClass: #CUSTOMIZING},
    supportedCapabilities: [#SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET,#LANGUAGE_DEPENDENT_TEXT] //Added 2602 CE

}
@Metadata: {
    ignorePropagatedAnnotations: true
}
@ClientHandling: {
    algorithm: #SESSION_VARIABLE
}
@AbapCatalog: {
    sqlViewName: 'IIHRSTATUSTEXT',
    compiler.compareFilter: true,
    preserveKey: true

}

/*+[hideWarning] { "IDS" : [ "KEY_CHECK", "CALCULATED_FIELD_CHECK" ] }*/
define view I_InhRepairStatusText
  as 
  select from I_InhRepairUserStatusText
  association [0..1] to I_InhRepairStatus as _InhRepairStatus on $projection.InhRepairStatus = _InhRepairStatus.InhRepairStatus
{

  key cast(InhRepairUserStatus     as crms4_repa_status_lbl  preserving type ) as InhRepairStatus,
      @Semantics.language:true
      @ObjectModel.foreignKey.association: '_Language'
  key Language,
      @Semantics.text: true
      cast(InhRepairUserStatusName as crms4_repa_status_desc_lbl  ) as InhRepairStatusName,
      _InhRepairStatus,
      _Language
}
union 
select from I_SrvcLifeCycleSystemStatusT
association [0..1] to I_InhRepairStatus as _InhRepairStatus on $projection.InhRepairStatus = _InhRepairStatus.InhRepairStatus
{
       $session.client               as mandt,     
  key  cast(SrvcLifeCycleSystemStatus as crms4_stat_lifecycle preserving type )     as InhRepairStatus,
       @Semantics.language:true
       @ObjectModel.foreignKey.association: '_Language'
  key  Language,
       @Semantics.text: true
   cast(SrvcLifeCycleSystemStatusName as crms4_stat_lifecycle_desc ) as InhRepairStatusName,
  
       _InhRepairStatus,
       _Language
}
where SrvcLifeCycleSystemStatus <> 'D'  // No status 'Released' in In-House Repair