I_CntrlPurContrDistrStatusText

DDL: I_CNTRLPURCONTRDISTRSTATUSTEXT SQL: ICPCDISTRSTATSTT Type: view BASIC Package: VDM_MM_PUR_CCTR

Distribution Status for Central Purchase Contracts

I_CntrlPurContrDistrStatusText is a Basic CDS View that provides data about "Distribution Status for Central Purchase Contracts" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 4 fields with key field ItemDistributionStatus. It has 1 association to related views. Part of development package VDM_MM_PUR_CCTR.

Data Sources (1)

SourceAliasJoin Type
dd07t dd07t from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName ICPCDISTRSTATSTT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #BASIC view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Distribution Status for Central Purchase Contracts view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ItemDistributionStatus domvalue_l
Language ddlanguage
ItemDistributionStatusName ddtext
_Language _Language
@AbapCatalog.sqlViewName: 'ICPCDISTRSTATSTT'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.viewType: #BASIC

@ClientHandling.algorithm: #SESSION_VARIABLE

@EndUserText.label: 'Distribution Status for Central Purchase Contracts'
define view I_CntrlPurContrDistrStatusText
  as select from dd07t
  association [0..1] to I_Language                   as _Language                   on $projection.Language = _Language.Language
{
  key domvalue_l                                     as              ItemDistributionStatus,

      @Semantics.language: true
      ddlanguage                                     as              Language,

      //      @Semantics.text: true

      //       ddtext as PurgDocDistributionStatusDesc,


      @Semantics.text: true
      ddtext                                         as              ItemDistributionStatusName,

      case domvalue_l
        when '01'
          then cast (2  as int2)
        when '02'
          then cast (1  as int2)
        when '03'
          then cast (3  as int2)
        else
          cast (0  as int2)
        end                                          as              StatusCriticality,
  
      _Language
}
where
      domname    = 'ME_DISTRIBUTION_STATUS'
  and ( domvalue_l = '01'
  or    domvalue_l = '02'
  or    domvalue_l = '03' )
  and as4local   = 'A'
  and ddlanguage = $session.system_language