ATOV_COL
Collections
ATOV_COL is a CDS View that provides data about "Collections" in SAP S/4HANA. It reads from 2 data sources (ato_cols, ato_setup) and exposes 12 fields. It has 7 associations to related views.
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | ATOV_COL_COUNT_VERSION | Version_Counter | Version_Counter.collection_id = Collection.collection_id |
| [*] | ATOV_COL_VER | Collection_Versions | Collection_Versions.collection_id = Collection.collection_id |
| [0..1] | ATOV_COL_VER | Latest_Collection_Version | Latest_Collection_Version.collection_id = Collection.collection_id and Latest_Collection_Version.is_latest_version = 'X' |
| [0..1] | ATOV_COL_STATUS_DESCRIPTION | Collection_Status | Collection_Status.code = Collection.status |
| [0..1] | ATOV_COL_MERGE | Collection_Merge | Collection_Merge.MergedCollectionId = Collection.collection_id |
| [1] | ATOV_USER | Changed_By_Description | Changed_By_Description.name = Collection.last_changed_by |
| [1] | ATOV_USER | Created_By_Description | Created_By_Description.name = Collection.created_by |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ATO_V_C | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Collections | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| changed_by | ato_cols | last_changed_by | ||
| changed_at | ato_cols | last_changed_at | ||
| created_by | ato_cols | created_by | ||
| created_at | ato_cols | created_at | ||
| status | ato_cols | status | ||
| description | ato_cols | description_text | ||
| category | ato_cols | category | ||
| project_id | ato_cols | project_id | ||
| client | ato_cols | client | ||
| Version_Counter | Version_Counter | |||
| Collection_Versions | Collection_Versions | |||
| Latest_Collection_Version | Latest_Collection_Version |
@AbapCatalog.sqlViewName: 'ATO_V_C'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Collections'
define view ATOV_COL as select from ato_cols as Collection
left outer join ato_setup as original_setup on
original_setup.original_systname = Collection.original_systname
association [1] to ATOV_COL_COUNT_VERSION as Version_Counter on Version_Counter.collection_id = Collection.collection_id
association [*] to ATOV_COL_VER as Collection_Versions on Collection_Versions.collection_id = Collection.collection_id
association [0..1] to ATOV_COL_VER as Latest_Collection_Version on Latest_Collection_Version.collection_id = Collection.collection_id
and Latest_Collection_Version.is_latest_version = 'X'
association [0..1] to ATOV_COL_STATUS_DESCRIPTION as Collection_Status on Collection_Status.code = Collection.status
association [0..1] to ATOV_COL_MERGE as Collection_Merge on Collection_Merge.MergedCollectionId = Collection.collection_id
association [1] to ATOV_USER as Changed_By_Description on Changed_By_Description.name = Collection.last_changed_by
association [1] to ATOV_USER as Created_By_Description on Created_By_Description.name = Collection.created_by
{
key Collection.collection_id,
Collection.original_system_type,
Collection.last_changed_by as changed_by,
Collection.last_changed_at as changed_at,
Collection.created_by as created_by,
Collection.created_at as created_at,
Collection.status as status,
Collection_Status.description as status_description,
Collection.description_text as description,
Collection.category as category,
Collection.collection_type as collection_type,
Collection.dev_namespace as dev_namespace,
Collection.original_systname as original_systname,
Collection.export_locked as export_locked,
Collection.add_item_locked as add_item_locked,
Collection.notify_locked as notify_locked,
Collection.project_id as project_id,
Collection.project_description as project_description,
Collection.client as client,
case ( COALESCE( original_setup.original_systname, '' )) when ''
then ' '
else 'X'
end as is_original_system,
/* Associations */
Version_Counter,
Collection_Versions,
Latest_Collection_Version,
Changed_By_Description.description as changed_by_description,
Created_By_Description.description as created_by_description
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_COL_STATUS_DESCRIPTION",
"ATOV_USER",
"ATO_COLS",
"ATO_SETUP"
],
"ASSOCIATED":
[
"ATOV_COL_COUNT_VERSION",
"ATOV_COL_MERGE",
"ATOV_COL_STATUS_DESCRIPTION",
"ATOV_COL_VER",
"ATOV_USER"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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