SlideShare a Scribd company logo
1 of 25
SAPScript Forms
Dec-2008 SAPScript 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.
Dec-2008 SAPScript Forms | 2
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.
Dec-2008 SAPScript Forms | 3
Transaction SE71
4 Dec-2008SAPScript Forms |
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
Transaction SE71 (Contd.)
5 Dec-2008SAPScript Forms |
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
Header Screen - Administrative Data
Dec-2008 SAPScript Forms | 6
 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.
Header Screen - Basic settings
Dec-2008 SAPScript Forms | 7
 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.
Pages
Dec-2008 SAPScript Forms | 8
 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.
Windows
Dec-2008 SAPScript Forms | 9
 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.
Paragraphs - Standard Attributes
Dec-2008 SAPScript Forms | 10
 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.
Paragraphs - Font Attributes
Dec-2008 SAPScript Forms | 11
 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.
Paragraphs - Tabs
Dec-2008 SAPScript Forms | 12
 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.
Paragraphs - Online Attributes
Dec-2008 SAPScript Forms | 13
 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.
Character Formats - Standard
Attributes
Dec-2008 SAPScript Forms | 14
 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.
Character Formats - Font
Attributes
Dec-2008 SAPScript Forms | 15
 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.
Page Windows
Dec-2008 SAPScript Forms | 16
 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.
Graphical Form Painter
Dec-2008 SAPScript Forms | 17
 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.
Adding code to the windows
Dec-2008 SAPScript Forms | 18
 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.
Adding code to the windows
(Contd.)
Dec-2008 SAPScript Forms | 19
 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
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
Dec-2008 SAPScript Forms | 20
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
Dec-2008 SAPScript Forms | 21
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 flightDec-2008 SAPScript Forms | 22
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 flightDec-2008 SAPScript Forms | 23
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 informationDec-2008 SAPScript Forms | 24
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 ?
Dec-2008 SAPScript Forms | 25

More Related Content

What's hot

ABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type GroupABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type Groupsapdocs. info
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programsicatalysts buddy
 
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdfSAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdfsubbulokam
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantAnkit Sharma
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answersUttam Agrawal
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modificationsscribid.download
 
Sap Abap Reports
Sap Abap ReportsSap Abap Reports
Sap Abap Reportsvbpc
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantAnkit Sharma
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)Imran M Arab
 
Call transaction method
Call transaction methodCall transaction method
Call transaction methodKranthi Kumar
 
Automatic vendor payment advice notes by mail
Automatic vendor payment advice notes by mailAutomatic vendor payment advice notes by mail
Automatic vendor payment advice notes by mailSURESH BABU MUCHINTHALA
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsHicham Khallouki
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP PerformancePeterHBrown
 

What's hot (20)

ABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type GroupABAP Message, Debugging, File Transfer and Type Group
ABAP Message, Debugging, File Transfer and Type Group
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
 
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdfSAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answers
 
Abap reports
Abap reportsAbap reports
Abap reports
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
 
Sap Abap Reports
Sap Abap ReportsSap Abap Reports
Sap Abap Reports
 
Field symbols
Field symbolsField symbols
Field symbols
 
Badis
Badis Badis
Badis
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
 
Module pool programming
Module pool programmingModule pool programming
Module pool programming
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
 
Automatic vendor payment advice notes by mail
Automatic vendor payment advice notes by mailAutomatic vendor payment advice notes by mail
Automatic vendor payment advice notes by mail
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
Maximizing SAP ABAP Performance
Maximizing SAP ABAP PerformanceMaximizing SAP ABAP Performance
Maximizing SAP ABAP Performance
 
Sap abap
Sap abapSap abap
Sap abap
 

Viewers also liked

Sap script made easy
Sap script made easySap script made easy
Sap script made easyKranthi Kumar
 
Lecture15 abap on line
Lecture15 abap on lineLecture15 abap on line
Lecture15 abap on lineMilind Patil
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsKranthi Kumar
 
Object oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPObject oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPNoman Mohamed Hanif
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksMilind Patil
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script formsKranthi Kumar
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and dataMilind Patil
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsSAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsGaruda Trainings
 

Viewers also liked (12)

Sap script made easy
Sap script made easySap script made easy
Sap script made easy
 
