Sapscript Forms
Sapscript Forms
Formularios básicos en R3
SAPscript: Benefits
Multilingual capability
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,
SAP AG 1999
Structuring Pages Using Windows
Pages
Windows
Elements for Structuring Texts
Turnaround Inc.
SAP AG 1999
145 Apple Valley Ln.
Ithaca, NY 14850
Type
Dear Sir or Madam,
Yours faithfully
...
SAP AG 1999
Transacción NACE
Programa de impresión (SE80)
Editor de formularios (SE71)
Elementos de texto
Formulario de oferta
Header data
Header data
Administrative data
Administration information
Language attributes
Basic settings
Set up page
SAP AG 1999
Header Data: Administrative Data
Administrative data
Basic Settings
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
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
SAP AG 1999
Text Symbols
SAP AG 1999
Program Symbols
KNA1
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
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
...
Form: RVINVOICE01
Window : FOOTER
...
SAP AG 1999
Formatting Addresses
Form
SAP AG 1999
Time, Date, and Decimal Format
Example :
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 BMP
SE78 import en el objeto,id que queremos
/nSE72
Extras > Output > Header > Edit
Save
/nsp01 (SPOOL)