ATOV_PK_NAMESPACE
onPrem Namespace
ATOV_PK_NAMESPACE is a CDS View that provides data about "onPrem Namespace" in SAP S/4HANA. It reads from 4 data sources (ato_setup_hist, ATOV_PK_HIST_NAMESPACE, ato_setup, ato_setup) and exposes 3 fields with key field prefix.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| ato_setup_hist | hist | left_outer |
| ATOV_PK_HIST_NAMESPACE | min_hist | from |
| ato_setup | setup | left_outer |
| ato_setup | setup | union |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ATO_V_PK_NSP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| EndUserText.label | onPrem Namespace | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | prefix | ato_setup_hist | dev_namespace | |
| category | ||||
| category |
@AbapCatalog.sqlViewName: 'ATO_V_PK_NSP'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.type: #CLIENT_DEPENDENT
@ClientHandling.algorithm: #AUTOMATED
@EndUserText.label: 'onPrem Namespace'
define view ATOV_PK_NAMESPACE as
select from ATOV_PK_HIST_NAMESPACE as min_hist
left outer join ato_setup_hist as hist on hist.last_changed_at = min_hist.created_at
left outer join ato_setup as setup on hist.dev_namespace = setup.dev_namespace // client handling comes from current setup
{
key hist.dev_namespace as prefix,
'K' as category,
'' as is_default_prefix,
hist.last_changed_at as last_changed_at,
case when hist.client = $session.client
then hist.last_changed_by
else ''
end as last_changed_by
}
where setup.setup_type is null // exclude the current setup in this part of the union
union select from ato_setup as setup
{
key dev_namespace as prefix,
'K' as category,
'X' as is_default_prefix,
setup.last_changed_at as last_changed_at,
setup.last_changed_by as last_changed_by
}
where setup_type = 'P' and //only on Prem
dev_namespace <> '' //read only use case might be initial
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_PK_HIST_NAMESPACE",
"ATO_SETUP",
"ATO_SETUP_HIST"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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