Beruflich Dokumente
Kultur Dokumente
SAPScript
Replaces SAPScript
SAPScript will also be supported
Create forms in half the time
No programming knowledge required
XML output for Web
Graphical User Interface
3
Architecture
ABAP program
SQL statements
CALLS
Function module
Document
ACTIVATE
HEADER
ADDRESS
LOGO
INFO
MAIN
FOOTER
Database tables
SMART FORM
DATA RETRIEVAL
FORM LOGIC
Form Builder
Navigation tree
Maintenance Screen
Form Painter
7
Global settings
Form Attributes
General Attributes
Created by/date/time
Changed by/date/time
Development class/language
Output options
Page format, Chars per inch, lines per inch, Style
XSF output (XML output)
Form interface
[Data passed from ABAP program -> function module -> Smart form using these]
Import, Export, Tables, Exceptions parameters
Global definitions
[Global Data/Routine declaration for the form logic]
Global data, Types, Field symbols, Initialization, Form routines
8
10
Page definition
General attributes
Next page
Page counter
Format (Arabic numeral, Roman Caps, Roman Lowercase, Alphabets Caps, Alphabets Lowercase)
Mode (Initialize counter, Increase counter, Leave counter unchanged, Page and overall page unchanged)
Output options
Print attributes
Page format (Portrait, Landscape)
Resource name, Print mode
Background picture
Name, Object, ID & BMON(Black & White), BCOL (Color), BMON BCOL (Dynamically determined)
Output attributes
Resolution (in DPI)
Output mode (Print preview, Print preview and print)
Position
Horizontal (Left, Centered, Right)
Vertical (Top, Centered, Bottom)
11
Creating elements
Page - Creating more pages
Window - Creating windows in the
selected page
Graphic - Embedding graphic in the
selected page
Address - Including address in the
selected page given an address number or
person number
12
Window definition
General attributes
Main window (Tells whether this is a main window or not)
Output options
Position and size (Left margin, Upper margin, Width, Height)
Box and shading
Line (Width, Vertical spacing, horizontal spacing)
Shading (Gray value)
Always draw box and shading (Draw box and shading even if window is empty)
Conditions
Output conditions (Field name, Relational operator, Comparison value)
Additional event
Only on first page
Not on first page
only after end of main window
only before end of main window
only on page <pagename>
only at page break
only at paragraph beginning
only at paragraph end
13
Creating elements
Windows - Creating more windows in the
same page
Graphic - Embedding graphic in the
selected window
Address - Including address in the
selected window given an address number
or person number
Text - Text element/Text module/Include
text
Alternative - Branching depending on
condition
Command - Executes special commands
(next page, paragraph numbering, printer
control)
14
15
Navigation tree
Maintenance Screen
Form Painter
16
17
18
19
element
Enter a new text in PC Editor
Text modules
Include a text module
Include text
Include existing SAP Script text
Text node: [Positioning of the text in the form]
New paragraph
New line
Append directly
20
21
Field list
22
23
24
Additional event
Only on first page
Not on first page
only after end of main window
only before end of main window
only on page <pagename>
only at page break
only at paragraph beginning
only at paragraph end
Output attributes
Style
Page protection option
Box and shading
Line (Width, Vertical spacing, horizontal
spacing)
Shading (Gray value)
25
Graphic
Address
Text
Alternative
Command
Program lines
Folder
Loop
Table
Template
Complex section
26
Conditions
Output conditions (Field name, Relational operator,
Comparison value)
Additional event
Only on first page
27
28
Syntax check
Statement constructor
Pretty printer
29
30
31
32
33
34
35
36
37
38
39
Folder
Template
Table
Loop
Has
General attributes to define its type
Events
As with LOOP/TABLE
Output options
As with other node types
Conditions
As with other node types
40
41
In the data retrieval program define a variable of type rs281_fnam for the name
of the generated function module:
data fm_name type rs38l_fnam.
43
THANK YOU
44