SAP - Syntax CONVENTIONS



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN
• [ ABAP_CONVENTION
• ] ABAP_CONVENTION
• | ABAP_CONVENTION
• { ABAP_CONVENTION
• } ABAP_CONVENTION

ABAP Syntax Conventions
The ABAP keyword documentation documents use the following syntax conventions:
ABAP words are displayed in uppercase letters.
BEGIN_SECTION VERSION 5 OUT Example:

APPEND, NON-UNIQUE, INTO
END_SECTION VERSION 5 OUT
Operands are displayed in lowercase letters.
BEGIN_SECTION VERSION 5 OUT Example:

dobj, dbtab
END_SECTION VERSION 5 OUT
Parts of statements whose syntax diagrams are displayed elsewhere, are shown as pseudo syntax.
BEGIN_SECTION VERSION 5 OUT Example:

selscreen_options, list_options
END_SECTION VERSION 5 OUT
Periods, commas, colons, and parentheses are displayed as normal. They are part of the ABAP syntax.
BEGIN_SECTION VERSION 5 OUT Example:

. : <(>,<)> ()
END_SECTION VERSION 5 OUT
Operators are displayed as normal. They are part of the ABAP syntax.
BEGIN_SECTION VERSION 5 OUT Example:

+, -, *, /
END_SECTION VERSION 5 OUT
Parts of statements that are optional are displayed in italic square brackets $[ $]. A list of statement parts in such brackets means that some or all of the parts can be used. If at least one part has to be used, this is noted in the text. Square brackets [ ] that are part of the ABAP syntax are shown in the same color as all other language elements and are not shown in italics.
BEGIN_SECTION VERSION 5 OUT Example:

$[NO-GROUPING$] $[NO-SIGN$] $[NO-ZERO$]
END_SECTION VERSION 5 OUT
Italic vertical bars ($|) between parts of statements mean that only one of the listed parts can be used within a statement. A vertical bar like this always binds immediate neighbors. Vertical bars | that are part of the ABAP syntax are shown in the same color as all other language elements.
BEGIN_SECTION VERSION 5 OUT Example:

DDMMYY $| MMDDYY $| YYMMDD
END_SECTION VERSION 5 OUT
Italic curly brackets (${ $}) group together related parts of statements, for example those on the right or left of vertical bars. Curly brackets { } that are part of the ABAP syntax are shown in the same color as all other language elements and are not shown in italics.
BEGIN_SECTION VERSION 5 OUT Example:

${NO EDIT MASK$}$|${EDIT MASK mask$}
END_SECTION VERSION 5 OUT
A string of dots ... means that other parts of the statement can be included at this point.
BEGIN_SECTION VERSION 5 OUT Example:

... AS CHECKBOX
END_SECTION VERSION 5 OUT