Demo_Chess_V_Moves_Cds

DDL: DEMO_CHESS_V_MOVES_CDS SQL: DEMO_CHESS_SMCDS Type: view Package: SABAP_DEMOS_SQL_CHESS

Schachzüge

Demo_Chess_V_Moves_Cds is a CDS View that provides data about "Schachzüge" in SAP S/4HANA. It reads from 1 data source (demo_chess_moves) and exposes 13 fields. Part of development package SABAP_DEMOS_SQL_CHESS.

Data Sources (1)

SourceAliasJoin Type
demo_chess_moves demo_chess_moves from

Annotations (4)

NameValueLevelField
AbapCatalog.sqlViewName DEMO_CHESS_SMCDS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Schachzüge view

Fields (13)

KeyFieldSource TableSource FieldDescription
color demo_chess_moves color Level Color
chessman demo_chess_moves chessman Schachfigur
from_x demo_chess_moves from_x X-Position
from_y demo_chess_moves from_y Y-Position
to_x demo_chess_moves to_x X-Position
to_y demo_chess_moves to_y Y-Position
special_flag demo_chess_moves special_flag Special Flag
color_dep demo_chess_moves color_dep Color
chessman_dep demo_chess_moves chessman_dep Schachfigur
from_x_dep demo_chess_moves from_x_dep X-Position
from_y_dep demo_chess_moves from_y_dep Y-Position
to_x_dep demo_chess_moves to_x_dep X-Position
to_y_dep demo_chess_moves to_y_dep 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_Moves_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_SMCDS

CREATE VIEW Demo_Chess_V_Moves_Cds AS
SELECT
  demo_chess_moves.color AS color,
  demo_chess_moves.chessman AS chessman,
  demo_chess_moves.from_x AS from_x,
  demo_chess_moves.from_y AS from_y,
  demo_chess_moves.to_x AS to_x,
  demo_chess_moves.to_y AS to_y,
  demo_chess_moves.special_flag AS special_flag,
  demo_chess_moves.color_dep AS color_dep,
  demo_chess_moves.chessman_dep AS chessman_dep,
  demo_chess_moves.from_x_dep AS from_x_dep,
  demo_chess_moves.from_y_dep AS from_y_dep,
  demo_chess_moves.to_x_dep AS to_x_dep,
  demo_chess_moves.to_y_dep AS to_y_dep
FROM demo_chess_moves
;