atov_collection_type_import

DDL: ATOV_COLLECTION_TYPE_IMPORT Type: view_entity Package: S_ATO_COL_CORE

Collection type for use at import

atov_collection_type_import is a CDS View that provides data about "Collection type for use at import" in SAP S/4HANA. It reads from 4 data sources (atov_cbc_collections_import, atov_cbc_collections_import, ato_cols, ato_cols) and exposes 2 fields. Part of development package S_ATO_COL_CORE.

Data Sources (4)

SourceAliasJoin Type
atov_cbc_collections_import cbc left_outer
atov_cbc_collections_import cbc union_all
ato_cols col from
ato_cols col inner

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Collection type for use at import view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (2)

KeyFieldSource TableSource FieldDescription
category ato_cols category
category ato_cols category
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Collection type for use at import'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #X,
  sizeCategory: #S,
  dataClass: #MIXED
}
define view entity atov_collection_type_import
  
  // Select all but CBC collections

  as select from    ato_cols                    as col
    left outer join atov_cbc_collections_import as cbc on col.collection_id = cbc.collection_id
{
  key col.collection_id,
      col.collection_type,
      col.category,
      case( col.repository_name )
      when '' then ''
      else 'X'
      end as is_gcts_collection
}
where
  cbc.collection_id is null

union all

// Select only CBC collections

select from atov_cbc_collections_import as cbc
 inner join ato_cols as col on col.collection_id = cbc.collection_id
{
  key cbc.collection_id,
      'X' as collection_type, // CBC

      col.category,
      case( col.repository_name )
      when '' then ''
      else 'X'
      end as is_gcts_collection
}