Chapter 03 - Simple Output Statements
Chapter 03 - Simple Output Statements
Dec-2008
Objectives
The participants will be able to :
List the ABAP write statement
Writing Icons and Symbols
List New-Page statement
Maintaining page header
Dec-2008
<program title>
1
----------------------------------------------------------------------------------********************
The date today is: 12/30/1996 The current time is: 12:32:06
********************
Dec-2008
Dec-2008
Dec-2008
<value>
Program Field or
Text Literal
<options>
Format Options
Dec-2008
NEW-PAGE Statement
WRITE ***** City of Philadelphia *****.
SKIP.
WRITE: / Ticket Date, 15 SY-DATUM.
WRITE: / Ticket Time, 15 SY-UZEIT.
SKIP.
WRITE ***** Department of Public Safety *****.
NEW-PAGE.
WRITE: Comments:.
<program title>
1
-------------------------------------------------------------------------------------***** City of Philadelphia *****
Ticket Date 01/01/1997
Ticket Time 18:01:00
***** Department of Public Safety *****
<program title>
2
--------------------------------------------------------------------------------------Comments:
7
Dec-2008
INCLUDE <ICON>.
INCLUDE <SYMBOL>.
Or
TYPE-POOLS: icon.
TYPE-POOLS: sym.
WRITE: /10 ICON_DATE AS ICON, SY-DATUM,
SYM_LEFT_HAND AS SYMBOL.
Execute programs
SHOWICON and
SHOWSYMB to display
the systems icons and
symbols.
Dec-2008
Dec-2008
Demonstration
Exploring ABAP Write statement with various options.
10
Dec-2008
Practice
Exploring ABAP Write statement with various options.
11
Dec-2008
12
Dec-2008
Demonstration
Creation of text symbols and using that in the write statement.
13
Dec-2008
Practice
Creation of text symbols and using that in the write statement.
14
Dec-2008
Summary
The WRITE statement outputs the contents of a field or constant in a format
consistent with the data type.
The SKIP statement creates blank lines.
The NEW-PAGE statement starts a new page.
For writing Icon and Symbols in the report, TYPE-POOL ICON & SYM need to
be included in the program respectively.
Text elements can be maintained in multiple languages, so the display to the user
will depend on the users specified logon language.
15
Dec-2008
Questions
What are the various options associated with the WRITE statement ?
What does the NEW-PAGE statement do ?
16
Dec-2008