DBC2ABAP_SCHEMAS

DDL: DBC2ABAP_SCHEMAS Type: view_entity Package: SABP_DBC2ABAP_RUNTIME

Schemas for SQL service

DBC2ABAP_SCHEMAS is a CDS View that provides data about "Schemas for SQL service" in SAP S/4HANA. It reads from 5 data sources (tadir, sql1_head, sql1_head_t, sql1_head_t, sql1_head_t) and exposes 4 fields with key field SqlServiceName. Part of development package SABP_DBC2ABAP_RUNTIME.

Data Sources (5)

SourceAliasJoin Type
tadir adir inner
sql1_head sql1 from
sql1_head_t text_curr left_outer
sql1_head_t text_en left_outer
sql1_head_t text_orig left_outer

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Schemas for SQL service view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SqlServiceName sql1_head sql1_name
SqlServiceNameRaw sql1_head sql1_name_raw
descriptionasSqlServiceDescription
EnabledForReplicate sql1_head enabled_for_replicate
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'Schemas for SQL service'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity DBC2ABAP_SCHEMAS
  as select from    sql1_head   as sql1
    inner join      tadir       as adir      on  adir.pgmid    = 'R3TR'
                                             and adir.object   = 'SQL1'
                                             and adir.obj_name = sql1.sql1_name
    left outer join sql1_head_t as text_curr on  text_curr.sql1_name = sql1.sql1_name
                                             and text_curr.language  = $session.system_language
                                             and text_curr.state     = 'A'
    left outer join sql1_head_t as text_en   on  text_en.sql1_name = sql1.sql1_name
                                             and text_en.language  = 'E'
                                             and text_en.state     = 'A'
    left outer join sql1_head_t as text_orig on  text_orig.sql1_name = sql1.sql1_name
                                             and text_orig.language  = adir.masterlang
                                             and text_orig.state     = 'A'
{
  key sql1.sql1_name                   as SqlServiceName,
      sql1.sql1_name_raw               as SqlServiceNameRaw,
      coalesce(
        coalesce( text_curr.description, text_en.description ),
        text_orig.description )        as SqlServiceDescription,
      sql1.enabled_for_replicate       as EnabledForReplicate,
      case sql1.disabled_for_select
        when 'X' then ' ' else 'X' end as EnabledForSelect
}
where
      sql1.state     =  'A'
  and sql1.sql1_name <> 'S_PRIVILEGED'