Demo_Chess_V_Game_Cds

DDL: DEMO_CHESS_V_GAME_CDS SQL: DEMO_CHESS_SGCDS Type: view Package: SABAP_DEMOS_SQL_CHESS

Chess Game

Demo_Chess_V_Game_Cds is a CDS View that provides data about "Chess Game" in SAP S/4HANA. It reads from 1 data source (demo_chess_game) and exposes 4 fields. It has 1 association to related views. Part of development package SABAP_DEMOS_SQL_CHESS.

Data Sources (1)

SourceAliasJoin Type
demo_chess_game demo_chess_game from

Associations (1)

CardinalityTargetAliasCondition
[*] Demo_Chess_V_Pos_Cds _to_pos _to_pos.gameuuid = $projection.gameuuid

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName DEMO_CHESS_SGCDS view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Chess Game view
AccessControl.authorizationCheck #NOT_ALLOWED view

Fields (4)

KeyFieldSource TableSource FieldDescription
gameuuid demo_chess_game gameuuid UUID
movecnt demo_chess_game movecnt Halbzugnummer
color demo_chess_game color Level Color
_to_pos _to_pos

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 Demo_Chess_V_Game_Cds.
-- 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: DEMO_CHESS_SGCDS

CREATE VIEW Demo_Chess_V_Game_Cds AS
SELECT
  demo_chess_game.gameuuid AS gameuuid,
  demo_chess_game.movecnt AS movecnt,
  demo_chess_game.color AS color
FROM demo_chess_game
LEFT OUTER JOIN Demo_Chess_V_Pos_Cds AS _to_pos ON _to_pos.gameuuid = gameuuid  -- association [*]
;