ATOV_COL_EXP

DDL: ATOV_COL_EXP SQL: ATO_V_C_EXP Type: view

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)

SourceAliasJoin Type
ato_cols Collection from
ATOV_COL_VER_EXP_KEY Collection_Version inner

Associations (7)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;