atov_col_ver_set_as_imported

DDL: ATOV_COL_VER_SET_AS_IMPORTED Type: view_entity

Set as imported collection versions

atov_col_ver_set_as_imported is a CDS View that provides data about "Set as imported collection versions" in SAP S/4HANA. It reads from 1 data source (ato_col_versions) and exposes 4 fields with key fields version, timestamp. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ato_col_versions set_as_imported from

Associations (5)

CardinalityTargetAliasCondition
[1] ato_cols col col.collection_id = set_as_imported.collection_id
[1] ATOV_COLLECTION_TYPE collection_type_desc collection_type_desc.code = $projection.collection_type
[0..1] ato_col_v_status col_current_status col_current_status.collection_id = set_as_imported.collection_id and col_current_status.version = set_as_imported.version and col_current_status.status_schema = 'I'
[*] atov_text_collection_status status_after_import_descripton status_after_import_descripton.code = $projection.status_after_import
[*] atov_text_collection_status current_status_description current_status_description.code = $projection.current_status

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Set as imported collection versions view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY version ato_col_versions version XML Vers.
KEY timestamp ato_col_versions timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
resource_id ato_col_versions resource_id UUID Internal
imported_at ato_col_versions last_changed_at Timestamp

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_set_as_imported.
-- 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.

CREATE VIEW atov_col_ver_set_as_imported AS
SELECT
  set_as_imported.version AS version,
  set_as_imported.timestamp AS timestamp,
  set_as_imported.resource_id AS resource_id,
  set_as_imported.last_changed_at AS imported_at
FROM ato_col_versions AS set_as_imported
LEFT OUTER JOIN ato_cols AS col ON col.collection_id = set_as_imported.collection_id  -- association [1]
LEFT OUTER JOIN ATOV_COLLECTION_TYPE AS collection_type_desc ON collection_type_desc.code = collection_type  -- association [1]
LEFT OUTER JOIN ato_col_v_status AS col_current_status ON col_current_status.collection_id = set_as_imported.collection_id AND col_current_status.version = set_as_imported.version AND col_current_status.status_schema = 'I'  -- association [0..1]
LEFT OUTER JOIN atov_text_collection_status AS status_after_import_descripton ON status_after_import_descripton.code = status_after_import  -- association [*]
LEFT OUTER JOIN atov_text_collection_status AS current_status_description ON current_status_description.code = current_status  -- association [*]
;