ATOV_COL_EXP
Collections
ATOV_COL_EXP is a CDS View that provides data about "Collections" in SAP S/4HANA. It reads from 2 data sources (ato_cols, ATOV_COL_VER_EXP_KEY) and exposes 9 fields. It has 7 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| ato_cols | Collection | from |
| ATOV_COL_VER_EXP_KEY | Collection_Version | inner |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | ATOV_COL_COUNT_VERSION | Version_Counter | Version_Counter.collection_id = Collection.collection_id |
| [*] | ATOV_COL_VER_EXP | Collection_Versions | Collection_Versions.collection_id = Collection.collection_id |
| [1] | ATOV_COL_VER_EXP | Latest_Collection_Version | Latest_Collection_Version.collection_id = Collection.collection_id and Latest_Collection_Version.is_latest_version = 'X' |
| [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 = last_changed_by |
| [1] | ATOV_USER | Created_By_Description | Created_By_Description.name = created_by |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ATO_V_C_EXP | view | |
| ClientHandling.type | #INHERITED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Collections | view |
Fields (9)
| 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 | ||
| category | ato_cols | category | ||
| Version_Counter | Version_Counter | |||
| Collection_Versions | Collection_Versions | |||
| Latest_Collection_Version | Latest_Collection_Version |
@AbapCatalog.sqlViewName: 'ATO_V_C_EXP'
@ClientHandling:{ type: #INHERITED, algorithm: #SESSION_VARIABLE }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Collections'
define view ATOV_COL_EXP
as
select from ato_cols as Collection
// latest version with latest Status
inner join ATOV_COL_VER_EXP_KEY as Collection_Version on Collection_Version.collection_id = Collection.collection_id
association [1] to ATOV_COL_COUNT_VERSION as Version_Counter on Version_Counter.collection_id = Collection.collection_id
association [*] to ATOV_COL_VER_EXP as Collection_Versions on Collection_Versions.collection_id = Collection.collection_id
association [1] to ATOV_COL_VER_EXP as Latest_Collection_Version on Latest_Collection_Version.collection_id = Collection.collection_id
and Latest_Collection_Version.is_latest_version = 'X'
association [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 = last_changed_by
association [1] to ATOV_USER as Created_By_Description on Created_By_Description.name = 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.original_systname as original_systname,
Collection.status as status,
Collection_Status.description as status_description,
Changed_By_Description.description as changed_by_description,
Created_By_Description.description as created_by_description,
case COALESCE(Collection.description_text,'')
when '' then Collection.collection_id
else Collection.description_text
end as description,
Collection.category,
/* Associations */
Version_Counter,
Collection_Versions,
Latest_Collection_Version
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"ATOV_COL_STATUS_DESCRIPTION",
"ATOV_COL_VER_EXP_KEY",
"ATOV_USER",
"ATO_COLS"
],
"ASSOCIATED":
[
"ATOV_COL_COUNT_VERSION",
"ATOV_COL_MERGE",
"ATOV_COL_STATUS_DESCRIPTION",
"ATOV_COL_VER_EXP",
"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