Sap Scripts Tutorial: Se71, Se78, Scc1, Vf03, So10: Components of Sapscript
Sap Scripts Tutorial: Se71, Se78, Scc1, Vf03, So10: Components of Sapscript
Components of SAPScript
SAP Scripts comprises of five main components:
Layout Set
To output documents using the programming interface, R/3
application programs need so-called layout sets (a kind of form).In
SAP script a layout set describes the layout of the individual print
pages and uses text elements to supply definable output blocks,
which a print program can call.A layout set can be defined as a page
design for a document
Layout set on its own doesn't contain any data. The selection of data
for the document is done through the print program. The print
program selects the data from database table and feeds it to the
layout set. When the print program is executed the document is
printed on the screen, printer.
Control Commands
The purpose of "control commands" is to allow control of the output
formatting.These commands are not interpreted by the SAP script
editor, but are passed through to the SAP script Composer for
processing. This includes, for example, line and page formatting, the
formatting of text according to the paragraph and character formats
specified.
Syntax
Examples
Print Program
The execution of script is done through an ABAP program, which is
referred as Print Program. Each print program should have an ENTRY
form , which will be called from customization.
The print program call either all or some of the form control
functions to execute the script
Output Types
The output type can specify, a printed form that you need for
internal use or a form that you want to send to a customer or vendor
. The output type can also be an internal electronic mail message
that you want to send to staff in another department.
All the output types for any document (e.g. billing document) will be
stored in the table NAST.Output types are executed through the
program RSNAST00 .
1. Go to VF03
2. Enter billing document number and press enter again
3. Chose Output under the menu Goto -> Header
4. Here Z101 is an output type of a print output
Standard Texts and Graphics
Standard Texts for your report can be created using
transaction SO10