Lecture15 abap on line
Lecture15 abap on lineLecture15 abap on line
Lecture15 abap on line
 
Abap slide class3
Abap slide class3Abap slide class3
Abap slide class3
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
 
Object oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAPObject oriented approach to ALV Lists in ABAP
Object oriented approach to ALV Lists in ABAP
 
Abap slides set1
Abap slides set1Abap slides set1
Abap slides set1
 
Abap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checksAbap slide lock Enqueue data clusters auth checks
Abap slide lock Enqueue data clusters auth checks
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script forms
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and data
 
Sapscript
SapscriptSapscript
Sapscript
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsSAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
 

Similar to Chapter 02 sap script forms

How to develop_smart_forms_01
How to develop_smart_forms_01How to develop_smart_forms_01
How to develop_smart_forms_01Rafael Rocha
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configurationKranthi Kumar
 
How to improve user experience via roles
How to improve user experience via rolesHow to improve user experience via roles
How to improve user experience via rolesSiva Pradeep Bolisetti
 
Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...Kranthi Kumar
 
sap abap training in chennai
sap abap training in chennaisap abap training in chennai
sap abap training in chennaisanjai rsamy
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment ManagementVannak9
 
openSAP_plc1_Week_02_All_Slides.pdf
openSAP_plc1_Week_02_All_Slides.pdfopenSAP_plc1_Week_02_All_Slides.pdf
openSAP_plc1_Week_02_All_Slides.pdfManish Singh
 
AC200 Accounts Receivable And Payable Processing
AC200 Accounts Receivable And Payable ProcessingAC200 Accounts Receivable And Payable Processing
AC200 Accounts Receivable And Payable ProcessingMaria Perkins
 
Ags SAP Business One 9.3_SAP Basics and Administration
Ags SAP Business One 9.3_SAP Basics and AdministrationAgs SAP Business One 9.3_SAP Basics and Administration
Ags SAP Business One 9.3_SAP Basics and AdministrationAGSanePLDTCompany
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programmingSatheesh Kanna
 
Mho Web Dynpro Abap
Mho Web Dynpro AbapMho Web Dynpro Abap
Mho Web Dynpro Abapthomas_jung
 
How to become a visualization guru in Web Intelligence
How to become a visualization guru in Web IntelligenceHow to become a visualization guru in Web Intelligence
How to become a visualization guru in Web IntelligenceWiiisdom
 

Similar to Chapter 02 sap script forms (20)

How to develop_smart_forms_01
How to develop_smart_forms_01How to develop_smart_forms_01
How to develop_smart_forms_01
 
SAP Smart forms
SAP Smart formsSAP Smart forms
SAP Smart forms
 
Spool Admin
Spool AdminSpool Admin
Spool Admin
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configuration
 
12 Smartforms. .pptx
12 Smartforms.                     .pptx12 Smartforms.                     .pptx
12 Smartforms. .pptx
 
How to improve user experience via roles
How to improve user experience via rolesHow to improve user experience via roles
How to improve user experience via roles
 
Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...
 
sap abap training in chennai
sap abap training in chennaisap abap training in chennai
sap abap training in chennai
 
SAP AC020 - Investment Management
SAP AC020 - Investment ManagementSAP AC020 - Investment Management
SAP AC020 - Investment Management
 
Sap abap
Sap abapSap abap
Sap abap
 
CRM Service
CRM ServiceCRM Service
CRM Service
 
openSAP_plc1_Week_02_All_Slides.pdf
openSAP_plc1_Week_02_All_Slides.pdfopenSAP_plc1_Week_02_All_Slides.pdf
openSAP_plc1_Week_02_All_Slides.pdf
 
AC200 Accounts Receivable And Payable Processing
AC200 Accounts Receivable And Payable ProcessingAC200 Accounts Receivable And Payable Processing
AC200 Accounts Receivable And Payable Processing
 
Ags SAP Business One 9.3_SAP Basics and Administration
Ags SAP Business One 9.3_SAP Basics and AdministrationAgs SAP Business One 9.3_SAP Basics and Administration
Ags SAP Business One 9.3_SAP Basics and Administration
 
Murugan_Resume_1.8
Murugan_Resume_1.8Murugan_Resume_1.8
Murugan_Resume_1.8
 
