SAP Script: Printing Layout Set Output Program Configuration
SAP Script: Printing Layout Set Output Program Configuration
Chapter 1: Introduction
Chapter 2: Printing
Chapter 5: Configuration
• Examples of forms:
SD Inquiry PU Purchasing req.
Order confirmation Purchase order
Delivery note Contract
Invoice
FI Customer statement IM Goods receipt
Checks Goods issue
WM Picking list
Packing list
Labels
• SAP script is a tool that SAP provides for creating layout sets.
Creating Reports
Output
SAP
SAP Report
Program
Document
Document (ABAP)
Creating Forms
Output
SAP
SAP Program Layout set Form
Document
Document (ABAP)
Component Resource
• “How” - Medium
• Send time
– 1 Send with next selection run
• Batch printing using program RSNAST00
– 3 Explicit request
• On demand
– 4 Immediately
• After an update
• Processing status:
– 0 Not processed
– 1 Successfully processed
– 2 Incorrectly processed
– 3 Not active
Language specific
• Header
• Paragraphs
• Character strings
• Windows
• Pages
• Page windows
IMG
• Type of windows:
– Main - Special
– VAR - Variable
– CONST - Constant
• Special characters
– * Default paragraph
– /: Command line
– /* Comment line
– /E Text element
• ‘&&’ Variables
• Font
• Tabs
• Administrative info
• Default settings
Examples :
&VBDPR-MATNR+2(4)&
&VBDKL-BRGEW(I13)&
&’Currency : ’VBDKA-WAERK&
&’Case # &PREFIX&’VBDPR-BSTNK+2(8)’00’&
Example :
/: IF &VBRK-VKORG(2)& EQ ‘HG’.
/: DEFINE &PREFIX& = ‘Mr.’.
/: ELSE.
/: DEFINE &PREFIX& = ‘Mrs.’.
/: ENDIF.
.
/ &PREFIX&
Example :
/: CASE &VBDKL-VKORG(2)&
/: WHEN ‘HG’
/ Case # &‘934’VBDPL-SORTKRI&
/: WHEN OTHERS
/ Case # &‘999’VBDPL-SORTKRI&
/: ENDCASE
Syntax :
/: PROTECT
/: ENDPROTECT
Syntax :
DD Day
MM Month in figures
MMMM Month in words
YY Year (2 digits)
YYYY Year (4 digits)
HH Hours
MM Minutes
SS Seconds
Syntax :
Example :
• There are two different types of text handled in SAPscript. One is APPLICATION
TEXT and other one is STANDARD TEXT.
• TEXT ID
• Structure of Programs
Stand alone .
Transaction Triggered.
EXPORTING FORM = ..
LANGUAGE = ..
DEVICE = ..
OPTIONS = ..
DIALOG = ..
APPLICATION = ..
IMPORTING LANGUAGE = ..
EXCEPTIONS …..
• Parameters
• LANGUAGE defines the layout set
language version .
EXPORTING ELEMENT = ..
TYPE = ..
FUNCTION = ..
WINDOW = ..
EXCEPTIONS …..
• Parameters
• Explicitly specify ELEMENT and
WINDOW name to output data
from a specific ELEMENT.
• OTHER window
• SET = Delete old contents and output new text.
• APPEND = Append to preceding output.
• DELETE = Delete the specified text element.
• Default is SET
• Possible exceptions :
• Possible exceptions :
EXPORTING OBJECT = ..
NAME = ..
ID = ..
LANGUAGE = ..
IMPORTING HEADER = ..
TABLES LINES = ..
EXCEPTIONS …..
• Sources of data :
Document Header Item
SO VDBKA VBDPA
FORM EntryA FORM EntryB FORM EntryC • By using the “FORM Routine”
field you can indicate different
Internt’l = X Interco = X internal = X “entry point” to the printing
program.