SAP SCRIPT 1

OVERVIEW

To use layout sets efficiently, it is essential that you understand the interdependencies between the individual components of SAPscript. SAPscript comprises these five components:

• an editor for entering and editing the lines of a text. The application transactions automatically call this editor if the user decides to maintain texts that concern an application object.
• styles and layout sets for print layout. These are created independent of the individual texts using the corresponding maintenance transactions and are allocated to the texts later.
• the composer as central output module. Its task is to prepare a text for a certain output device by including the corresponding formatting information. This information comes from the style and layout set allocated to the text. The SAP script composer is invisible on the outside.
• a programming interface that allows you to include SAPscript components into your own application programs and to control the output of layout sets from within the programs.
• several database tables for storing texts, styles and layout sets.

In short, layout set maintenance means to allocate to a text document a layout set that contains the information on how to layout the text (formats, fonts, layout, and so on). The print program retrieves the required data from the layout set and from the database and controls the output. You use certain function modules to activate the SAPscript composer, which is responsible for processing the layout set.

Not every user of the SAP system works with every component of SAPscript. Depending on the task, a user is confronted with different components.

• Accounting clerks create texts concerning materials, orders, customers, vendors, and so on. They usually know only the SAPscript editor.
• Another user may be responsible for the print layout and will use the transactions for maintaining styles and layout sets.
• A developer who integrates SAPscript into his own applications or who wants to create print output using layout sets, sees SAPscript from the programming interface view point.
This documentation explains the basic principles of printing texts using layout sets. It describes in detail the interaction of layout set and print program and offers examples for better understanding.
Building on this basic knowledge, the documentation then describes the programming interface which allows you to integrate the word processing functionality offered by SAPscript into ABAP/4 programs. This interface is a collection of ABAP/4 function modules, different data structures, and control tables.

PRINTING TEXTS USING LAYOUT SETS

This documentation describes in detail the basic principles of printing texts using layout sets and the interactions of the different SAPscript components.

Structure of a layout set
Text elements of a layout set
Print programs
Window types
How the composer works
Layout set control
Output text lines and text elements

STRUCTURE OF LAYOUT SET

To output documents using the programming interface, R/3 application programs need so-called layout sets (a kind of form). In SAPscript a layout set describes the layout of the individual print pages and uses text elements to supply definable output blocks, which a print program can call. General application layout sets are orders, order acknowledgments, invoices, urging letters, and so on.
To create, display, and change SAPscript layout sets, you use a special maintenance transaction (Layout Set: Request). To call this transaction Layoutà Word processing àfrom the initial R/3 screen, choose Tools set (or call transaction SE71 directly). For more detailed information on maintaining layout sets, see the documentation Style and Layout Set Maintenance.
The figure below shows a simple example of an invoice layout set created using SAPscript. Each layout set consists of a start page and any number of subsequent pages, depending on the length of the letter text. In this example, the start page consists of an area for outputting the address, an information window containing reference data and the date, a window containing company-related data, and a main window for the actual letter text. This window for the letter text appears on the subsequent pages as well, and, in addition, a window for page numbering.
The window for the text body differs from the other windows. Whenever this window on one page is full, the remaining text is automatically output on the subsequent page. The window thus controls the page break. There can be only one window that triggers a page break. Such a window in SAPscript is called main window.




RELATED POSTS

SAP SCRIPTS PART 2

0 comments:

Post a Comment

Search for SAP ABAP,CRM,ERP topics here