ATOV_CART_COUNT_DELETED

DDL: ATOV_CART_COUNT_DELETED SQL: ATO_V_CART_CNTD Type: view

Count deleted items in Hotfix

ATOV_CART_COUNT_DELETED is a CDS View that provides data about "Count deleted items in Hotfix" in SAP S/4HANA. It reads from 3 data sources (ato_col_cart, ATOV_COL_VER_KEY_MAX, ato_items).

Data Sources (3)

SourceAliasJoin Type
ato_col_cart cart from
ATOV_COL_VER_KEY_MAX current_collection_version inner
ato_items item inner

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_CART_CNTD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Count deleted items in Hotfix view
@AbapCatalog.sqlViewName: 'ATO_V_CART_CNTD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'Count deleted items in Hotfix'
define view ATOV_CART_COUNT_DELETED
  as select from ato_col_cart         as cart
    inner join   ATOV_COL_VER_KEY_MAX as current_collection_version on cart.collection_id = current_collection_version.collection_id
    inner join   ato_items            as item                       on  cart.item_type   = item.item_type
                                                                    and cart.item_id     = item.item_id
                                                                    and item.item_status = #ATO_ITEM_STATUS.'D'
                                                                    and item.timestamp   = 0
{
  key current_collection_version.collection_id,
      count (*) as number_of_deleted_items
}
group by
  current_collection_version.collection_id
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_COL_VER_KEY_MAX",
"ATO_COL_CART",
"ATO_ITEMS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/