P_SCLT_HEADER_STEP

DDL: P_SCLT_HEADER_STEP SQL: P_SCLT_HDRS_T_V Type: view Package: S_CLT_MODEL

CLT: Header steps for sessions

P_SCLT_HEADER_STEP is a CDS View that provides data about "CLT: Header steps for sessions" in SAP S/4HANA. It reads from 1 data source (sclt_trace_step) and exposes 10 fields with key fields TraceID, NodeID. It has 4 associations to related views. Part of development package S_CLT_MODEL.

Data Sources (1)

SourceAliasJoin Type
sclt_trace_step Step from

Associations (4)

CardinalityTargetAliasCondition
[1..1] P_SCLT_SESSION_DURATION _SessionDuration Step.trace_id = _SessionDuration.TraceID and Step.session_id = _SessionDuration.SessionID
[0..1] P_SCLT_SESSION_SEVERITY _Error $projection.TraceID = _Error.TraceID and $projection.NodeID = _Error.SessionID and _Error.Severity = 'E'
[0..1] P_SCLT_SESSION_SEVERITY _Warning $projection.TraceID = _Warning.TraceID and $projection.NodeID = _Warning.SessionID and _Warning.Severity = 'W'
[0..1] P_SCLT_SESSION_SEVERITY _Info $projection.TraceID = _Info.TraceID and $projection.NodeID = _Info.SessionID and _Info.Severity = 'I'

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName P_SCLT_HDRS_T_V view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label CLT: Header steps for sessions view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY TraceID trace_id Trace ID
KEY NodeID session_id Transaction ID
ParentNodeID
OrdinalNumber ordinal_number Ordinal Number
ParentOrdinalNumber parent_ordinal_number Ordinal Number
StepType step_type VSS Sol. Step Type
Description description Well Code Des.
Duration _SessionDuration TotalDuration
TraceIDisnotnullthenIelseendasSeverity
StartTime start_time 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 P_SCLT_HEADER_STEP.
-- 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: P_SCLT_HDRS_T_V

CREATE VIEW P_SCLT_HEADER_STEP AS
SELECT
  trace_id AS TraceID,
  session_id AS NodeID,
  '' AS ParentNodeID,
  ordinal_number AS OrdinalNumber,
  parent_ordinal_number AS ParentOrdinalNumber,
  step_type AS StepType,
  Description,
  _SessionDuration.TotalDuration AS Duration,
  case when _Error.TraceID is not null then 'E' when _Warning.TraceID is not null then 'W' when _Info.TraceID is not null then 'I' else '' end as Severity AS TraceIDisnotnullthenIelseendasSeverity,
  start_time AS StartTime
FROM sclt_trace_step AS Step
LEFT OUTER JOIN P_SCLT_SESSION_DURATION AS _SessionDuration ON Step.trace_id = _SessionDuration.TraceID AND Step.session_id = _SessionDuration.SessionID  -- association [1..1]
LEFT OUTER JOIN P_SCLT_SESSION_SEVERITY AS _Error ON TraceID = _Error.TraceID AND NodeID = _Error.SessionID AND _Error.Severity = 'E'  -- association [0..1]
LEFT OUTER JOIN P_SCLT_SESSION_SEVERITY AS _Warning ON TraceID = _Warning.TraceID AND NodeID = _Warning.SessionID AND _Warning.Severity = 'W'  -- association [0..1]
LEFT OUTER JOIN P_SCLT_SESSION_SEVERITY AS _Info ON TraceID = _Info.TraceID AND NodeID = _Info.SessionID AND _Info.Severity = 'I'  -- association [0..1]
;