I_CustomCDSViewSourceOrigin

DDL: I_CUSTOMCDSVIEWSOURCEORIGIN Type: view_entity BASIC Package: SAPS_CCV_DB

Custom CDS View Source Origin

I_CustomCDSViewSourceOrigin is a Basic CDS View that provides data about "Custom CDS View Source Origin" in SAP S/4HANA. It reads from 2 data sources (dd07l, dd07t) and exposes 2 fields with key field SourceOrigin. Part of development package SAPS_CCV_DB.

Data Sources (2)

SourceAliasJoin Type
dd07l dd07l from
dd07t text left_outer

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Custom CDS View Source Origin view
ObjectModel.resultSet.sizeCategory #XS view
ObjectModel.representativeKey SourceOrigin view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #BASIC view
ObjectModel.dataCategory #VALUE_HELP view
Search.searchable true view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY SourceOrigin
SourceOriginText dd07t ddtext
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Custom CDS View Source Origin'
@ObjectModel : { resultSet.sizeCategory: #XS }
@ObjectModel.representativeKey: 'SourceOrigin'
@Metadata.ignorePropagatedAnnotations:true
@VDM.viewType: #BASIC
@ObjectModel.dataCategory: #VALUE_HELP
@Search.searchable: true
define view entity I_CustomCDSViewSourceOrigin
  as select from    dd07l
    left outer join dd07t as text on  text.domname    = dd07l.domname
                                  and text.as4local   = dd07l.as4local
                                  and text.as4vers    = dd07l.as4vers
                                  and text.valpos     = dd07l.valpos
                                  and text.ddlanguage = $session.system_language

{
      @ObjectModel.text.element: ['SourceOriginText']
  key cast(cast(rtrim(substring(dd07l.domvalue_l, 1, 3), ' ') as abap.numc(3)) as abap.int1)     as SourceOrigin,
      @Semantics.text:true
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      text.ddtext                           as SourceOriginText
}
where
       dd07l.domname    = 'DDDDLSRCORIGIN'
  and  dd07l.as4local   = 'A'
  and(
       dd07l.domvalue_l = '0'
    or dd07l.domvalue_l = '1'
    or dd07l.domvalue_l = '3'
    or dd07l.domvalue_l = '4'
    or dd07l.domvalue_l = '5'
  );