ATOV_COL_VER_IMP_VER_KEY

DDL: ATOV_COL_VER_IMP_VER_KEY SQL: ATO_V_CV_IMPVK Type: view Package: S_ATO_COL_CORE

Collection Version Import Version Keys

ATOV_COL_VER_IMP_VER_KEY is a CDS View that provides data about "Collection Version Import Version Keys" in SAP S/4HANA. It reads from 1 data source (ato_cols). Part of development package S_ATO_COL_CORE.

Data Sources (1)

SourceAliasJoin Type
ato_cols Collection inner

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_CV_IMPVK view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Collection Version Import Version Keys view
@AbapCatalog.sqlViewName: 'ATO_V_CV_IMPVK'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Collection Version Import Version Keys'

// depending on the use case ATOV_COL_VER_IMP_KEY might be better. In ATOV_COL_VER_IMP_KEY the latest Staus + Timestamp is included

define view ATOV_COL_VER_IMP_VER_KEY
  as select distinct from ato_col_versions as Collection_Version

    inner join            ato_cols         as Collection on Collection.collection_id = Collection_Version.collection_id
{

  key Collection_Version.collection_id,
  key Collection_Version.version as collection_version

}
where
  (
       Collection_Version.status    =  'I' // I:Imported

    or Collection_Version.status    =  'R' // R:Ready for Import => this might not be timestam = 0

   // all imported Collections should at least have a Ready for Import or an Imported enty


  )
  and  Collection.status            <> 'H' // Hidden

  and  Collection.category          <> 'T'
  and  Collection.client            = $session.client //Filter Collections by client