006.report
006.report006.report
006.report
 
Ab1011 module pool programming
Ab1011   module pool programmingAb1011   module pool programming
Ab1011 module pool programming
 
Mho Web Dynpro Abap
Mho Web Dynpro AbapMho Web Dynpro Abap
Mho Web Dynpro Abap
 
How to become a visualization guru in Web Intelligence
How to become a visualization guru in Web IntelligenceHow to become a visualization guru in Web Intelligence
How to become a visualization guru in Web Intelligence
 
Rambabu_ABAP_Resume
Rambabu_ABAP_ResumeRambabu_ABAP_Resume
Rambabu_ABAP_Resume
 

More from Kranthi Kumar

Creating simple comp
Creating simple compCreating simple comp
Creating simple compKranthi Kumar
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programmingKranthi Kumar
 
Binding,context mapping,navigation exercise
Binding,context mapping,navigation exerciseBinding,context mapping,navigation exercise
Binding,context mapping,navigation exerciseKranthi Kumar
 
Web(abap introduction)
Web(abap introduction)Web(abap introduction)
Web(abap introduction)Kranthi Kumar
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output programKranthi Kumar
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONKranthi Kumar
 
Using folder options for page protection
Using folder options for page protectionUsing folder options for page protection
Using folder options for page protectionKranthi Kumar
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_devKranthi Kumar
 

More from Kranthi Kumar (20)

Exercise in alv
Exercise in alvExercise in alv
Exercise in alv
 
Dynamic binding
Dynamic bindingDynamic binding
Dynamic binding
 
Data binding
Data bindingData binding
Data binding
 
Creating simple comp
Creating simple compCreating simple comp
Creating simple comp
 
Creating messages
Creating messagesCreating messages
Creating messages
 
Creating a comp
Creating a compCreating a comp
Creating a comp
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programming
 
Context at design
Context at designContext at design
Context at design
 
Binding,context mapping,navigation exercise
Binding,context mapping,navigation exerciseBinding,context mapping,navigation exercise
Binding,context mapping,navigation exercise
 
Alv for web
Alv for webAlv for web
Alv for web
 
Web(abap introduction)
Web(abap introduction)Web(abap introduction)
Web(abap introduction)
 
Abap faq
Abap faqAbap faq
Abap faq
 
Crm technical
Crm technicalCrm technical
Crm technical
 
control techniques
control techniquescontrol techniques
control techniques
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output program
 
Batch input session
Batch input sessionBatch input session
Batch input session
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATION
 
Using folder options for page protection
Using folder options for page protectionUsing folder options for page protection
Using folder options for page protection
 
Business workflow
Business workflowBusiness workflow
Business workflow
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_dev
 

Chapter 02 sap script forms

  • 2. 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. Dec-2008 SAPScript Forms | 2
  • 3. 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. Dec-2008 SAPScript Forms | 3
  • 4. Transaction SE71 4 Dec-2008SAPScript Forms | 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
  • 5. Transaction SE71 (Contd.) 5 Dec-2008SAPScript Forms | 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
  • 6. Header Screen - Administrative Data Dec-2008 SAPScript Forms | 6  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.
  • 7. Header Screen - Basic settings Dec-2008 SAPScript Forms | 7  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.
  • 8. Pages Dec-2008 SAPScript Forms | 8  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.
  • 9. Windows Dec-2008 SAPScript Forms | 9  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.
  • 10. Paragraphs - Standard Attributes Dec-2008 SAPScript Forms | 10  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.
  • 11. Paragraphs - Font Attributes Dec-2008 SAPScript Forms | 11  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.
  • 12. Paragraphs - Tabs Dec-2008 SAPScript Forms | 12  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.
  • 13. Paragraphs - Online Attributes Dec-2008 SAPScript Forms | 13  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.
  • 14. Character Formats - Standard Attributes Dec-2008 SAPScript Forms | 14  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.
  • 15. Character Formats - Font Attributes Dec-2008 SAPScript Forms | 15  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.
  • 16. Page Windows Dec-2008 SAPScript Forms | 16  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.
  • 17. Graphical Form Painter Dec-2008 SAPScript Forms | 17  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.
  • 18. Adding code to the windows Dec-2008 SAPScript Forms | 18  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.
  • 19. Adding code to the windows (Contd.) Dec-2008 SAPScript Forms | 19  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
  • 20. 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 Dec-2008 SAPScript Forms | 20
  • 21. 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 Dec-2008 SAPScript Forms | 21
  • 22. 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 flightDec-2008 SAPScript Forms | 22
  • 23. 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 flightDec-2008 SAPScript Forms | 23
  • 24. 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 informationDec-2008 SAPScript Forms | 24
  • 25. 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 ? Dec-2008 SAPScript Forms | 25

