SAP script is the SAP System's own text-handling system.It looks and closely resembles other driving text-handling frameworks.It is utilized to print preformatted text in pre-organized structures.
Parts of SAPScript
SAP Scripts includes five fundamental parts:A manager for entering and altering the lines of a textStyles and design sets for print format. These are made autonomous of the singular texts utilizing the relating support exchanges and are distributed to the texts laterThe writer is a focal result module. The SAP script writer is imperceptible to the outsideA programming point of interaction that permits you to incorporate SAP script parts into your own application programs and to control the result of design sets from inside the projectsA few data set tables for putting away texts, styles and design setsTo yield records utilizing the programming point of interaction, R/3 application programs need purported format sets (a sort of form).In SAP script a design set portrays the format of the singular print pages and uses text components to supply perceptible result blocks, which a print program might call.A design at any point set can be characterized as a page plan for a recordFormat set all alone contains no information. The choice of information for the report is finished through the print program. The print program chooses the information from data set table and feeds it to the design set. At the point when the print program is executed the report is imprinted on the screen, printer.
Typically a SAPScript Layout comprises of following parts
Header Data: Header information is utilized for data and control of SAP printing. The header information includes 2 sections - Device Independent - Stores data like Start page , Default passage ,Language Attributes and so forth. Also, Device Dependent stores data like Page design ,Orientation Lines per inch and so forthPassage and Character Formats: Paragraphs are designed utilizing different properties. For example Standard passage ascribes determine Left or Right edge, Alignment ,Line dispersing and so on. Textual style ascribes indicate Font family ,Font size and so forth. Character designs permit to organize whole blocks of text inside a sectionWindows and Text Elements: Windows are individual text regions (header address, date, footer) in a page . It helps consolidate the data contained in a report into specific gatherings and make each gathering show up on the printed page in an individual area.You can characterize text components (window texts) for every window. The print program gets to message components by name, designs them and prints them in the particular window. The section and the person designs utilized should be characterized in the structure.Pages: They are individual pages of a record and should have a one of a kind name. You will frequently track down various designs for individual pages: The principal page of a receipt contrasts from the resulting pages, on which you want not recurrent general data, like location or client information.Page Windows: While characterizing windows and pages, you don't yet decide the position and separating of the texts to be output.A page window characterizes the rectangular result region in the result medium by determining the left upper edge of the result region and its width and level
Control Commands
The reason for "control orders" is to permit control of the result formatting.These orders are not deciphered by the SAP script supervisor, however are gone through to the SAP script Composer for handling. This incorporates, for instance, line and page designing, the organizing of text as per the passage and character designs indicated.Grammar
Print Program
The execution of content is finished through an ABAP program, which is alluded as Print Program. Each print program ought to have an ENTRY structure , which will be called from customization.For a standard setup we can see the structure name (script name), print program name and result type in the table TNAPR.The print program utilizes the Form control capabilities to call the content.
The print program call either all or a portion of the structure control capabilities to execute the content
OPEN_FORM (Mandatory) Opens the design set yield
CLOSE_FORM (Mandatory) Ends the design set yield
START_FORM (Optional) Starts another format set
WRITE_FORM (Mandatory) Calls a design set component
END_FORM (Optional) Ends the ongoing format set
Yield Types
The result type can determine, a printed structure that you really want for interior use or a structure that you need to ship off a client or seller . The result type can likewise be an inner electronic mail message that you need to ship off staff in another division.For instance "Print out" can be delegated one result sort of a charging report, for example at the point when this result type is executed the charging record is printed. Correspondingly "Fax" can be a result type, for example at the point when this result type is executed a fax of the charging record is sentEvery one of the result types for any archive (for example charging record) will be put away in the table NAST.Output types are executed through the program RSNAST00 .
Model : Output type in a charging record
Go to VF03
Enter charging archive number and press enter once more
Picked Output under the menu Goto - > Header
Here Z101 is a result kind of a print yield
Standard Texts and Graphics
Standard Texts for your report can be made utilizing exchange SO10Designs and printer macros are transferred with report RSTXLDMC into individual standard text records or through exchange SE78. Illustrations are transferred in "Pattern TIFF 6.0" design (.tif documents on PC.SAP Script and Standard text components can traded or imported between two frameworks utilizing RSTXSCRP program
Replicating Scripts Across clients:
SAP Script is a client subordinate object.Unlike programs, changes done to SAP script in one client won't be reflected in different clients. For duplicating script starting with one client then onto the next, go to SE71 and use "Duplicate from Client" choice accessible under Utilities menu or import the vehicle demand, in which the content is saved, from the first client utilizing the exchange SCC1 .
Significant Points to Note
SAP script keeps up with no variants. So while altering the SAP script , guarantee that the progressions are legitimate in script. This applies to the standard texts as well.
The result of the structure will vary when seen on the screen and on the printer. So consistently test the result of the content on the printer.
Click Here For More Detail