Ansicht
Dokumentation

ABENCDS_F1_GENERAL_SYNTAX_RULES - CDS F1 GENERAL SYNTAX RULES

ABENCDS_F1_GENERAL_SYNTAX_RULES - CDS F1 GENERAL SYNTAX RULES

Vendor Master (General Section)   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

CDS - General DDL Syntax Rules

The general syntax rules for the DDL of the CDS are:

  • Keywords
  • Keywords must be all uppercase, all lowercase, or in lowercase with an uppercase initial letter. Mixed uppercase and lowercase is not allowed.

  • Names
  • Names are not case-sensitive.

  • A name can have a maximum of 30 characters.

  • Literals
  • Number literals must always be specified in full and a decimal point (.) used as a decimal separator if necessary.

  • Character literals are enclosed in single quotations marks (').

  • Comments
  • Two forward slashes (//) introduce a comment, which continues until the end of the line.

  • Comments within lines or that span multiple lines are enclosed by the characters /* and */.

  • Separators
  • Statements can be closed using a semicolon (;). This is optional.

  • Protected Words
  • Certain keywords are protected and cannot be used as self-defined names.

Examples

  • SELECT, select, and Select are valid ways are specifying a keyword. seLect and SeLect, on the other hand, produce syntax errors.
  • MYVIEW, myview, and myView all identify the same operand.
  • 0.5 is a valid number literal, but .5 is not.





BAL Application Log Documentation   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 3225 Date: 20240420 Time: 120540     sap01-206 ( 26 ms )