Sunteți pe pagina 1din 25

IBM Global Services

SAPScript Forms

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

Objectives
The participants will :
Recognize SAPScript Forms
Classify different components of a SAPScript form like Header, Paragraph Windows, Page Windows, Pages, Character formats etc. Apply the Graphical Form Painter. Employ the SAPScript Editor. formats,

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

Transaction SE71

Copy from client

To create new SAP Script form or To create aa new SAPScript Form or to

Script form or to copy a standard SAP Script Form, transaction Form, SE71transaction is used. SE71 is used.
4 SAPScript Forms |

change/displayan an existing SAP change/display existing SAPScript

Form or to copy a standard SAPScript

Dec-2008

2005 IBM Corporation

IBM Global Services

Transaction SE71 (Contd.)

Copy from client

To create new SAP Script form or To create aa new SAPScript Form or to

Script form or to copy a standard SAP Script Form, transaction Form, SE71transaction is used. SE71 is used.
5 SAPScript Forms |

change/displayan an existing SAP change/display existing SAPScript

Form or to copy a standard SAPScript

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

10

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

11

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

12

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

13

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

14

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

15

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

16

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

17

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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 hardcoded texts and the variables to be printed in the window.

18

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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

19

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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

20

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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

21

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

22

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

23

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

24

SAPScript Forms |

Dec-2008

2005 IBM Corporation

IBM Global Services

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 ?

25

SAPScript Forms |

Dec-2008

2005 IBM Corporation

S-ar putea să vă placă și