ATOV_CURRENT_COLLECTION_OF_ITM
Current Collection of Item
ATOV_CURRENT_COLLECTION_OF_ITM is a CDS View that provides data about "Current Collection of Item" in SAP S/4HANA. It reads from 2 data sources (ato_cols, ato_col_items) and exposes 2 fields with key fields item_type, item_id. Part of development package S_ATO_PUBLIC.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| ato_cols | collection | inner |
| ato_col_items | item | from |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ATO_V_CURRCOLITM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Current Collection of Item | view |
Fields (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | item_type | ato_col_items | item_type | |
| KEY | item_id | ato_col_items | item_id |
@AbapCatalog.sqlViewName: 'ATO_V_CURRCOLITM'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Current Collection of Item'
define view ATOV_CURRENT_COLLECTION_OF_ITM
as select from ato_col_items as item
inner join ato_cols as collection on collection.collection_id = item.collection_id
{
key item.item_type,
key item.item_id,
collection.collection_id,
collection.description_text
}
where
collection.category <> 'L'
and collection.category <> 'B'
and collection.category <> 'T'
and // no templates
collection.status <> 'H'
and collection.status <> 'M'
and collection.collection_type = 'E'
and item.timestamp = 0
// TODO Implement WHERE Clause with current client
// TODO Implement UNION with ATO_XC_ITEMS
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA