ATOV_COL_VER_BASE

DDL: ATOV_COL_VER_BASE SQL: ATO_V_CV_B Type: view Package: S_ATO_COL_CORE

Collection Version Base View

ATOV_COL_VER_BASE is a CDS View that provides data about "Collection Version Base View" in SAP S/4HANA. It reads from 1 data source (ATOV_COL_VER_KEY) and exposes 3 fields. It has 3 associations to related views. Part of development package S_ATO_COL_CORE.

Data Sources (1)

SourceAliasJoin Type
ATOV_COL_VER_KEY Collection_Version_Key from

Associations (3)

CardinalityTargetAliasCondition
[1] ato_col_versions Collection_Version_Detail Collection_Version_Detail.collection_id = Collection_Version_Key.collection_id and Collection_Version_Detail.version = Collection_Version_Key.collection_version and Collection_Version_Detail.timestamp = Collection_Version_Key.timestamp
[0..1] ATOV_COL_ASSIGNED_MAX Latest_Assignment Latest_Assignment.collection_id = Collection_Version_Key.collection_id
[1] ATOV_COL_VER_KEY_MAX Latest_Collection_Version_Key Latest_Collection_Version_Key.collection_id = Collection_Version_Key.collection_id

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_CV_B view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Collection Version Base View view

Fields (3)

KeyFieldSource TableSource FieldDescription
timestamp ATOV_COL_VER_KEY timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
status Collection_Version_Detail status Workflow Status
action Collection_Version_Detail action User action

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_VER_BASE.
-- 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_CV_B

CREATE VIEW ATOV_COL_VER_BASE AS
SELECT
  Collection_Version_Key.timestamp AS timestamp,
  Collection_Version_Detail.status AS status,
  Collection_Version_Detail.action AS action
FROM ATOV_COL_VER_KEY AS Collection_Version_Key
LEFT OUTER JOIN ato_col_versions AS Collection_Version_Detail ON Collection_Version_Detail.collection_id = Collection_Version_Key.collection_id AND Collection_Version_Detail.version = Collection_Version_Key.collection_version AND Collection_Version_Detail.timestamp = Collection_Version_Key.timestamp  -- association [1]
LEFT OUTER JOIN ATOV_COL_ASSIGNED_MAX AS Latest_Assignment ON Latest_Assignment.collection_id = Collection_Version_Key.collection_id  -- association [0..1]
LEFT OUTER JOIN ATOV_COL_VER_KEY_MAX AS Latest_Collection_Version_Key ON Latest_Collection_Version_Key.collection_id = Collection_Version_Key.collection_id  -- association [1]
;