atov_calm_release_status

DDL: ATOV_CALM_RELEASE_STATUS SQL: ATO_V_CALM_RELE Type: view

Release status of ATO transports for CALM

atov_calm_release_status is a CDS View that provides data about "Release status of ATO transports for CALM" in SAP S/4HANA. It reads from 4 data sources (ato_cmn_requests, ato_col_versions, ato_cols, e070v) and exposes 3 fields.

Data Sources (4)

SourceAliasJoin Type
ato_cmn_requests cmn_request from
ato_col_versions col_Version union_all
ato_cols collection inner
e070v request inner

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_CALM_RELE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Release status of ATO transports for CALM view

Fields (3)

KeyFieldSource TableSource FieldDescription
version
version ato_col_versions version
description ato_cols description_text
@AbapCatalog.sqlViewName: 'ATO_V_CALM_RELE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Release status of ATO transports for CALM'
define view atov_calm_release_status
  as select from ato_cmn_requests as cmn_request
    inner join   e070v            as request on request.trkorr = cmn_request.request
{
  cmn_request.request                                  as collection_id,
  cast( 1 as ato_collection_version )                  as version,
  cmn_request.ato_cmn_transport_type                   as transport_type,

  cast(
    case request.trstatus
    when 'R' then 'RELEASED'
    when 'N' then 'RELEASED'
    else 'MODIFIABLE'
    end as ato_deploy_action_status )                  as status,

  cmn_request.changed_at                               as last_changed_at, //TODO: AS4DATE and AS4TIME from E070V instead?

  request.as4user                                      as last_changed_by,
  cast( request.as4text as ato_collection_description) as description
}
where
  cmn_request.ato_cmn_transport_type <> 'EXT'

union all select from ato_col_versions as col_Version
  inner join          ato_cols         as collection on collection.collection_id = col_Version.collection_id
{
  col_Version.collection_id,
  col_Version.version,
  cast( 'EXT' as ato_cmn_transport_type ) as transport_type,

  cast (
    case col_Version.status
    when 'E' then 'RELEASED'
    else 'MODIFIABLE'
    end as ato_deploy_action_status )     as status,

  col_Version.last_changed_at,
  col_Version.last_changed_by,
  collection.description_text             as description
}
where
  col_Version.timestamp = 0
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATO_CMN_REQUESTS",
"ATO_COLS",
"ATO_COL_VERSIONS",
"E070V"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/