Sei sulla pagina 1di 4

FAQ SAPSCRIPT

---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
By Laxmichand 1
1.What is SAPscript & explain its purpose?
Ans. SAPscript is the SAP System's own text-processing system. You'll find that it looks and
feels a lot like other leading text-processing systems that you may use on your personal computer.
Every company needs to output documents with a uniformly defined layout (for example,
invoices, delivery notes,...) all the time.
These documents are often created automatically.
The basic layout of the document is pre-defined, but in many cases, other data has to be merged
with it, such as address data or purchase order items. This data might be entered manually by an
employee, or retrieved from a database table.
Large quantities of these documents have to be produced. Form printing is usually a matter of
large print runs of documents such as payslips, checks, order confirmations, reminders etc.
SAPscript has been developed to meet the above requirements. It is an integrated tool for text
entry and form printing in R/3 applications.
These documents are normally provided by SAP but every organization have their unique ways of
these documents so to customize these & for creating newer ones if required ; SAPscript is used.
2.What are components of SAPscript?
ANS. Layout set, SAPscript Text, ABAP Print Program, Symbols, Function modules like
Open_form, Read_text etc.
3.What is a Layout set?
The layout of a document is defined in a layout set.
A layout set specifies the appearance and structure of a document.
Layout sets contain predefined text modules with space reserved for variable data. You can use
these text modules for different applications.
Every SAPscript document uses a layout set.
To make changes to your documents, such as moving a piece of text, or changing fonts,
paragraph formats, and tabs, you only need to change the layout set.
4. What does the Composer do?
The final appearance of your document depends on interaction between the print program and the
layout set.
The SAPscript print program initializes the printing process. Every command entered using the
SAPscript programming interface is transferred to the composer.
The composer receives layout information from the layout set specified by the print program. The
documents are formatted according to this layout information.
FAQ SAPSCRIPT
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
By Laxmichand 2
If the documents contain variables, the composer replaces these variables with data from the R/3
system, such as the current date, or with the user data selected by the print program.
The print program controls the completion of the layout set. Once this is done, the composer
places the completed document in the spool.
5.What are the components of Layout set?
ANS. Header, Pages, Windows, Page Windows, Paragraph, Text Elements & Character Strings.
6.Where do we define Tab Space for data in SAPscript ?
Ans . When Defining the Paragraph for the text element we can define the TABS then. There is
parameter called TABS to be defined in Paragraph definition.
7.What is difference between Window & a Page Window?
Ans. WINDOW An area that is predefined in the layout set. Windows are text modules, which
are positioned on a document page.
We define the Window Type, Default Paragraph, specify the text elements or SAPscript Text to
be included etc in the WINDOW component.
PAGE WINDOW We define the parameters of the earlier defined WINDOW , appearance on
the document like left or right margins, Width & Height.
8.What are Symbols & state their different types with e.g?
A symbol is a constant, which can be inserted in a document.
It saves the user unnecessary work when replacing sections of text, phrases, etc.
Each symbol has a name which is enclosed by &.
e.g. &itab-carrid&
Types :
System symbols e.g &Date&, &Time& etc
Standard symbols: Standard symbols are user-defined. They are maintained centrally in table
TTDTG. e.g &SGDH& for the opening salutation: "Dear Sir/Madam:"
&MFG& for the closing salutation: "Yours faithfully"
Program symbols : Program symbols display data from the ABAP/4 program which has called
the word processing function. e.g itab-connid.
n
FAQ SAPSCRIPT
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
By Laxmichand 3
n Text symbols : You can define a text symbol for any text module. This symbol is valid only in
the text module for which you have defined it. E.g Define &symbol&=value.
9.How do we define Text Symbols ?
Ans. Using the Control Command DEFINE e. &x1& = 12.
10.State few Control Commands?
Ans.
Define Include
Protect . EndProtect If endif.
New-Page
10.What is purpose of Protect & End Protect ?
Ans. You can specify either in the style or in the layout set that a particular paragraph should not
be split in two by a page break. If the page protect attribute is set then the complete paragraph is
always output on a single page. This property applies only to that particular paragraph. SAPscript
provides the PROTECT .. ENDPROTECT command pair to allow you to define the areas to be
protected against a page break on an individual basis. Thus the PROTECT/ENDPROTECT
commands may be regarded as a kind of conditional NEW-PAGE command, the condition being
whether or not the lines enclosed between the two commands fit in the space remaining in
the current main window.
11.How do we set the date, time format ?
Ans .SET TIME MASK : controls the time field format
SET DATE MASK : controls the date field format
e.g /: Set Time Mask = HH:MM
FAQ SAPSCRIPT
---------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------
By Laxmichand 4
12.What is the role of an ABAP program in SAPscript?
retrieves R/3 application data from the database
defines the layout set processing logic (the order and repetition of text elements).
chooses a layout set for printing
selects the output device, such as printer, monitor, or fax
sets print attributes such as immediate output, number of copies, and pages to be printed

Potrebbero piacerti anche