Upload
kamal-al-merhebi
View
10
Download
0
Embed Size (px)
DESCRIPTION
SAP Script Forms
Citation preview
IBM Global Services
© 2005 IBM Corporation2 Dec-2008SAPScript Forms |
Objectives
The participants will : Recognize SAPScript Forms
Classify different components of a SAPScript form like Header, Paragraph formats, Windows, Page Windows, Pages, Character formats etc.
Apply the Graphical Form Painter.
Employ the SAPScript Editor.
IBM Global Services
© 2005 IBM Corporation3 Dec-2008SAPScript Forms |
Some facts about SAPScript Forms
Client specific (client-dependent)
Language specific
Can be translated using the standard SAP translation tools
Note: If the SAPScript form is not available in the client in which the document is being printed, then the SAPScript checks for the style or layout set in client 000.
Recommendation: Keep only one copy of the SAPScript form in client 000.
IBM Global Services
© 2005 IBM Corporation4 Dec-2008SAPScript Forms |
Transaction SE71
To create a new SAP Script form or change/display an existing SAP Script form or to copy a standard SAP Script Form, transaction SE71 is used.
To create a new SAPScript Form or to
change/display an existing SAPScript
Form or to copy a standard SAPScript
Form, transaction SE71 is used.
Copy from client
IBM Global Services
© 2005 IBM Corporation5 Dec-2008SAPScript Forms |
Transaction SE71 (Contd.)
To create a new SAP Script form or change/display an existing SAP Script form or to copy a standard SAP Script Form, transaction SE71 is used.
To create a new SAPScript Form or to
change/display an existing SAPScript
Form or to copy a standard SAPScript
Form, transaction SE71 is used.
Copy from client
IBM Global Services
© 2005 IBM Corporation6 Dec-2008SAPScript Forms |
Header Screen - Administrative Data Administrative data:
Under Administrative data, Administration information and language attributes are displayed. Under Administration information, form name, description, form status (Active/ Inactive), Package name, client no, creation date, created by, last change date, last changed by etc are displayed.
Under Language attributes, login language , original language and language translation options are displayed.
IBM Global Services
© 2005 IBM Corporation7 Dec-2008SAPScript Forms |
Header Screen - Basic settings
Basic settings:
Under Setup page options, page format(A4 etc.), Orientation, (Line/inch, Characters/inch) and First Page are displayed. The Lines/inch & Character/inch properties are not usually altered. Under Default values for Text formatting options default paragraph ,default tab size, default font family, default font size, etc are displayed.
IBM Global Services
© 2005 IBM Corporation8 Dec-2008SAPScript Forms |
Pages
This screen shows the details of all the pages in the form.
The form will always have a first page and may have a next page.
The ‘Mode’ is for the page numbering mode of the form. This can be set to any one of INC,START,HOLD.
The ‘Numbering type’ determines the numbering style for the outline and page numbers.
IBM Global Services
© 2005 IBM Corporation9 Dec-2008SAPScript Forms |
Windows
This screen displays all the windows that are used in the form.
Each section of the SAPScript form is written in a window.
Window types are MAIN,VAR,CONST,GRAPH.
All forms will have a MAIN window.If all the data does not fit into one page, printing will continue on the MAIN window of the next page.
IBM Global Services
© 2005 IBM Corporation10 Dec-2008SAPScript Forms |
Paragraphs - Standard Attributes
Contains all necessary information needed to format a paragraph of text.
The first column in this screen displays the code for the paragraphs.
The second column displays the descriptions.
The third column displays the alignments.
The fourth and fifth column displays the Left and Right margin.
Details can be changed at the bottom of the screen.
IBM Global Services
© 2005 IBM Corporation11 Dec-2008SAPScript Forms |
Paragraphs - Font Attributes
Clicking on the ‘Font’ button at the bottom right of the page will bring this screen.
The Font Attributes part enables one to choose the font and size of the paragraph.
One can also make the font bold, italic or underlined.
If no font is specified , then the default font from the layout set header will be used.
IBM Global Services
© 2005 IBM Corporation12 Dec-2008SAPScript Forms |
Paragraphs - Tabs
Clicking on the ‘Tabs’ button at the bottom right of the page will bring this screen.
The tabs section is very useful while outputting a table on the document.
Specifying a list of tabs is the way to create columns for outputting line items of a document.
Tabs can be entered as MM , CM , CH etc. and can also be LEFT , RIGHT , CENTER, DECIMAL, SIGN aligned.
IBM Global Services
© 2005 IBM Corporation13 Dec-2008SAPScript Forms |
Paragraphs - Online Attributes
Clicking on the ‘Outline’ button at the bottom right of the page will bring this screen.
The ‘Outline’ field is used to determine the hierarchy of the paragraph format.
In the ‘Outline level’ field, enter the level of the hierarchy that you want the paragraph format to be of.
IBM Global Services
© 2005 IBM Corporation14 Dec-2008SAPScript Forms |
Character Formats - Standard Attributes
A default character style is specified at the paragraph level.
Can be used within paragraph to override the default settings for a few words within the paragraph.
IBM Global Services
© 2005 IBM Corporation15 Dec-2008SAPScript Forms |
Character Formats - Font Attributes
Clicking on the ‘Font’ button will bring this screen.
Here one can enter the Font Family, Font Size, and characteristics such as bold, underlined etc.
If the ‘Family’ and ‘Font size’ fields are left blank then the character format takes the characteristic of the paragraph font that the text/code is written in.
IBM Global Services
© 2005 IBM Corporation16 Dec-2008SAPScript Forms |
Page Windows
List of all the windows for a particular page with coordinates.
The coordinates are given by the upper left-hand corner and the width and length.
A window which should appear on a page must first be defined under ”Windows” and then be added to the page windows.
To see the windows defined for the next page, select the appropriate page and click the ‘Enter’ button.
IBM Global Services
© 2005 IBM Corporation17 Dec-2008SAPScript Forms |
Graphical Form Painter
Use the menu path Settings -> Form painter to get the graphical form painter.
This will display a page of the form with the windows laid out.
When a particular window is selected, it becomes active in the graphical editor. Then it is possible to drag and drop the window or drag the window into the desired shape.
IBM Global Services
© 2005 IBM Corporation18 Dec-2008SAPScript Forms |
Adding code to the windows
To add code to a window double click on the window in the page window section.Then click on the Text Elements button or click F9.
There are two editors. Use the menu path Goto -> Change editor to change between them. The second editor is shown here.
A window can contain hard-coded texts and the variables to be printed in the window.
IBM Global Services
© 2005 IBM Corporation19 Dec-2008SAPScript Forms |
Adding code to the windows (Contd.)
Tag column: Specifies format of the text
Text line column: Contains the actual content of the window.
Standard Tags * Default paragraph
/: Command line /* Comment line /E Text element
IBM Global Services
© 2005 IBM Corporation20 Dec-2008SAPScript Forms |
SAP Script Utilities - Upload/Download
SAP Scripts are client-dependent objects. Hence, they may often require to be downloaded from or uploaded to SAP system. Following programs can be used to download from or upload to the SAP System
RSTXR3TR – To EXPORT/IMPORT a layout set (FORM) using a Transport Request (CTS)
RSTXSCRP – To EXPORT/IMPORT a layout set (FORM), Style, Standard Text or Device Type without using a Transport Request
IBM Global Services
© 2005 IBM Corporation21 Dec-2008SAPScript Forms |
SAP Script Utilities - Assignment of Standard text to CTS
Creation of a SAP Script Standard Text does not require a CTS
Standard Text can be assigned to a CTS using program RSTXTRAN
IBM Global Services
© 2005 IBM Corporation22 Dec-2008SAPScript Forms |
Demonstration
Creating a SAPScript using transaction SE71 to print a form containing flight booking confirmation for a customer.
Creating 4 windows the layout set in a single page: MAIN Window ( Containing Flight Booking Details )
Address Window ( Containing address of the customer )
Header Window ( Containing the date and the logo of the concerned airline )
Signature Window ( Containing the name of the flight booking officer )
Testing the Form using the menu path Utilities -> Printing Test in transaction SE71.
IBM Global Services
© 2005 IBM Corporation23 Dec-2008SAPScript Forms |
Practice
Creating a SAPScript using transaction SE71 to print a form containing flight booking confirmation for a customer.
Creating 4 windows the layout set in a single page: MAIN Window ( Containing Flight Booking Details )
Address Window ( Containing address of the customer )
Header Window ( Containing the date and the logo of the concerned airline )
Signature Window ( Containing the name of the flight booking officer )
Testing the Form using the menu path Utilities -> Printing Test in transaction SE71.
IBM Global Services
© 2005 IBM Corporation24 Dec-2008SAPScript Forms |
Summary
SAPScripts are client-dependant, language specific and can be translated using the standard SAP translation tools.
Custom SAPScripts can be created using transaction SE71. The name of the custom form starts with a ‘Y’ or ‘Z’.
A form can consist of multiple pages and a page can consist of multiple windows. There are four types of windows : MAIN, VAR, CONST and GRAPH. Paragraphs contain all necessary information needed to format a paragraph of
text. This is where all the text styles are determined. Character formats contain all necessary information needed to format a string of
characters within a paragraph. Page Windows contain a list of all the windows for a particular page with
coordinates. Code can be added to the windows to display content dynamically in the form. Programs RSTXR3TR and RSTXSCRP are used to upload or download
SAPScripts to or from the SAP system.
IBM Global Services
© 2005 IBM Corporation25 Dec-2008SAPScript Forms |
Questions
Are SAPScripts client-dependent or client independent ?
What are the different window types in a layout set ?
Where are text styles determined in a form ?
What is the menu path to start the graphical form painter ?
What program is used to export/import a layout set using a transport request ?
What program is used to export/import a layout set without using a transport request ?
How can standard text created in the SAP R/3 system be assigned to a CTS ?