ATOV_ITEM

DDL: ATOV_ITEM SQL: ATO_V_I Type: view

Item

ATOV_ITEM is a CDS View that provides data about "Item" in SAP S/4HANA. It reads from 1 data source (ato_items) and exposes 7 fields with key fields item_type, item_id. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ato_items Current_Item_Version from

Associations (3)

CardinalityTargetAliasCondition
[*] ATOV_TEXT_ADAPTATION_TYPE Adaptation_Type_Texts Adaptation_Type_Texts.code = Current_Item_Version.item_type
[*] ATOV_ITEM_VER Item_Versions Item_Versions.item_type = Current_Item_Version.item_type and Item_Versions.item_id = Current_Item_Version.item_id
[1] ATOV_ITEM_VER Latest_Item_Version Latest_Item_Version.item_type = Current_Item_Version.item_type and Latest_Item_Version.item_id = Current_Item_Version.item_id and Latest_Item_Version.is_latest_version = 'X'

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName ATO_V_I view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Item view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY item_type ato_items item_type Type
KEY item_id ato_items item_id Simulation Item ID
item_status ato_items item_status Transfer Status
changed_at ato_items last_notification Time Stamp
Item_Versions Item_Versions
Latest_Item_Version Latest_Item_Version
Adaptation_Type_Texts Adaptation_Type_Texts

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_ITEM.
-- 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_I

CREATE VIEW ATOV_ITEM AS
SELECT
  Current_Item_Version.item_type AS item_type,
  Current_Item_Version.item_id AS item_id,
  Current_Item_Version.item_status AS item_status,
  Current_Item_Version.last_notification AS changed_at,
  Item_Versions,
  Latest_Item_Version,
  Adaptation_Type_Texts
FROM ato_items AS Current_Item_Version
LEFT OUTER JOIN ATOV_TEXT_ADAPTATION_TYPE AS Adaptation_Type_Texts ON Adaptation_Type_Texts.code = Current_Item_Version.item_type  -- association [*]
LEFT OUTER JOIN ATOV_ITEM_VER AS Item_Versions ON Item_Versions.item_type = Current_Item_Version.item_type AND Item_Versions.item_id = Current_Item_Version.item_id  -- association [*]
LEFT OUTER JOIN ATOV_ITEM_VER AS Latest_Item_Version ON Latest_Item_Version.item_type = Current_Item_Version.item_type AND Latest_Item_Version.item_id = Current_Item_Version.item_id AND Latest_Item_Version.is_latest_version = 'X'  -- association [1]
;