Editor's Notes

  1. Facts about SAPScripts: 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.
  2. Transaction SE71 is used to maintain SAPScript forms. To create a new SAPScript form, type the name of the form (starts with ‘Y’ or ‘Z’) in the initial screen of SE71 and click the ‘Create’ button. To change an existing SAPScript Form, type the name of that form in the initial screen of SE71 and click the ‘Change’ button. To display an existing SAPScript Form , type the name of that form in the initial screen of SE71 and click the ‘Display’ button. As Sapscript form is client dependent, if a particular standard form does not exist in your working client then copy that form from client ‘000’.
  3. To copy a standard SAP form follow these steps- From the initial screen of SE71, go to ‘Utilities’ menu at the top of the screen. Choose ‘copy from client’ . Enter the name of the standard SAP form name in the first field. Leave the source client as ‘000’ and enter the name of the customized form in the third field. Click on the ‘execute’ Icon. Back out of the screens until the initial screen for transaction SE71 comes. Enter the name of the customized form in the ‘From’ field, ensure that the language is correct and click on the change button. Note : It is also possible to copy Sapscript form from different clients other than ‘000’.
  4. Header section of a Sapscript form contains two types of data. Administrative data Basic settings Administrative data: To display Header data give the form name in the initial screen of the form painter and choose the radio button under sub object heading. Then click create, display or change button. Administrative data is displayed by default. Under Administrative data Administration information and language attributes are displayed. Under Administration information form name, description, form status (Active or Inactive), Package name, client no, creation date, created by, last change date, last changed by, etc are displayed. Under Language attributes logon language, original language and language translation options are displayed.
  5. Basic settings: Click on the basic settings button to view the page setup options and other formatting options. One can also change those formats. Under basic settings, Set up page and Default values for Text formatting options are displayed. Under Set up page options page format(A4 etc.), Orientation( portrait or landscape), Lines per inch (Line/inch), Characters per inch (Characters/inch) and First Page are displayed. The Lines/inch and 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. One default paragraph should be mentioned at the form level.
  6. The form will always have a first page but does not need to have a ‘next’ page. If the output written to first page is longer than one page, it will be written into the next page(NEXT in this case). If the output could have more than two pages , then the field ‘Next page’ of NEXT can be filled with NEXT only, so that the NEXT page is used subsequently as needed, depending upon the length of the output. The ‘Mode’ field is for the page numbering mode of the form. This can be set to any one of INC,START & HOLD. Possible values are: INC – The number of the previous page will be incremented to be the number of the current page. START – The page number is reset to the initial value. HOLD – The previous page number is repeated. Generally INC is used. The ‘Numbering type’ determines the numbering style for the outline and page numbers. Possible values are: ARABIC – Arabic numerals. ROMAN – Roman numerals.
  7. This screen displays all the windows that are used in the SAPScript form. Each section of the SAPScript form is written in a window. Header Information can be printed in a header window. All the footer information can be printed in the footer window and so on. Window types are - MAIN – The main window of the form will be of this type.This type of windows are continuous. CONST – constant window, same shape and content on all the pages. VAR – variable window, can differ in shape and content on different pages. GRAPH - Grid screen. Note: Currently, CONST windows are processed in the same way as VAR windows. So we can only use windows of type VAR. The most important window is the main window. This will contain the most important information( e.g. the list output). 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. One page can contain only one MAIN window. The Default Paragraph field determines the font size,type etc. for the text that will be output in that window. If any other font is not chosen for that window, then the font properties of the default paragraph is applied to the text. This is not a mandatory field. If it is not specified , then the default paragraph for the whole document specified in the header section applies to this window.
  8. Paragraphs contain all necessary information needed to format a paragraph of text. This is where all the text styles are determined. The first column in this section of the screen displays the code for the paragraphs. The code is two characters long. The second column displays the descriptions of the paragraph formats. The third column displays the alignments of the corresponding paragraph formats. The possible alignments are left, right, center and block. All these details of the standard attributes can be changed at the bottom of the screen. Double clicking on a paragraph format will show the details of that paragraph in the standard attributes section at the bottom of the screen.
  9. 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.
  10. 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. If tabs are specified , then each item in line item will be placed underneath each other. This means that one don’t have to try to space fields using the space bar. Specifying a list of tabs is the way to create columns for outputting line items of a document. You specify the tab positions by number of characters from the left, but note that the system uses the value behind ‘Character/inch’ of the header to convert the number of characters into an absolute value. The font size does not matter for this conversion. Tabs can be entered as MM (Millimeters) , CM (Centimeters) , CH (Characters), IN (Inches), PT (Point) etc. and can also be LEFT , RIGHT , CENTER, DECIMAL, SIGN aligned.
  11. 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. See SAP’s online help for more information. To create new paragraph format, use the menu path Edit -> Create Element.
  12. A default character style is specified at the paragraph level. Character formats contain all necessary information needed to format a string of characters within a paragraph i.e. override the default settings for a few words within the paragraph . The first column in this section of the screen displays the code for the character formats. The code is two characters long. The second column displays the descriptions of the character formats. The 4th, 5th, 6th and 7th columns indicate whether character formats are protected, Hidden, Superscript or Subscript. All these details of the standard attributes can be changed at the bottom of the screen. Double clicking on a character format will show the details of that character format in the standard attributes section at the bottom of the screen. In this section, it is also possible to set SAP barcode with the character format. Different types of barcodes can be defined in SAPScript font maintenance and used, under these names, to define character strings in styles and forms.
  13. 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. To create new paragraph format, use the menu path Edit -> Create element.
  14. “Page windows” shows a list of all the windows on the page with coordinates 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. It only shows the windows defined for the first page. To see the windows defined for the next page, select the appropriate page and click the ‘Enter’ button. It is possible to jump from this list to the text elements of the windows. The attributes of the windows can be seen in the section at the bottom of the screen. Here the size of the window can be changed. An easier way to set the size of the windows is to do it in the graphical editor rather than doing it manually.
  15. An easier way to set the size of the windows is to do it in the graphical editor. First save and activate the program. The activate option is in the form menu at the top of the screen. Once the form has been activated back out of the screen until the initial SE71 screen is displayed. Then go to the Settings -> Form painter option. One pop-up window will come. Choose the graphical form painter option, click on the tick icon and then click on the page layout radio button and enter the program in change mode. This will display a page of the form with the windows laid out so that it is possible to tell if they overlap etc. 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. The fields on the left-hand side of the screen are automatically updated. Alternatively you can update the window size on the left-hand section of the screen and the graphical representation will update automatically when the ‘enter’ key has been clicked. To view the windows on a different page , type the name of the page in the page field in the top section on the left and hit the ‘enter’ key. To create a new window in the graphical editor- Go to the Edit menu at the top of the screen. Choose the menu path Windows -> Create -> Variables window . A new window is created at the top left-hand corner of the page.
  16. 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.
  17. Tag column: The column to the left of the editor is called the tag column. This is where the paragraph format tags are written to determine the output formatting of the text/field values. Text line column: Contains the actual content of the window.Here the actual code for the window is written. If you do not wish to use a paragraph format, you can use the standard paragraph tags which are listed below- * - Default paragraph format ; it is the paragraph entered into the windows page , or if this field was left blank it is the default paragraph entered into the header. /: - tag to indicate a command line ; This is used when anybody want to use a SAPScript statement such as PERFORM…ENDPERFORM etc. /* - tag to indicate a comment line. /E – Text Element.
  18. 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/upload to SAP System RSTXR3TR – To EXPORT/IMPORT layout set (FORM) using a Transport Request (CTS) RSTXSCRP – To EXPORT/IMPORT layout set (FORM), Style, Standard Text or Device Type without using a Transport Request
  19. 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