Sapscript Forms
Formularios básicos en R3
SAPscript: Benefits
Multilingual capability
High performance when printing in large quantities
Uniform corporate design in documents
Word processing scalability
R/3 transport and translation connections
Platform independence
SAP AG 1999
SAPscript in the R/3 System
Material
management
Material Sales and
Management Distribution
MM
SD
Human
resources Production
management planning
HR SAPscript: Form printing PP
and text management
Controlling Customer
Financial Applications
CO ...
accounting
FI
SAP AG 1999
Example: Booking Confirmation
Fly &&Smile
Fly Smile Flight
11/22/99 Date Depart Price
45 Pears Road4
Zeppelinstr. -----------------------------------
Pittsburg,
10101 PA 19078
Fliegen LH 0400 12/29/99 6:07 398.80 USD
LH 0003 12/31/99 15:06 990.00 USD
Turnaround Inc.
145 Apple Valley Ln.
Ithaca, NY 14850 Yours faithfully
...
Dear Sir or Madam,
Thank you for your booking. We are
pleased to confirm the following
flights:
Flight Date Depart Price
-----------------------------------
AA 0017 11/24/99 13:15 799.00 USD
AZ 0790 11/30/99 6:55 1644.00 USD
AA 2017 12/21/99 21:55 799.00 USD Page 2
LH 0400 12/28/99 6:07 398.80 USD
Page 1
SAP AG 1999
Structuring Pages Using Windows
Pages
Windows
Elements for Structuring Texts
Fly & Smile 07/15/98
4 Truckee Way
Durango, CO 85650
Turnaround Inc.
SAP AG 1999
145 Apple Valley Ln.
Ithaca, NY 14850
Type
Dear Sir or Madam,
Thank you for your booking. We are pleased to
confirm the following flights:
Flight Date Depart Price Paragraphs
AA 0017 07/20/98 13:15 799.00 USD
AZ 0790 11/11/98 6:55 1644.00 USD
Yours faithfully
...
SAP AG 1999
Transacción NACE
Programa de impresión (SE80)
Editor de formularios (SE71)
Elementos de texto
Formulario de oferta
RVAOR01 (programa RVORDER01)
Settings > form painter
Header Data: Organization
Header data
Header data
Administrative data
Administration information
Language attributes
Basic settings
Set up page
Default values for text
formatting
SAP AG 1999
Header Data: Administrative Data
Administrative data
Administration info. Language attributes
Form (name) Language key
Description Original language
Status Translate
New - Not saved to all languages
Active to individual languages
Revised - Saved do not translate
...
Classification
Development class
Client number
Creation/
Change info
Date, Author,
Release
SAP AG 1999
Header Data: Basic Settings
Basic Settings
Set up page Spool Default values for
text formatting
Page format Tab stop
First page Font Font family
Orientation maintenance Font size
Portrait format Default paragraph
Landscape format Bold
Lines/inch Italic
Characters/inch Underlined
Spacing
Thickness
Form Intensity
definition
SAP AG 1999
Forms: Elements
Form
Page layout
Paragraph formats
Character formats
SAP AG 1999
Graphical Form Painter: Page Layout
Form ...
Page
WINDOW1*
FIRST Address page
WINDOW2*
Window Graphic
Window ADDRESS
Description Address
Main window Administrative window MAIN* Design window
Default paragraph
Left margin 1,60 CM
Upper margin 1,60 CM
Window width 9,00 CM
Window height 6,00 CM
Design / Text Options
SAP AG 1999
Other attributes
Special Characters
<NN>...</> Character string
,, Tab character
<(>...<)> Hidden special characters
&N...N& Symbol
Paragraph NN
New line /
Raw line (
Line feed + raw line /(
Default paragraph *
Comment line /*
Extended line =
Line feed with extended line /=
Command line /:
SAP AG 1999
Types of Symbols
System symbols
Standard symbols
Program symbols
Text symbols
SAP AG 1999
System Symbols
DATE Date
DAY Day
NAME_OF_DAY Name of day
MONTH Month
NAME_OF_MONTH Name of month
YEAR Year
TIME Time
HOURS Hours
MINUTES Minutes
SECONDS Seconds
PAGE Page number
NEXTPAGE Number of next page
DEVICE Output device
SPACE Blank space
ULINE Underline
VLINE Vertical line
SAP AG 1999
Standard Symbols
Table TTDTG
Symbols are user-defined
Symbols are language-dependent
Name: max. 22 characters
Value: max. 60 characters
SAP AG 1999
Text Symbols
Value is defined in the text module
DEFINE &symbol& = ’value’
Name: max. 32 characters
Value: max. 60 characters
SAP AG 1999
Program Symbols
KNA1
ABAP NAME1 Jane Smith
TABLES KNA1. PSTLZ 80801
DATA: COUNTRY LIKE ... ORT01 Capital City, CA
* Data selection
... STRAS 81 Third Ave
* Start of form printing
...
Form Jane Smith
81 Third Ave.
Capital City, CA 80801
USA
&KNA1 - NAME1&
&KNA1 - STRAS&
&KNA1 - PSTLZ&&KNA1 - ORT01&
&COUNTRY&
SAP AG 1999
Formatting Options
&SYMBOL&
&SYMBOL+4& Offset
&SYMBOL(5)& Length
&SYMBOL(I)& Suppress initial value
&SYMBOL(Z)& Suppress leading zeros
&SYMBOL(C)& Compress blank spaces
&SYMBOL(R)& Right-aligned output
&SYMBOL(S)& Suppress operators
&SYMBOL(*)& Dictionary length
&SYMBOL(8.2)& Decimal format
&’text1’SYMBOL’text2’& Text before and after
SAP AG 1999
Control Commands
/: INCLUDE
/: DEFINE
/: ADDRESS ... ENDADDRESS
/: PROTECT ... ENDPROTECT
/: NEW-PAGE
/: IF ... ENDIF
/: CASE ... ENDCASE
...
SAP AG 1999
Text Modules
Text name: ADRS_FOOTER
OBJECT: TEXT
ID: ADRS
XYZ Bank (Bank Number 699 700 99) 099 55555 SWIFT XYZ
Language: E DESM 699
Executive Board: T. H. Smith · S. T. Jones · C.A. Williams · S. K. Richardson
Invoice Letter
XYZ Bank (Bank Number 699 700 99) 099 55555 SWIFT XYZ XYZ Bank (Bank Number 699 700 99) 099 55555 SWIFT XYZ
DESM 699 Executive Board: T.H. Smith · S.T. Jones · C.A. DESM 699 Executive Board: T.H. Smith · S.T. Jones · C.A.
Williams · S.K. Richards Williams · S.K. Richards
SAP AG 1999
Including Text Modules
/ : INCLUDE ADRS_FOOTER OBJECT TEXT ID ADRS
...
Form: RVINVOICE01
Window : FOOTER
/ : INCLUDE &T001G-TXTFU& OBJECT TEXT ID ADRS
...
INCLUDE name [parameter]
parameter: - OBJECT /nSO10
- ID
- LANGUAGE
- PARAGRAPH
SAP AG 1999
Formatting Addresses
Form
Form routines for
formatting addresses
according to country
/: ADDRESS DELIVERY PARAGRAPH AD
/: NAME &KNA1-NAME1&
/: STREET &KNA1-STRAS&
/: POSTCODE &KNA1-PSTLZ&
/: CITY &KNA1-ORT01& Composer
/: COUNTRY &KNA1-LAND1&
/: FROMCOUNTRY ‘DE‘
/: ENDADDRESS Jane Smith
10 Jones Rd.
Butte, MT 80801
USA
International
postal standards
SAP AG 1999
Time, Date, and Decimal Format
/: SET TIME MASK = ’.........’
/: SET DATE MASK = ’........’
/: SET COUNTRY ’........’
Example :
/: SET TIME MASK = ’HH : MM’
/: SET DATE MASK = ’DD.MMMM YYYY’
/: SET COUNTRY ’US’
SAP AG 1999
Frames, Lines, and Shading
Window1
Form
Window1 [/ : POSITION WINDOW ]
[/ : SIZE WIDTH 2 CM HEIGHT +40 TW]
/ : BOX FRAME 10 TW
Window2
Window2
/ : BOX INTENSITY 10
Window3
Window3
/ : BOX HEIGHT 0 CM FRAME 20 TW
/ : BOX WIDTH 0 CM FRAME 20 TW
SAP AG 1999
Calling ABAP Subroutines
Form
/: PERFORM <form> IN PROGRAM <prog> IN_TAB
/: USING &invar1& structure ITCSY ABAP
/: USING &invar2& Dictionary
………. NAME VALUE
/: CHANGING &outvar1& invar1 ...
…….. invar2 ...
/: ENDPERFORM
REPORT <prog>.
FORM <form> TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
. . .
ENDFORM.
ABAP
report
SAP AG 1999
Impresión de imágenes
Upload de imágenes a R3
Subir TIF Baseline6 (modo texto obsoleto)
Programa RSTXLDMC (sube la imagen como texto estándar, consultable en
SO10)
Incluir en ventana como INCLUDE <NOMBRE> OBJECT TEXT ID <ID>
Subir BMP
SE78 import en el objeto,id que queremos
/nSE72
Extras > Output > Header > Edit
Save
/nsp01 (SPOOL)