ATOV_COL_VER_EXP_ITEM_COUNTER

DDL: ATOV_COL_VER_EXP_ITEM_COUNTER SQL: ATO_V_COLVE_ITMC Type: view

# Items in exported Collection Versions

ATOV_COL_VER_EXP_ITEM_COUNTER is a CDS View that provides data about "# Items in exported Collection Versions" in SAP S/4HANA.

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_COLVE_ITMC view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label # Items in exported Collection Versions view
@AbapCatalog.sqlViewName: 'ATO_V_COLVE_ITMC'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: '# Items in exported Collection Versions'
define view ATOV_COL_VER_EXP_ITEM_COUNTER
  as
 select distinct from ATOV_CL_ITEM_EXP as Collection_Version_Item  // due to full and delta exports 

  // there is no need to get the max entry as both are exported at the same timestamp

{
  key collection_id,
  key collection_version,
  count( distinct item_id ) as number_of_items  
} 
where Collection_Version_Item.status = 'ED'
group by  collection_id, 
          collection_version
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_CL_ITEM_EXP"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/