I_OnHandStockStatusText

DDL: I_ONHANDSTOCKSTATUSTEXT Type: view_entity BASIC Package: PPH_DD_VDM_STLM

Demand Driven On-Hand Stock Status Description

I_OnHandStockStatusText is a Basic CDS View that provides data about "Demand Driven On-Hand Stock Status Description" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 5 fields with key fields OnHandStockStatusCode, Language. It has 2 associations to related views. Part of development package PPH_DD_VDM_STLM.

Data Sources (1)

SourceAliasJoin Type
dd07t dd07t from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_OnHandStockStatusCode _OnHandStockStatusCode $projection.OnHandStockStatusCode = _OnHandStockStatusCode.OnHandStockStatusCode
[0..1] I_Language _Language dd07t.ddlanguage = _Language.Language

Annotations (9)

NameValueLevelField
EndUserText.label Demand Driven On-Hand Stock Status Description view
ObjectModel.dataCategory #TEXT view
Analytics.technicalName IONHANDSTKSTSTXT view
ObjectModel.representativeKey OnHandStockStatusCode view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY OnHandStockStatusCode
KEY Language dd07t ddlanguage
OnHandStockStatusDescription dd07t ddtext
_Language _Language
_OnHandStockStatusCode _OnHandStockStatusCode
@EndUserText.label: 'Demand Driven On-Hand Stock Status Description'
@ObjectModel.dataCategory: #TEXT
@Analytics.technicalName: 'IONHANDSTKSTSTXT'
@ObjectModel.representativeKey: 'OnHandStockStatusCode'
@ObjectModel.usageType.dataClass: #META
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED

define view entity I_OnHandStockStatusText
  as select from dd07t
  association [0..1] to I_OnHandStockStatusCode as _OnHandStockStatusCode on $projection.OnHandStockStatusCode = _OnHandStockStatusCode.OnHandStockStatusCode
  association [0..1] to I_Language              as _Language              on dd07t.ddlanguage = _Language.Language
{
//  Note: Here the CDS field was already made of type int1 and domvalue_l can not be of type int1

//        Hence there is an intermediate casting to numc was required.

  key cast (cast ( substring( dd07t.domvalue_l, 1, 1 ) as abap.numc(1) ) as pph_onhandstocksts ) as OnHandStockStatusCode,

      @ObjectModel.foreignKey.association: '_Language'
      @Semantics.language: true
  key dd07t.ddlanguage                                                                              as Language,

      @Semantics.text: true
      dd07t.ddtext                                                                                  as OnHandStockStatusDescription,

      _Language,
      _OnHandStockStatusCode
}
where
      dd07t.domname  = 'PPH_ONHANDSTOCKSTS'
  and dd07t.as4local = 'A'