P_CaseStatusText

DDL: P_CASESTATUSTEXT SQL: PCASESTATUSTEXT Type: view BASIC

P_CaseStatusText is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (scmgstatt) and exposes 4 fields with key fields Status, Language. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
scmgstatt scmgstatt from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language

Annotations (6)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCASESTATUSTEXT view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey Status view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY Status System Status
KEY Language langu Primary lang.
StatusName stat_para_descr Sys.Stat.Desc.
_Language _Language

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_CaseStatusText.
-- 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: PCASESTATUSTEXT

CREATE VIEW P_CaseStatusText AS
SELECT
  cast( stat_para as scmgstatpara ) AS Status,
  langu AS Language,
  stat_para_descr AS StatusName
FROM scmgstatt
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language  -- association [0..1]
;