Every
statement in ABAP starts with ABAP keyword and ends with a '.'.
If
your program is an executable, then the first non-comment line should be
'REPORT REPORT_NAME'. If your program is not executable, then the first non-comment
line should be 'PROGRAM PROGRAM_NAME'.
ZHELLO_WORLD
*&---------------------------------------------------------------------* *& Report zhello_world *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zhello_world. Write 'Hello World'.
Colon Notation
If
the statements are identical, then consecutive statements can be chained using
: notation.
Write
'Hello'.
Write
'Good'.
Write
'Morning'.
Above
statements can be chained like below.
Write:
'Hello', 'Good', 'Morning'.
ZHELLO_WORLD
*&---------------------------------------------------------------------* *& Report zhello_world *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zhello_world. Write: 'Hello', 'Good', 'Morning'.
No comments:
Post a Comment