Professional Documents
Culture Documents
March-2005
Objectives
The participants will be able to :
List the ABAP write statement
Writing Icons and Symbols List New-Page statement Maintaining page header
March-2005
<program title> 1 ----------------------------------------------------------------------------------******************** The date today is: 12/30/1996 The current time is: 12:32:06 ********************
March-2005
WRITE 10 ***** City of Philadelphia *****. SKIP 2. WRITE: 10 Ticket Date, SY-DATUM. WRITE: /10 Ticket Time, SY-UZEIT. ULINE /10(60). SKIP 2. WRITE 10 ***** Department of Public Safety *****. ***** City of Philadelphia ***** Ticket Date 01/01/1997 Ticket Time 18:01:00 ----------------------------------------------------***** Department of Public Safety *****
March-2005
WRITE 10 ***** City of Philadelphia *****. SKIP 2. WRITE: 10 Ticket Date, 25 SY-DATUM, /10 Ticket Time, SY-UZEIT UNDER SY-DATUM. ULINE /10(60). SKIP 2. WRITE 10 ***** Department of Public Safety *****.
***** City of Philadelphia ***** Ticket Date 01/01/1997 Ticket Time 18:01:00 -----------------------------------------------------------***** Department of Public Safety *****
March-2005
<value>
Program Field or Text Literal
<options>
Format Options
March-2005
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 Simple Output Statements | 3.03 March-2005
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.
March-2005
March-2005
Demonstration
Exploring ABAP Write statement with various options.
10
March-2005
Practice
Exploring ABAP Write statement with various options.
11
March-2005
12
March-2005
Demonstration
Creation of text symbols and using that in the write statement.
13
March-2005
Practice
Creation of text symbols and using that in the write statement.
14
March-2005
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
March-2005
Questions
What are the various options associated with the WRITE statement ?
16
March-2005