|
The Syntax of ABAP/4 Programs |
|
|
|
|
Written by Anon.
|
|
Sunday, 21 January 2007 |
|
* Declaration of the program name REPORT Z1. * Displaying the words 'Customer list' on the screen WRITE / 'Customer list'.
* Using an addition of the write command WRITE AT /10 'Customer list'.
* Using single quotation marks within the text of a literal WRITE / 'Customer''s Name'.
* Here is a comment with an asterisk in the first column WRITE / 'Ms O''Connor'. "This is a comment at the end of the line
* A field of type character and length 40 DATA TARGET_STRING(40) TYPE C.
* Statements may extend over several lines * (e.g., copying fields using the move command): MOVE 'Source string' TO TARGET_STRING. WRITE / TARGET_STRING.
* Combining Statements WRITE: / 'Customer list', 'Bookings'. |