ATOV_REWORK_TASK_BASE

DDL: ATOV_REWORK_TASK_BASE SQL: ATOV_RWK_T_B Type: view

Rework Task Basic View

ATOV_REWORK_TASK_BASE is a CDS View that provides data about "Rework Task Basic View" in SAP S/4HANA. It reads from 1 data source (ato_rework_task) and exposes 11 fields with key fields item_id, item_type, origin, task_id. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ato_rework_task Task from

Associations (4)

CardinalityTargetAliasCondition
[1] ATOV_DEPRECATION_TASK_OBJ_DESC msgv1 msgv1.object_type = Task.msgv1
[1] ATOV_DEPRECATION_TASK_OBJ_DESC msgv2 msgv2.object_type = Task.msgv2
[0..1] ATOV_DEPRECATION_TASK_OBJ_DESC msgv3 msgv3.object_type = Task.msgv3
[1] ATOV_DEPRECATION_TASK_OBJ_DESC msgv4 msgv4.object_type = Task.msgv4

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName ATOV_RWK_T_B view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Rework Task Basic View view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY item_id ato_rework_task item_id Simulation Item ID
KEY item_type ato_rework_task item_type Type
KEY origin ato_rework_task origin Task Origin
KEY task_id ato_rework_task task_id TaskID
msgid ato_rework_task msgid Message ID
msgno ato_rework_task msgno Message Number
msgv3endasMsgv3
priority ato_rework_task priority Workflow priority
category category Violation Category
updated_at updated_at Version Update Time
first_found first_found Time Stamp

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_REWORK_TASK_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: ATOV_RWK_T_B

CREATE VIEW ATOV_REWORK_TASK_BASE AS
SELECT
  Task.item_id AS item_id,
  Task.item_type AS item_type,
  Task.origin AS origin,
  Task.task_id AS task_id,
  Task.msgid AS msgid,
  Task.msgno AS msgno,
  case Task.origin when 'R' then coalesce ( msgv3.description, Task.msgv3 ) else Task.msgv3 end as Msgv3 AS msgv3endasMsgv3,
  Task.priority AS priority,
  category,
  updated_at,
  first_found
FROM ato_rework_task AS Task
LEFT OUTER JOIN ATOV_DEPRECATION_TASK_OBJ_DESC AS msgv1 ON msgv1.object_type = Task.msgv1  -- association [1]
LEFT OUTER JOIN ATOV_DEPRECATION_TASK_OBJ_DESC AS msgv2 ON msgv2.object_type = Task.msgv2  -- association [1]
LEFT OUTER JOIN ATOV_DEPRECATION_TASK_OBJ_DESC AS msgv3 ON msgv3.object_type = Task.msgv3  -- association [0..1]
LEFT OUTER JOIN ATOV_DEPRECATION_TASK_OBJ_DESC AS msgv4 ON msgv4.object_type = Task.msgv4  -- association [1]
;