Demo_Chess_V_Stage1

DDL: DEMO_CHESS_V_STAGE1 SQL: DEMO_CHESS_SST1 Type: view

Principally allowed movements

Demo_Chess_V_Stage1 is a CDS View that provides data about "Principally allowed movements" in SAP S/4HANA. It reads from 4 data sources (Demo_Chess_V_Pos_Cds, Demo_Chess_V_Moves_Cds, Demo_Chess_V_Pos_Cds, Demo_Chess_V_Pos_Cds) and exposes 20 fields with key fields gameuuid, movecnt, color, chessman, from_x.

Data Sources (4)

SourceAliasJoin Type
Demo_Chess_V_Pos_Cds last_move left_outer
Demo_Chess_V_Moves_Cds moves inner
Demo_Chess_V_Pos_Cds source inner
Demo_Chess_V_Pos_Cds target_field left_outer

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName DEMO_CHESS_SST1 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Principally allowed movements view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY gameuuid Demo_Chess_V_Pos_Cds gameuuid UUID
KEY movecnt Demo_Chess_V_Pos_Cds movecnt Halbzugnummer
KEY color Demo_Chess_V_Pos_Cds color Level Color
KEY chessman Demo_Chess_V_Pos_Cds chessman Schachfigur
KEY from_x Demo_Chess_V_Pos_Cds x X-Position
KEY from_y Demo_Chess_V_Pos_Cds y Y-Position
KEY to_x Demo_Chess_V_Moves_Cds to_x X-Position
KEY to_y Demo_Chess_V_Moves_Cds to_y Y-Position
special_flag Demo_Chess_V_Moves_Cds special_flag Special Flag
color_dep Demo_Chess_V_Moves_Cds color_dep Color
chessman_dep Demo_Chess_V_Moves_Cds chessman_dep Schachfigur
from_x_dep Demo_Chess_V_Moves_Cds from_x_dep X-Position
from_y_dep Demo_Chess_V_Moves_Cds from_y_dep Y-Position
to_x_dep Demo_Chess_V_Moves_Cds to_x_dep X-Position
to_y_dep Demo_Chess_V_Moves_Cds to_y_dep Y-Position
last_color Demo_Chess_V_Pos_Cds color Level Color
last_from_x Demo_Chess_V_Pos_Cds before_x X-Position
last_from_y Demo_Chess_V_Pos_Cds before_y Y-Position
last_to_x Demo_Chess_V_Pos_Cds x X-Position
last_to_y Demo_Chess_V_Pos_Cds y Y-Position

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_Stage1.
-- 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_SST1

CREATE VIEW Demo_Chess_V_Stage1 AS
SELECT
  source.gameuuid AS gameuuid,
  source.movecnt AS movecnt,
  source.color AS color,
  source.chessman AS chessman,
  source.x AS from_x,
  source.y AS from_y,
  moves.to_x AS to_x,
  moves.to_y AS to_y,
  moves.special_flag AS special_flag,
  moves.color_dep AS color_dep,
  moves.chessman_dep AS chessman_dep,
  moves.from_x_dep AS from_x_dep,
  moves.from_y_dep AS from_y_dep,
  moves.to_x_dep AS to_x_dep,
  moves.to_y_dep AS to_y_dep,
  last_move.color AS last_color,
  last_move.before_x AS last_from_x,
  last_move.before_y AS last_from_y,
  last_move.x AS last_to_x,
  last_move.y AS last_to_y
INNER JOIN Demo_Chess_V_Pos_Cds AS source ON /* join condition not captured in parsed metadata */
INNER JOIN Demo_Chess_V_Moves_Cds AS moves ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Demo_Chess_V_Pos_Cds AS target_field ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN Demo_Chess_V_Pos_Cds AS last_move ON /* join condition not captured in parsed metadata */
;