Syntax Overview
From Abap2Java
(Redirected from Syntax overview)
[edit]
ABAP
- ABAP is not case sensitive.
- Each ABAP statement is finished with a period ".".
- Whitespace is sometimes needed (e.g. between operator and their operands).
- Character strings are included into single quotes (') or back quotes (`).
- Comments are indicated by a * at the first position of a line (entire line) or a " (rest of the line).
- Colon (:) and Comma (,) characters are used to build several statements from one. Colon must appear once, followed by one or more commas. The part on the left side of colon is factorized. Examples: DATA: A, B. is equivalent to DATA A. DATA B. CLEAR : A. is equivalent to CLEAR A.
[edit]
Java
- Java is case sensitive.
- Each Java statement is finished with a semicolon ";".
- Whitespace can be omitted
- Character strings are included into double quotes (").
- Comments are written between "/*" (start) and "*/" (end), or after "//" (rest of the line) ("/**" and "*/" are used by javadoc).
- Not possible to factorize several statements

