CNV_2010C_PACK_LOG_STATUS

DDL: CNV_2010C_PACK_LOG_STATUS SQL: CNV_2010C_PACK_V Type: view

Package activity status with phase text

CNV_2010C_PACK_LOG_STATUS is a CDS View that provides data about "Package activity status with phase text" in SAP S/4HANA. It reads from 4 data sources (cnvactive, cnvstate, cnvstate, cnvstate) and exposes 6 fields with key field packid. It has 2 associations to related views.

Data Sources (4)

SourceAliasJoin Type
cnvactive active_phase left_outer
cnvstate state_1 left_outer
cnvstate state_2 left_outer
cnvstate state_3 left_outer

Associations (2)

CardinalityTargetAliasCondition
[1..1] CNV_2010C_JOB_STATUS state_4 state_4.packid = state.packid
[1..1] CNV_2010C_DOMAIN_TEXT domain domain.dom_val = active_phase.phase and domain.dom = 'CNV_PHASE' and domain.langu = $session.system_language

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName CNV_2010C_PACK_V view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Package activity status with phase text view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #S view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY packid state packid Package
phase_text domain text User Group
error
warning
finished
abort

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 CNV_2010C_PACK_LOG_STATUS.
-- 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: CNV_2010C_PACK_V

CREATE VIEW CNV_2010C_PACK_LOG_STATUS AS
SELECT
  state.packid AS packid,
  domain.text AS phase_text,
  count(distinct state_1.state_log) AS error,
  count(distinct state_2.state_log) AS warning,
  count(distinct state_3.state_tec) AS finished,
  count(distinct state_4.abort_status) AS abort
LEFT OUTER JOIN cnvstate AS state_1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cnvstate AS state_2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cnvstate AS state_3 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cnvactive AS active_phase ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN CNV_2010C_JOB_STATUS AS state_4 ON state_4.packid = state.packid  -- association [1..1]
LEFT OUTER JOIN CNV_2010C_DOMAIN_TEXT AS domain ON domain.dom_val = active_phase.phase AND domain.dom = 'CNV_PHASE' AND domain.langu = $session.system_language  -- association [1..1]
;