Dec-2008 Sapscript - Output Program
Dec-2008 Sapscript - Output Program
Program
Dec-2008
Objectives
The participants will :
Analyze the Function Modules
OPEN_FORM , WRITE_FORM ,
CLOSE_FORM etc. used in the output
program to work with the SAPScripts.
Dec-2008
Dec-2008
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
OPEN_FORM .
WRITE_FORM .
CLOSE_FORM .
CONTROL_FORM .
READ_TEXT .
= ..
LANGUAGE
= ..
DEVICE
= ..
OPTIONS
= ..
DIALOG
= ..
APPLICATION = ..
IMPORTING
LANGUAGE
EXCEPTIONS
Dec-2008
= ..
..
Dec-2008
Dec-2008
= ..
TYPE
= ..
FUNCTION
= ..
WINDOW
= ..
EXCEPTIONS ..
Dec-2008
Dec-2008
OTHER window
SET = Delete old contents and output new text.
APPEND
= Append to preceding output.
DELETE
= Delete the specified text element.
Default is SET
Dec-2008
10
Dec-2008
11
* RESULT
* RDI_RESULT
* TABLES
* OTFDATA
* EXCEPTIONS
* UNOPENED
=1
* BAD_PAGEFORMAT_FOR_PRINT = 2
* SEND_ERROR
=3
* SPOOL_ERROR
=4
* CODEPAGE
=5
* OTHERS
= 6.
Dec-2008
12
13
EXPORTING
OBJECT = ..
NAME = ..
ID
= ..
LANGUAGE
= ..
IMPORTING
HEADER = ..
TABLES
LINES = ..
EXCEPTIONS
..
Dec-2008
14
Dec-2008
15
= Text ID invalid.
NAME
NOT_FOUND
= Language invalid.
= Text not found.
OBJECT
= Text object invalid.
REFERENCE_CHECK = Reference sequence interrupted.
Dec-2008
16
Demonstration
Creating an output program using
the SAPScript function modules
OPEN_FORM , WRITE_FORM ,
CLOSE_FORM.
Dec-2008
17
Practice
Creating an output program using
the SAPScript function modules
OPEN_FORM , WRITE_FORM ,
CLOSE_FORM.
Dec-2008
18
Summary
An output program is required to retrieve data to be
printed in SAPScript forms.
The general function-modules used in SAPScript
forms are : OPEN_FORM WRITE_FORM , CLOSE_FORM,
CONTROL_FORM , READ_TEXT.
The OPEN_FORM function-module opens the
SAPScript Form for Printing .
The WRITE_FORM function-module transfer the data
to the SAPScript Form.
A SAPScript must be closed before being able to
output the data on the screen or printer using the
function-module CLOSE_FORM.
Dec-2008
19
Questions
What is the purpose of the output
program ?
What is the function-module required
to transfer data to the SAPScript form
?
What is the use of the CLOSE_FORM
function-module ?
Dec-2008
20