DBC2ABAP_SCHEMAS
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 |
@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'
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA