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 | Username | |
| changed_at | ato_cols | last_changed_at | Timestamp | |
| created_by | ato_cols | created_by | Version Created By | |
| created_at | ato_cols | created_at | Uploaded On | |
| status | ato_cols | status | Workflow Status | |
| category | ato_cols | category | Violation Category | |
| Version_Counter | Version_Counter | |||
| Collection_Versions | Collection_Versions | |||
| Latest_Collection_Version | Latest_Collection_Version |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view ATOV_COL_EXP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: ATO_V_C_EXP
CREATE VIEW ATOV_COL_EXP AS
SELECT
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.category AS category,
Version_Counter,
Collection_Versions,
Latest_Collection_Version
FROM ato_cols AS Collection
INNER JOIN ATOV_COL_VER_EXP_KEY AS Collection_Version ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN ATOV_COL_COUNT_VERSION AS Version_Counter ON Version_Counter.collection_id = Collection.collection_id -- association [1]
LEFT OUTER JOIN ATOV_COL_VER_EXP AS Collection_Versions ON Collection_Versions.collection_id = Collection.collection_id -- association [*]
LEFT OUTER JOIN 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]
LEFT OUTER JOIN ATOV_COL_STATUS_DESCRIPTION AS Collection_Status ON Collection_Status.code = Collection.status -- association [1]
LEFT OUTER JOIN ATOV_COL_MERGE AS Collection_Merge ON Collection_Merge.MergedCollectionId = Collection.collection_id -- association [0..1]
LEFT OUTER JOIN ATOV_USER AS Changed_By_Description ON Changed_By_Description.name = last_changed_by -- association [1]
LEFT OUTER JOIN ATOV_USER AS Created_By_Description ON Created_By_Description.name = created_by -- association [1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA