You are on page 1of 87

SAP Script Technical Document

Getting Started with the SAPscript Editor SAPscript is the integrated text management system of the SAP R/3 System. You will find that it loo s and feels a lot li e other leading word!processing systems that you may use on your personal computer. SAPscript is tightly integrated into the SAP System. You will therefore "e using it for many different word!processing tas s all o#er the SAP System. This section explains how to start SAPscript and how to enter and format text. $nly the "asics of word!processing and formatting are co#ered here. %or help with more ad#anced tas s& see 'diting Documents and Pre#iewing and Printing SAPscript Documents.

(f your frontend operates under the 3)"it platform *indows +, or *indows -T ../& you can use the SAPscript PC editor . This *YS(*Y0 editor offers the common mouse functions 1drag 2 drop& cut 2 paste3. (n addition& you can execute the most important functions #ia push"uttons 1paragraph and character formats3. SAPscript Line Editor Starting SAPscript The SAPscript Text-Entry Screen Creating and Changing Documents Entering and Formatting Text Saving a Document De eting a Document

Page ! " o# $%

SAP Script Technical Document

Creating and Changing Documents &se (f the R/3 system does not automatically call the editor& you can also create and edit a document manually. Procedure 1. ). 4hoose Tools SAPscript Standard text. The dialog window Standard text5 Re6uest appears. 'nter the following5

Fie d Name

Enter The name of the document. You can use letters& num"ers& spaces& and any special characters other than 7 1asteris 3 and& 1comma3 in names. 'xample5 Report on Dayton Project

Text ID

(dentifies the application to which the document "elongs. 8ea#e the (D set to the default #alue ST for standard text. Standard texts are documents that are not specific to any SAP application& or system texts. The SAP applications ha#e their own text (D9s for application!specific documents.

Language

The language under which your document should "e stored in the SAP System. %or example& the system can contain 'nglish 1'3 and 0erman 1D3 #ersions of a document. The language ey is important only if your document is to "e translated. $therwise& you can lea#e it set to the default #alue& the language in which you are logged on.

1. 2. 'esu t

To create a new document& choose Standard text Create To edit an existing document& choose Standard text Change

You are now in the editor and can type in text& edit it& sa#e it& and so on.

Page ! ( o# $%

SAP Script Technical Document

Finding Documents 1. 2. 3. 4hoose Tools SAPscript Standard text. The dialog window Standard text: Request appears. 4hoose Standard text ind. The dialog window for finding standard texts appears. :se the floowing search criteria and wildcards5 Search criteria

Fie d

)ote

Text

Text name

Text (D

8anguage

This is a re6uired input field.

Short title

See also5 'ntering a Short Title

Author

4reation date

4reation release

8ast person who changed the document

4hange date

4hange release

*i dcards

Page ! + o# $%

SAP Script Technical Document


Character )ote Placeholder for any single character in the search string. 'xample5 (f you enter the search string m++er in the Author field& the result includes any fi#e!letter names that start with < and end with 'R. Search result5 <ayer& <eier& <oier& and so on.

Page ! , o# $%

SAP Script Technical Document

4haracter

-ote 0eneric placeholder for one or more characters in a search string. 'xamples5 (f you enter the search string m*r in the Author field& the search result contains any names "eginning with < and ending with R. Result5 <or& <oor& <eier& and so on. (f you enter the search string me* & the search result contains any names "eginning with <'.

..

4hoose !xecute. A list of the selected documents appears.

(f you do not ma e any other specifications except for the language 1for example& =D=3& the system searches for all text names.

Page ! - o# $%

SAP Script Technical Document

Saving a Document &se Sa#ing a document stores the document in the SAP data"ase& o#erwriting any pre#iously existing #ersion. Procedure (n the editor& choose Text Sa"e.

Documents are not automatically sa#ed. Therefore& it is a good idea to sa#e a long document periodically. (f you log off the SAP System "efore sa#ing a SAPscript document& the document is also lost.

You can also sa#e se#eral different #ersions of a document. 4hoose Text Sa"e as and enter the text name& the text (D& and the language.

Page ! . o# $%

SAP Script Technical Document

De eting Documents Procedure 1. 2. 3. .. 'esu t The document has "een deleted. 4hoose Tools SAPscript Standard text. The dialog window Standard text: Request appears. 'nter the name of the document you want to delete and choose Standard text Change. 4hoose Text Delete. 4hoose #ac$.

A deleted document cannot "e restored>

Page ! % o# $%

SAP Script Technical Document

Paragraph Formats De#inition You use a paragraph format to lay out the paragraphs of the text entered in the editor. &se (n the SAPscript editors& you can assign a paragraph format to each paragraph. ?owe#er& you define the attri"utes of the paragraph formats in the form and style. After the definition& you can assign the corresponding style or form to a standard text. (f you do not choose a form or style explicitly& the R/3 system assigned the default form SYST'<. %or more information& see the documentation Style and %orm <aintenance.. Structure You use a paragraph format to determine

the font& the font si@e& and the font style the outline attri"utes of the paragraphs the ta"s within the paragraph

/ntegration (f you want to format only a character string& "ut no entire paragraph& use the appropriate character format.

Page ! $ o# $%

SAP Script Technical Document

Character Formats De#inition You use character formats to lay out character strings within a text. &se (n the SAPscript editors& you can assign character formats to character strings. ?owe#er& you define the attri"utes of the character formats in the form and style.. %or more information& see the documentation Style and %orm <aintenance.. Structure You use a character format to determine

the font and the font si@e special attri"utes of characters& such as superscript or su"script

/ntegration (f you want to format an entire paragraph& use the appropriate paragraph format.

Page ! 0 o# $%

SAP Script Technical Document

/nserting Specia Characters &se You can insert non!typa"le characters into your document. All characters defined in the character set the R/3 system is using are a#aila"le to you. Procedure 1. ). 3. 4hoose Insert Character. Position the cursor on the desired character and choose Choose. 4hoose Continue.

(f your R/3 system is using the standard *estern 'uropean character set 1SAP (D num"er AA//3& then you can insert the currency sym"ol for the Bapanese Yen into your document e#en if it is not a#aila"le from your ey"oard.

Page ! "1 o# $%

SAP Script Technical Document

Entering a Short Tit e &se You can enter a short title for a document& which you can later use to find the document Procedure 1. 2. 3. 4hoose Tools SAPscript Standard text. The dialog window Standard text: Request appears. 4hoose Standard text ind. 'nter the corresponding short titlr and choose Continue.

%or more information on the search procedure& see %inding Documents.

Page ! "" o# $%

SAP Script Technical Document

Previewing and Printing Documents Previewing &se You can display a SAPscript document in formatted form on the screen while you are editing it. (n the print pre#iew& you can chec line feeds and page "rea s and. (f necessary& correct them "efore printing the document Prere2uisites The text is formatted according to the form and style selected. (ncludes and sym"ols are replaced in the pre#iew& and hypertext lin s are also acti#ated. Procedure 4hoose Text Print pre"ie%. Printing Documents Procedure 1. ). 3. 4hoose Text Print. The dialog window Print5 0eneral Standard Text Ctext nameD appears. 'nter the name of the printer to which you want to send the text and the num"er of copies. (n the field Page selection determine the pages you want to print. The parameters n and m sym"oli@e the page num"ers you select. Page se ection -o #alue N n&m n'm n' 'm .. 3utput 'ntire text Page n Pages n and m Pages n to m %rom page n to end of text %rom Ast page to page m

4hoose Print. The print command is confirmed "y a message.

Page ! "( o# $%

SAP Script Technical Document


You can also choose a fax machine as output de#ice.

The PC Editor &se You use the P4 editor to create and edit texts. These texts you can then print using forms 1for example& form letters3 or use for creating documents in the R/3 system 1for example& orders and material texts3. /ntegration The P4 editor is entirely downward compati"le. You can easily use any texts created with the line editor. The system con#erts the assigned styles and formats appropriately and pro#ides them as "efore. Prere2uisites P at#orm $n your frontend& either *indows-T ../ or *indows+, must "e installed as 3)!"it operating system. At present& other platforms are not supported. Contro Fi es You need se#eral 7.D88 and 7.$4E files. *hen you upload these 7.D88 and 7.$4E files& the SAP 0:( automatically installs this re6uired component. (n a dialog window& you can determine whether to automatically update this component. Functiona ity You can edit texts in the P4 editor as you would edit documents in any current word processing system. Among others& the P4 editor pro#ides the following functions5

4utting and pasting texts Directly assigning paragraph and character formats #ia push"uttons in the application tool"ar Displaying all applied paragraph and character formats *YS(*Y0& for example& "old face& Fustified text& different font si@es (nserting special text structures 1text elements& sym"ols& and commands3 (ntegrated syntax chec for the inserted commands to a#oid input errors

Page ! "+ o# $%

SAP Script Technical Document


Activities The R/3 system automatically calls the P4 editor in the corresponding application. To switch to the line editor& in the P4 editor choose Settings !ditor mode.

Page ! ", o# $%

SAP Script Technical Document

Editing Text To edit texts4 proceed as #o ows

Function

Procedure

<ar text

Geep the left mouse "utton pressen and drag the mouse o#er the text you want to mar .

4ut text

<ar the text. 4hoose !dit Selected area Cut.

4opy text

<ar the text. 4hoose !dit Selected area Cop(.

(nsert 1paste3 text

4hoose !dit Paste.

Display paragraph tags

4hoose ormat Paragraph on)o**.

4reate new paragraph

4hoose Continue.

Assign paragraph format

Position the cursor on the desired paragraph. 4hoose ormat Paragraph. Position the cursor on the num"er of the paragraph format and choose Continue. The paragraph format you select o#erwrites the pre#iously assigned format.

Set ta"

Set the ta" positions with the ta" ey of your ey"oard. The positions depend on the definitions in the assigned style or form. They are at once #isi"le.

Soft carriage return

4hoose Shi*t+Continue.

Assign character format

<ar the desired character string. 4hoose

Page ! "- o# $%

SAP Script Technical Document


ormat Character..Position the cursor on the num"er of the character format and choose Continue. The character format you select enhances the pre#iously assigned format.

Reset character formats

The system resets all character formats. <ar the formatted character string. 4hoose !dit Reset character *ormats.

Page ! ". o# $%

SAP Script Technical Document


/nc uding Texts &se You can include standard texts& texts of the online documentation& and hypertext modules into your document. You can include texts directly and "y reference. *hen including text directly& the text is inserted in the editor in formatted form. You can then edit it further. To include a text "y reference& use the (-48:D' statement. The system does not display the text in the editor. $nly if you print or pre#iew the text& does the system include the most up!to!date #ersion of the text. Procedure /nc uding Standard Text 1. ). 3. 4hoose Include Text Standard. The dialog window for including text appears. 'nter the text name& the text (D& and the language. To include the text directly& select !xpand immediatel(. 4hoose Continue.

/nc uding 3n ine Documentation 1. ). 3. 4hoose Include Text Documentation. The dialog window for including text appears. 'nter the text name& the text (D& and the language. To include the text directly& select !xpand immediatel(. 4hoose Continue.

/nc uding 5ypertext 6odu es 1. ). 3. 4hoose Include Text ,(pertext. The dialog window for including text appears. 'nter the text name& the text (D& and the language. To include the text directly& select !xpand immediatel(. 4hoose Continue.

Expanding Text /nc uded 7y 'e#erence A. 2. Select the (-48:D' command line. 4hoose !dit Selected area !xpand INCL-D!. The system includes the text directly.

After expanding the text& the reference no longer exists.

Page ! "% o# $%

SAP Script Technical Document

/nc uding Sym7o s &se You can use sym"ols to insert program and system data as well as existing texts into your document. SAPscript supports four types of sym"ols5

Text sym"ols Program sym"ols Standard sym"ols System sym"ols

/ntegration To include and change sym"ols& you can also use the function Insert command. (f you now the sym"ol names& you can enter them directly in the dialog window Create additional in*ormation. Functiona ity Text Sym7o s You define text sym"ols locally in your document. You use text sym"ols to define recurring terms or text fragments in your document. (n the document& you then use the defined sym"ol to insert the terms or text fragments at the desired places. Program Sym7o s The #alues of program sym"ols come from the ta"les of programs. You use either the print program needed to pro#ide the data for the SAPscript document to "e printed or data defined glo"ally in programs. The ta"les must exist in the AHAP Dictionary. Standard Sym7o s The standard sym"ols are maintained in the SAPscript ta"le TTDT0I they are glo"ally a#aila"le to all SAPscript documents. Standard sym"ols are language!dependent. The form processor replaces the sym"ol in the language you chose for the document. (f the sym"ol does not exist in this language& the system does not print the sym"ols.

The sym"ol 2S0D?2 contains the text =Dear <adam and Sir=.

Page ! "$ o# $%

SAP Script Technical Document

System Sym7o s System sym"ols come from glo"al system #aria"les. List o# system sym7o s

System sym7o

Description

DAT'

4urrent date

DAY

Day of current date

D'J(4'

$urput de#ice5 PR(-T'R& S4R''-& T'8'E& %AE

?$:RS

?ours of current time

<(-:T'S

<inutes of current time

<$-T?

<onth of current date

-A<'K$%K<$-T?

-ame of the month of current date

-'ETPA0'

-um"er of the next page

PA0'

Page num"er of a SAPscript text

S'4$-DS

Seconds of current time

SPA4'

Hlan character

T(<'

4urrent time

:8(-'

:nderscore

Page ! "0 o# $%

SAP Script Technical Document


J8(-' Jertical line

Y'AR

Year of current date

Activities You can insert the sym"ols anywhere in the text. *hen printing or displaying the print pre#iew of the document& the form processor replaces the sym"ol name with the current sym"ol #alue.

Page ! (1 o# $%

SAP Script Technical Document

/nserting Text Sym7o s Procedure /nserting a Text Sym7o 1. ). 3. .. 4hoose Insert S(m.ols Text. Place the cursor on the desired text sym"ol. 4hoose 4hoose. The system inserts the text sym"ol.

Editing the 8a ue o# a Text Sym7o 1. ). 3. .. ,. 4hoose Insert S(m.ols Text. 4hoose !dit "alue .ear.eiten. The dialog window /alue de*inition *or s(m.ol 0text s(m.ol1 appears. 'nter the appropriate #alue definition. 4hoose Continue. (n the dialog window Text s(m.ols the specified #alue appears after the name of the text sym"ol. 4hoose Continue.

De eting a Text Sym7o 8a ues 1. ). 3. 4hoose Insert S(m.ols Text. 4hoose Delete all "alues. The system deletes all defined #alues. 4hoose Continue.

&sing Formatting 3ptions #or Text Sym7o s 1. ). 3. .. ,. 4hoose Insert S(m.ols Text. 4hoose 2ptions. The dialog window ormatting options *or 0text s(m.ol1 appears. %ill in the fields. 4hoose Continue. 4hoose Continue. The system executes the selected formatting option.

Page ! (" o# $%

SAP Script Technical Document

/nserting Program Sym7o s 4hoose Insert S(m.ols Program s(m.ols. A. (f no program is selected& choose Append print program. The dialog window Append print program to *orm appears. 'nter the desired print program. 4hoose Cop(. ). 3. .. ,. Select a print program. 4hoose DDIC *ields or 3lo.al data. A list of the fields appears. Select the desired field. 4hoose Continue. The system inserts the program sym"ol.

Page ! (( o# $%

SAP Script Technical Document

/nserting Standard Sym7o s 1. 4hoose Insert S(m.ols Standard. The dialog window Standard Sym"ols in 8anguage ClanguageD appears. ). 3. .. Select the desired standard sym"ol. (f you want to use the formatting options for standard sym"ols& choose $ptions. %ill in the respecti#e fields and choose Continue. 4hoose 4hoose. The system inserts the standard sym"ol.

Page ! (+ o# $%

SAP Script Technical Document

/nserting System Sym7o s 1. 4hoose Insert S(m.ols System. The dialog window System Sym"ols5 Ta"les appears. ). 3. Select the desired ta"le. 4hoose 4hoose. The dialog window System Sym"ols5 %ields from Cta"leD appears. .. ,. L. Select the desired field. (f you want to use the formatting options for system sym"ols& choose $ptions. %ill in the fields and choose Continue. 4hoose 4hoose. The system inserts the field.

Page ! (, o# $%

SAP Script Technical Document

Starting the PC Editor 6anua y Procedure 1. 2. 3. 4. 'esu t The P4 editor starts. 4hoose Tools SAPscript Standard text. The dialog window Standard text5 Re6uests appears. 4hoose Settings P4 editor. The dialog window SAPscript!'ditor5 Settings appear. (f the line editor is mar ed& unmar it. 4hoose Continue. 'nter a text name. 4hoose Standard text 4reate.

Page ! (- o# $%

SAP Script Technical Document

Creating Additiona /n#ormation &se Additional information consists of sym"ols& control commands& text elements& comments& SAP characters and lin s. The P4 editor displays them in a different color and read!only. Procedure Creating Additiona /n#ormation 1. ). 4hoose !dit Insert command. The dialog window Create additional in*ormation appears. Select the desired additional information.

"9 Sym7o s 'nter the sym"ol name of a text sym"ol& a program sym"ol& a standard sym"ol& or a system sym"ol in the form 2sym"olname2 . %or more information& see (ncluding Sym"ols and SAPscript Sym"ols. (9 Command 'nter the command name in the form 2commandname2 . %or more information& see SAPscript 4ontrol Statements. +9 Text e ement 'nter the name of the text element. %or more information& see Text 'lements. ,9 Comment 'nter the desired comment. -9 SAP character 'nter the num"er of the SAP character. .9 Lin: 'nter the character format& the ey& and the text of the lin . 3. 4hoose Continue. The system includes the additional information in the P4 editor. Changing Additiona /n#ormation A. 2. 3. .. Dou"le!clic on the additional information in the P4 editor to select it. 4hoose !dit Change command. The dialog window Change additional in*ormation appears. 4hange the additional information. 4hoose Continue.

Page ! (. o# $%

SAP Script Technical Document

De eting Additiona /n#ormation A. 2. Dou"le!clic on the additional information in the P4 editor to select it. 4hoose !dit Delete command. The additional information is deleted.

Page ! (% o# $%

SAP Script Technical Document

&sing C ip7oards You can use four types of clip"oards for cutting and copying text. The SAPscript C ip7oard &se :se the SAPscript clip"oard for copying text within or "etween SAPscript documents. Prere2uisites You can use the SAPscript clip"oard only within one R/3 system and one client. Procedure 1. 2. To mar the text& choose !dit Select. To copy to and from the clip"oard& choose !dit Selected area Cop( or !dit Selected area Cut& and !dit Paste.

SAPscript &ser C ip7oards &se :se the SAPscript user clip"oards to copy =permanent= text areas. The =permanent text= is ept in the clip"oard until you o#erwrite it& e#en if you log off or restart the R/3 system. Prere2uisites You can use the SAPscript user clip"oards only within one R/3 system and one client. Procedure 1. 2. 3. 4. 4hoose !dit Select to mar the text. 4hoose !dit Selected area Cop( to user clip.oard Select one of the fi#e a#aila"le clip"oards. To insert the text& choose Insert Clip.oard -ser clip.oard and select the appropriate clip"oard.

You can edit the contents of the SAPscript user clip"oards. 4hoose 3oto -ser clip.oard to open a normal SAPscript text entry session for the contents of one of the clip"oards. A;AP Editor C ip7oards &se

Page ! ($ o# $%

SAP Script Technical Document


You use the AHAP editor clip"oards for copying "loc s of text from the AHAP editor to the line editor.

Prere2uisites You can use the clip"oards of the AHAP editor only in one R/3 system and one client. Procedure A. To mar text in the AHAP editor& use the line commands EE& YY& or MM. 'ach command writes to a different clip"oard. (t must "e used in pairs& for example& EE Ctext to mar D EE. 2. To insert the text in the line editor& choose Insert

Page ! (0 o# $%

SAP Script Technical Document

Finding and 'ep acing &se You can find and replace words and character strings in the P4 editor. Prere2uisites This function affects the text located "etween the cursor position and the "eginning or end of the text& depending on the search direction you choose. Procedure Finding Text 1. ). 3. 4hoose !dit ind. 'nter the desired search term and select the appropriate options. 4hoose ind. (f the search term exists in the text& the system positions the curson on it.

Finding and 'ep acing Text 1. ). 3. .. 4hoose !dit Replace. 'nter the search term and the replacement term and select the desired options. 4hoose Replace all. (f the search term exists in the text& the system replaces it throughout the text "y the replacement term. 4hoose Replace. Select the desired option.

De eting *ords and Character Strings &sing a Search Term 1. ). 3. 4hoose !dit Replace. 'nter the search term and select the appropriate options. 4hoose Replace all. The system deletes the search term throughout the text.

Page ! +1 o# $%

SAP Script Technical Document

Setting a Page ;rea: 6anua y &se (f you insert a page "rea & the page layout of the new page is determined "y the form& which may contain se#eral different page layouts. 'nter the name of the desired page layout after the -'*!PA0' statement. 4hoose ormat Page to display a page layouts a#aila"le. Procedure 1. ). 3. 4hoose !dit Insert command. The dialog "ox for entering additional information appears. 'nter -'*!PA0' or -'*!PA0' Cpage layoutD. 4hoose Continue.

The form you use for your document defines a page layout called -'*! S'4T($-. The following command then starts a new page in your document. The page is laid out according to the design specified in the form under -'*!S'4T($-. -'*!PA0' -'*!S'4T($%or more information& see 'xplicit Page Hrea 5 -'*!PA0'.

Exp icit Page ;rea:< )E*-PAGE SAPscript automatically inserts a page "rea when the main window of a page 1<A(-3 is full. You can use the -'*!PA0' command to force a page "rea in the text at any point you want one. The text following this command then appears on a new page. The page "rea is always performed 1it is an unconditional page "rea 3. The -'*!PA0' command completes the current page. This means that all the windows that are still on the page are printed immediately. (f you use the -'*!PA0' command without parameters& the page defined in the current form as the next page will "e ta en next. (f& howe#er& your form contains a num"er of different pages& then you can specify any one of these as the next page to "e used. Syntax5 /: NEW-PAGE [page_name]

/: NEW-PAGE The current page will "e completed and the text in the following lines will "e written to the page specified in the form.

Page ! +" o# $%

SAP Script Technical Document

/: NEW-PAGE S1 As a"o#e& except that the page SA will "e ta en as the next page.

o o

(f& in a -'*!PA0' command& you specify a page not contained in the form& the specification is ignored. Ta e care that there are no "lan lines immediately "efore a -'*!PA0' command. (f an implicit page "rea occurs within the "lan lines& an unexpected "lan page may "e printed.

Page ! +( o# $%

SAP Script Technical Document

)um7ering and 6ar:ing 5eadings and Paragraphs &se You can num"er the headings and other paragraph types in your text or mar them in another way. You can create a numerical hierarchy of your paragraphs and& for example& categori@e your headings as le#el A& )& and 3 and num"er them as follows5 AI A.AI A.A.AI A.) and so on. Functiona ity You ha#e these outline options5

8etters Digits %ixed characters& such as 7& o& N& !& and so on.

Digits can "e Roman or Ara"icI letters can "e uppercase or lowercase. You determine the outline options for a certain paragraph format. SAPscript then automatically num"ers the paragraphs consecuti#ely or inserts the set fixed characters in front of the paragraphs. %ixed characters can consist of se#eral characters and contain right or left delimiters. *hen chaining se#eral num"ered paragraphs 1for example of different le#els3& SAPscript uses a period to separate the paragraph le#el num"ers.

Delimiter5 a3 ! 1a3 ! a. O 4haining5 A.A ! A.A.A ! A.) ! A.).A... The outline functions in the P4 editor are displayed only in print pre#iew or when actually printing. Activities 'esetting the )um7ering 1. ). 3. 4hoose !dit Insert command. The dialog window for inserting additional information appears. 'nter the statement R'S'T Cparagraph formatD. 4hoose Continue. Resetting Paragraph -um"ering.

%or more information& see

Page ! ++ o# $%

SAP Script Technical Document

/nitia i=ing )um7ered Paragraphs< 'ESET To reset the num"ering of an outline paragraph to its initial #alue& use the R'S'T control command. (f you do not use the R'S'T command& then the num"ering of all outline paragraphs in a text is continuous. (f you specify the name of an outline paragraph in the R'S'T command& then its paragraph num"ering and that of su"ordinate paragraphs is reinitiali@ed. Syntax5 /: RESET paragrap _!ormat The paragraph format specifies the outline paragraph to "e reset.

Assume that the paragraph -A is defined in the style you are using. This ind of paragraph is intended for enumerated lists and causes a se6uential num"er to "e printed. * Proceed as follows if you want to work with the SAP R/ syste!: N1 Ensure that you ha"e a P# N1 Switch the P# on N1 #lick on the SAP icon usin$ the !ouse% * &ou will then enter the SAP lo$on screen% 'n order to lo$ on here( you !ust carry out the followin$ actions: /: RESE) N1 N1 Enter your user na!e N1 Enter your *assword N1 Select the a**lication you want to use This text specification would "e output as follows5 Proceed as follows if you want to wor with the SAP R/3 system5 A. ). 3. 'nsure that you ha#e a P4 Switch the P4 on 4lic on the SAP icon using the mouse.

You will then enter the SAP logon screen. (n order to log on here& you must carry out the following actions5 A. ). 3. 'nter your user name 'nter your password Select the application you want to use

(f there is no R'S'T command "etween the two sections& then the two lists would "e num"ered in a single se6uence5 Proceed as follows if you want to wor with the SAP R/3 system5
Page ! +, o# $%

SAP Script Technical Document


A. ). 3. 'nsure that you ha#e a P4 Switch the P4 on 4lic on the SAP icon using the mouse. You will then enter the SAP logon screen. (n order to log on here& you must carry out the following actions5 .. ,. L. 'nter your user name 'nter your password Select the application you want to use

Page ! +- o# $%

SAP Script Technical Document

Ta7s and Ta7 es Setting Ta7s Define the ta" positions within a paragraph in the paragraph format definition in the style or form you are using. (f the paragraph format does not define any ta"s& then the ta" positions defined in the dialog "ox Change *orm header under #asic settings are used. Creating Ta7 es A. Select one of the predefined paragraph formats for ta"les& if a#aila"le& in your style or form. Since ta"les in SAPscript are laid out using ta"s& a paragraph format for a ta"le usually defines the correct ta" settings for the ta"le. 'nter and format the ta"le header. 1Your style or form may pro#ide a special paragraph format for the header& which already includes any special formatting.3 'nter and format the text for the ta"le columns. You must ensure that the text for each column fits into the column. 'nter one or more ta"s to separate the text of one column from that of the next. :se the ta" ey on your ey"oard. 4hoose Text Print Pre"ie% to chec whether you ha#e correctly laid out the text for the ta"le.

). 3. 4.

Page ! +. o# $%

SAP Script Technical Document

The Line Editor &se You use the line editor to create and edit texts. You need these texts when printing forms 1for example& form letters3 or when creating documents in the R/3 system 1for example& orders and meterial texts3. /ntegration You can easily use texts created with the P4 editor. The system con#erts the assigned formats and styles appropriately and pro#ides them as "efore. Activities To switch to the P4 editor& choose 3oto !ditor mode.

Page ! +% o# $%

SAP Script Technical Document

Line Editor Screen Helow you see the text!entry screen of the SAPscript line editor. The most important areas are5

The format column& at the left of the editing area. (n this column& you can specify paragraph formats and acti#ate special types of formatting& such as interpretating SAPscript commands.

(nput lines for entering your text.

Page ! +$ o# $%

SAP Script Technical Document

Entering Text Prere2uisites (f the cursor stic s at the end of a line instead of Fumping to the next line A. ). 4lic the SAP3-I options sym"ol at the upper right corner of your SAP screen and choose 2ptions. (n the Cursor ta"le& mar Automatic ta. at *ield end.

Procedure 'nter your text continuously into the text lines of the line editor. At the end of a line& the cursor automatically Fumps to the "eginning of the next line. (f you press '-T'R & or control returns to SAPscript for another reason& SAPscript fills the text in lines that fit the width of the editing screen. (t automatically reFoins words that were "ro en "y the line feed. Do not worry if the line feeds that SAPscript inserts are not where you want them to. The final text!filling and line!feeding ta es place only when you print or display the text.

Page ! +0 o# $%

SAP Script Technical Document

/nserting Text Prere2uisites To toggle in the line editor "etween o#erwrite and insert mode& use the (nsert ey on your ey"oard. (n insert mode& you can type text anywhere into your document. (n the line editor& howe#er& you can insert text "y directly typing it in only up to the end of the current line in the text entry area. To insert more text than will fit in the current line& you can switch the line editor into a special insertion mode. (n this insertion mode& you can type text into your document Fust as in normal text entry mode 1for more information& see 'ntering Text3. Procedure A. ). Position the cursor at the place where you want to insert text. Start the special insertion mode "y choosing Insert. SAPscript opens se#eral new lines at the cursor position for inserting your text. The end of the insertion window is shown "y two periods in the format tag column. 3. 'nter the new text. (f you run out of space while entering your new text& choose ormat. SAPscript fills the text that you ha#e entered and opens up additional lines for inserting more text. SAPscript also adds more insert lines if you create a new paragraph in the inserted text with the '-T'R ey. .. 'nd the insertion procedure with !nd insertion& #ac$& or Cancel. SAPscript deletes any unused insert lines& remo#es the two periods from the format tag column& and lea#es the cursor at the end of the newly inserted text.

Page ! ,1 o# $%

SAP Script Technical Document

Formatting Text Prere2uisites Sty es and Forms< SAPscript contains a "asic set of ="uilt!in= paragraph and character formats in the default form SYST'<. (f you use SYST'<& you can always use the ;loc & Centered& and Left!Fustified paragraph formats. A style contains a larger set of paragraph and character formats& from which you can choose. A form contains the =page design= for your document 1letter& chec & in#oice& and so on3. A form may contain character and paragraph formats& as well. (f SAPscript was started for you automatically& the correct style and form for the document you are wor ing on has pro"a"ly already "een selected. (f you started SAPscript yourself& then you should pic out the style that you want to use. 8ea#e the default form SYST'< unchanged. %or more information& see Styles and %orms. Procedure Formatting Paragraphs A. 'nter the paragraph formatting tag into the format tag column. %or a list of a#aila"le formats choose ormat Paragraph. The format you choose applies to the entire paragraph& no matter where the cursor is positioned in the paragraph. An asteris * in the format column shows that a paragraph is to "e formatted with whate#er the default paragraph format is. The default format is specified in the style or form assigned to your document. Formatting Characters To format one or more characters& enclose the characters in character formatting tags5 A. <ar the character1s3 that you want to format. (f you want to format an entire word& Fust put the cursor in the word. You do not need to mar the word. You can apply a continuous character format only within a single paragraph. To format a character string that crosses to another paragraph& apply the character format separately to each part of the string. %or more information& see <ar ing Text. 2. 3. To get a list of the a#aila"le formats& choose ormat Character. (n the dialog window& dou"le!clic on the desired character format. SAPscript enters the =CD= tags for the format around the text you mar ed. (f you ha#e not mar ed any text& the tags are inserted into the text at the cursor
Page ! ," o# $%

SAP Script Technical Document


position. You can then type the text that is to "e formatted within the format start 0nn1 and format end 0)1 tags. You can enclose as many characters as you want in character tags& e#en se#eral lines of one paragraph. Your character formatting o#errides any character formatting applied "y the paragraph formats.

"#$%&r'()e te*t"/$ tells SAPscript to format the phrase li e this5 Cursi"e text. 1(n online display& the text may instead "e highlighted with a different color or intensity.3

Page ! ,( o# $%

SAP Script Technical Document

6ar:ing Text Prere2uisites You must mar text "efore you can carry out operations li e Cut or Cop(. Procedure 6ar:ing text A. ). 3. .. Position the cursor "efore the first character of the "loc of text. 4hoose Select or dou"le clic with the cursor. Position the cursor "efore the last character of the "loc of text. 4hoose Select or do a dou"le clic again.

The lines that contain the mar ed text are highlighted and can now "e processed further. You can see the "eginning and ending of the mar ed text in the status line at the "ottom of the screen. 6ar:ing a *ord To mar a word& put the cursor anywhere in the word and either clic twice or choose Select. 6ar:ing a Line To mar exactly one line& position the cursor in the format tag column "efore the line in 6uestion. 4hoose Select once. 6ar:ing a Paragraph To mar a complete paragraph& position the cursor in the format tag column of the paragraph in 6uestion. Dou"le clic on the format twice or dou"le clic on Select. 6ar:ing an Entire Document To mar all of a document& position the cursor in the format tag column and clic three times on Select. Extending a Se ection To add more text to a mar ed "loc & put the cursor outside the "loc at the re6uired position and choose Select. 'educing a Se ection To shorten a mar ed "loc & put the cursor within the "loc at the re6uired position and choose Select. You can shorten a mar ed "loc only from the end of the "loc . &ndoing a Se ection

Page ! ,+ o# $%

SAP Script Technical Document


4hoose Cancel or #ac$.

6ar:ing Text #or the PC or *or:station C ip7oard %or operations using the P4 or wor station clip"oard& mar text with the mouse. :nder :-(E& A. ). 3. ?old down the left mouse "utton. Pull the mouse to mar an area. 4ut and paste the mar ed text using the wor station hot eys.

:nder <icrosoft *indows& A. ). 3. 4. Press 4TR8!Y to switch the SAP frontend software into select mode. ?old down the left mouse "utton. Pull the mouse to mar an area. 4ut and paste the mar ed text using the *indows hot eys5 4TR8 4 for Cop(I 4TR8 E for CutI 4TR8 J for Paste.

Page ! ,, o# $%

SAP Script Technical Document

Cutting4 Copying4 and Pasting Text You can rearrange text in your documents "y cutting& copying and pasting it5 After mar ing the text& "uttons for all three functions appear on the SAPscript text!entry screen. You can also reach these functions "y choosing !dit.

Cut9 4utting remo#es a mar ed "loc of text from your document and copies it to a clip"oard. Copy9 4opying copies a mar ed "loc of text to a clip"oard. Paste9 Pasting inserts text from a clip"oard in your document at the cursor position.

%or information on the clip"oards a#aila"le to SAPscript& see :sing 4lip"oards. %or information on mar ing text& see <ar ing Text. You can always retrie#e the "loc of text last stored in the clip"oard and

(nsert it into the document at another position. (nsert it into the document at se#eral positions. (nsert it into one or more documents.

o o

$nly one clip"oard is a#aila"le for each user per client. You can reinsert a "loc of text accidentally cut from your document as long as it has not "een o#erwritten in the clip"oard. You cannot retrie#e text you deleted using the "ac space ey& the delete ey 1 D'8 3& or the SAPscript Delete function ey.

Page ! ,- o# $%

SAP Script Technical Document

De eting Text Prere2uisites As in most other word!processing programs& you can delete text in the line editor with the "ac space and delete eys. This topic descri"es additional delete functions offered "y SAPscript. Procedure De eting Extra ; an:s (f your document contains se6uences of more than one "lan space& you can delete the superfluous "lan spaces with the Compress command. A. 2. <ar the text from which you want to remo#e superfluous "lan s. 4hoose !dit Selected area Compress. All strings of consecuti#e "lan spaces are compressed into a single space.

Compress does not o"ser#e the American formatting rule that two spaces should follow a period ending a sentence. (f you compress text that includes sentence ends& then you will need to re!insert the second space at the end of each sentence. De eting Text *ithout 3verwriting the C ip7oard To delete text without o#erwriting the contents of the SAPscript clip"oard& A. ). <ar the text you want to delete. 4hoose Delete. The selected text is deleted and cannot "e reinserted in your document.

Page ! ,. o# $%

SAP Script Technical Document

De eting Formats De eting paragraph #ormats A. ). 3. Put the cursor on the paragraph format in the format tag column. Delete the format or type it o#er with "lan spaces. 4hoose ormat to delete the paragraph format and add the text& if any& to the pre#ious paragraph.

De eting Character Formats To delete a character format& delete the angle "rac et tags that apply the format.

"+#$'amp,e te*t"/$ applies italic formatting to =sample text=5 Remo#e the italics formatting "y deleting "+#$ and "/$ . He sure to remo#e "oth the start and end mar ers of the format. 8ea#ing the end tag "/$ can cause unexpected formatting errors.

Page ! ,% o# $%

SAP Script Technical Document

6erging and Sp itting Paragraphs (n the line editor& you can merge two or more paragraphs into one paragraph. You can also split a paragraph into two or more paragraphs. 6erging Consecutive Paragraphs A. ). Delete the paragraph tag in the format column of the second paragraph. 4hoose ormat. The text of the second paragraph is added to the preceding paragraph. The paragraph format of the first paragraph applies to this newly created paragraph. (f you delete the paragraph tag of se#eral consecuti#e paragraphs& they are all added to the first paragraph. 6erging )on-Consecutive Paragraphs A. ). 3. <ar the text P "ut not the paragraph tag P of the paragraph you want to add to or insert into another paragraph. 4opy it to the clip"oard with Cut. :se the Hac space ey to delete the paragraph tag of the now empty paragraph. The "lan line disappears automatically the next time you choose ormat or any other SAPscript function. 4. Place the cursor on the target position and insert the text into the target paragraph with !dit Paste.

He sure to insert your text from the clip"oard "efore you cut or copy another text. Any new cut or copy operation o#erwrites the contents of the clip"oard. Sp itting a Paragraph A. ). Put the cursor "efore the first character of the new paragraph. 4hoose Continue to insert a second paragraph tag. The new paragraph tag is ta en from the original paragraph. You can enter a new paragraph format if re6uired.

Page ! ,$ o# $%

SAP Script Technical Document

6oving Around in the Line Editor (n the line editor& you can scroll or position the cursor on a specific line num"er. Scro ing :se the scroll "uttons or the slider "ar in the SAP window to scroll forwards and "ac wards in the line editor. (f you scroll ahead "y one screen page& then the next screen page starts with the line on which the cursor is positioned. You can also scroll hori@ontally in a text with %)/ Page le*t)right. Going to a Particu ar Line To go to a particular line in your document& choose !dit Position and specify the desired line num"er. (n the line editor& this line then appears at the top of the screen. SAPscript puts the cursor on the line.

Page ! ,0 o# $%

SAP Script Technical Document

&sing C ip7oards You can use four types of clip"oards for cutting and copying text in SAPscript. The SAPscript C ip7oard &se :se the SAPscript clip"oard for copying text within one or "etween different SAPscript documents. Prere2uisites You can use the SAPscript clip"oard only within a single R/3 system and client. Procedure 1. 2. 4hoose !dit Select to select the text. 4hoose !dit Selected area Cop( or !dit Selected area Cut and !dit Paste to copy text to the clip"oard and to reinsert it.

SAPscript &ser C ip7oards &se You use the SApscript user clip"oard to copy =permanent= text areas. The =permanent= text persists in the clip"oard until you o#erwrite it& e#en if you log off or the SAP System is restarted. Prere2uisites You can use the SAPscript user clip"oard only within a single R/3 system and client. Procedure 1. 2. 3. 4hoose !dit Select to select the text. 4hoose !dit Selected area Cop( to user clip.oard and choose one of the fi#e a#aila"le clip"oards. To insert the text& choose Include Clip.oard -ser clip.oard and the desired clip"oard.

You can edit the contents of user clip"oards. 4hoose 3oto -ser clip.oard to open a normal SAPscript text entry session for the contents of one of the clip"oards.

Page ! -1 o# $%

SAP Script Technical Document

A;AP Editor C ip7oard &se :se the AHAP editor clip"oard for copying "loc s of text from the AHAP editor to the line editor. Prere2uisites You can use the AHAP editor clip"oard only within a single R/3 system and client. Procedure A. 2. To mar text in the AHAP editor& use the line commands EE& YY& or MM. 'ach command copies text to a different clip"oard. (t must "e used in pairs& for example& EE Ctext to mar D EE. To insert the text into the line editor& choose Include Clip.oard Line editor and choose the appropriate clip"oard.

PC or *or:station C ip7oard &se :se the P4 or wor station clip"oard for copying text

Hetween SAPscript documents when you cannot use a SAPscript clip"oard. Hetween SAPscript and other programs running at your P4 or wor station. %rom SAPscript to the AHAP editor 1small "loc s of text only3.

Prere2uisites You may ha#e to copy text from external programs line "y line& since text areas exceeding one line are not correctly pasted into SAPscript. ?owe#er& from AS4(( editors& such as <icrosoft -otepad& these text areas are copied correctly. (f you paste a text area from an external program into SAPscript& the paragraph and character formats are not copied. Procedure 1. 2. 3. <ar the text "y pulling the cursor. (n a <icrosoft *indows P4& press 4TR8 and Y first to switch to select mode. 4hoose 4TR8 4 1 Cop(3 or 4TR8 E 1 Cut3 to copy from SAPscript to the clip"oard. 4hoose Include Clip.oard Clip.oard to paste the clip"oard contents into SAPscript. The paragraph formatting in a SAPscript text is correctly copied into the new SAPscript window. Hloc s of SAPscript text or editor text that extend "eyond the end of the SAPscript screen are correctly inserted& too You can also use the hot ey STR0!J 1 Paste3.

Page ! -" o# $%

SAP Script Technical Document

Finding and 'ep acing &se You can search for and replace "oth text in the text entry area and paragraph formats in the format tag column. Procedure

To search or replace& choose !dit ind or !dit Replace. A search or replace action affects the text "etween the cursor position and the start or end of the document& depending upon the direction you choose. To accept all replacements without chec & choose Replace all. To chec each replacement& choose Con*irm replace. (n this case& you must choose Replace to carry out a replacement and Search *or%ard or Search .ac$%ard to continue the operation.

To repeat a search& choose Search *or%ard or Search .ac$%ard.

/nc uding ; an:s at the End o# a Search or 'ep acement Term A search or replacement term usually ends with the last non!"lan character. ?owe#er& if you need to include "lan s at the end of the search or replacement term& enclose the entire term in in#erted commas.

Search term N - o&'e The system searches for the term house with one "lan at the end. (f a term that is enclosed in in#erted commas already contains an in#erted comma& enter this in#erted comma twice.

Search term N -SAP--' R/. Sy'tem &sing Replace to De ete a Search Term As in other word!processors& you can use Replace to delete a search term. Simply replace the term with an empty string. To specify an empty string as the replacement term& enter two successi#e in#erted commas 1QQ3.

Page ! -( o# $%

SAP Script Technical Document


(f you enter the search term - o&'e > and the replacement term >>& then the string house?space character@ will "e deleted from your text.

Setting ;rea:s 6anua y &se You can insert line feeds& page "rea s& and "lan lines manually into your document. *hen you insert a line feed or "lan line& the attri"utes of the paragraph format and any acti#e character format remain in effect. *hen you insert a page "rea & the form determines the page design for the new page. A form may define se#eral different page designs. You can pic one of these page designs for your new page "y name5 1. ). To see a list of the a#aila"le page designs& choose ormat Pages. After -'*!PA0'& specify the page name.

The form you use for your document defines a page layout called -'*! S'4T($-. The following command then starts a new page in your document. The page is laid out according to the design specified in the form under -'*!S'4T($-. /: NEW-PAGE NEW-SE%T/0N %or more information& see Procedure 'xplicit Page Hrea 5 -'*!PA0'.

Function

Procedure 'nter the paragraph tag / into the format tag column 1followed "y the text in the text input line3. *hen output& the text in the input line appears in a new line. 4hoose Page.

<anual line feed

<anual page "rea The command /5 -'*!PA0' is inserted into your text. 'nter the paragraph tag / into the format tag column 1without text in the text input line3 *hen output& a "lan line is inserted.

Hlan line

Page ! -+ o# $%

SAP Script Technical Document


Delete format settings Delete the appropriate paragraph tag in the format tag column and choose !dit ormat.

Suppressing Text Formatting You can suppress formatting of particular lines of text or text strings in the line editor or in the output. The following sections show what formatting you can suppress. Suppressing Automatic ; an:s *hen Lines are Fi ed &se This function allows you to put together text from multiple lines in a single word or character string. (t is intended for special formatting situations& for example& if you want to print the first part of a string only if a certain condition is met& "ut the second part of the string in any case.

You can enter 0o up to the sixth floor with the ele N #ator. Then ring the "ell. The output then loo s li e this5 0o up to the sixth floor with the ele#ator. Then ring the "ell. Suppressing Text Fi ing in the Text-Entry Screen &se This function ma es long lines in the text!entry screen easier to read. *hen you load or include text that co#ers the entire R) columns of the standard text entry area& the text is easier to read if you preser#e the original line structure. 8ines with the formatting specifications N and /N can use the entire A3) columns of the text entry lines without "eing filled. Procedure 'nter 1 or /1 in the format tag column and choose ormat. SAPscript then lea#es these lines unfilled. That is& no line "rea s are inserted in such a line in the editor. At output& the lines are filled as follows5

Page ! -, o# $%

SAP Script Technical Document

%ormat 1 The text is added to the pre#ious line without an inter#ening "lan . 1See also the pre#ious section.3

%ormat /1 The text starts on a new line in the printout or screen display.

Page ! -- o# $%

SAP Script Technical Document

Suppressing Formatting &se You use this function to print or display formatting specifications for certain purposes. These formatting specifications can also "e used for long lines& Fust as 1 and /1 & descri"ed a"o#e.

You can enter C1DCMGDText to "e output as cursi#e textC/DC3D The text is displayed or printed li e this5 CMGDText to "e output as cursi#e textC/D You can also help SAPscript to interpret ta"s and commas correctly. (f you want your text to ha#e a comma followed "y a ta"& this re6uires a se6uence of three commas in your text5& 22 The first two commas are interpreted as a ta"& followed "y a comma. To ensure the correct interpretation& enter "3$2"4$22 Procedure To pre#ent formatting of a particular line or character string within a line& enter parentheses 34 . Ta"s and character formats are then not resol#ed. (nstead& they are printed out as normal text. You can use these formatting tags in the following ways5

'nter 3 in the format tag column to pre#ent the entire adFoining line of text from "eing formatted. At output& the line is concatenated without an inter#ening "lan space with the end of the pre#ious line. 'nter /3 in the format tag column to pre#ent the entire adFoining line of text from "eing formatted. At output& the text starts on a new line in the printout or screen display. 'nter "3$ and "4$ around a character string to pre#ent a character format from "eing processed.

Page ! -. o# $%

SAP Script Technical Document

Ta7s and Ta7 es Setting Ta7s To enter a ta" in your text& you must enter two consecuti#e commas5 1 22 3. You cannot use the ta" ey on your ey"oard. Define the ta" positions in the paragraph format definition in the style or form you are using. (f the paragraph format does not define any ta"s& then the ta" positions defined in the dialog "ox Change *orm header under #asic settings are used. Creating Ta7 es To create a ta"le in SAPscript& A. Select one of the predefined paragraph formats for ta"les& if a#aila"le& in your style or form. A paragraph format for a ta"le usually defines the correct ta" settings for the ta"le& since ta"le formatting in SAPscript is done with ta"s. 'nter and format the header that you wish to use for the ta"le. 1Your style or form may pro#ide a special paragraph format for the header& which already includes any special formatting.3 'nter and format the text for the columns in the ta"le. You must ensure that the text for each column fits in the column. 'nter one or more ta"s to separate the text of one column from that of the next. 4hoose Print Pre"ie% or print your ta"le to chec that you ha#e correctly laid out the text for the ta"le.

). 3. 4.

To set up a three!column ta"le& in the text entry area enter "+#$Sty,e225'e2222Spec(a, !eat&re'"/$ '_6oc&'7220n,(ne 6oc& !ormat2222N&m8 paragrap ' Print pre#iew5

St(le sKdocusA

-se $nline docu format

Special *eatures -um. paragraphs

Page ! -% o# $%

SAP Script Technical Document

)um7ering and 6ar:ing 5eadings and Paragraphs &se You can num"er or otherwise mar headings and other types of paragraphs in your text. You can also num"er headings hierarchically according to the heading le#el. %or example& you can ha#e heading le#els A& )& and 3 num"ered accordingly5 AI A.AI A.A.AI A.)& and so on. Functiona ity There are se#eral num"ering and mar ing options5

8etters -um"ers %ixed characters& such as *2 o2 12 -

-um"ers can "e represented as Roman or Ara"ic numerals. 8etters can "e written as uppercase or lowercase letters. You specify the num"ering or mar ing you want to apply to a particular paragraph format. SAPscript automatically carries out the num"ering or places the fixed character string that you ha#e chosen "efore each such paragraph. %ixed character mar ings can consist of se#eral characters. You can identify them "y left or right delimiters. *hen num"er!chaining interdependent paragraphs 1such as headings on different le#els3& a period is used to separate the paragraph num"ering.

Delimiters5 4haining5 Activities

a3 ! 1a3 ! a. 1and so on3 A.A ! A.A.A ! A.) ! A.).A 1and so on3

'esetting )um7ering To reset the num"ering scheme of a paragraph& enter the command /: RESET "paragrap -tag$ . %or more information& see Resetting Paragraph -um"ering.

Page ! -$ o# $%

SAP Script Technical Document

Copying and Comparing Across C ients &se You can compare or copy the following inds of o"Fects across clients5

Styles %orms Standard texts.

Functiona ity *ith the client compare& you can

4hec whether an o"Fect exists in "oth clients. Display the differences "etween the #ersions of an o"Fect.

*ith the copy tool& you can copy an o"Fect from a source client to the client in which you are currently wor ing. You can copy a style or form in all the languages in which it is a#aila"le. Hoth the compare and copy tools support generic specifications& so that you can compare or copy sets of o"Fects or all o"Fects. Activities 1. 2. Depending on the o"Fect type you want to compare or copy& choose Tools SAPscript orm& Standard text& or St(le. 4hoose -tilities Compare clients or -tilities Cop( *rom client

Page ! -0 o# $%

SAP Script Technical Document

Copying C ient Contents &se To copy one or more standard texts& forms& or styles from one client to another client& choose Cop( *rom client.

(t is not possi"le to copy styles or forms to client ///. Procedure Copying Standard Texts 1. 2. 4hoose Tools SAPscript Standard text 4hoose -tilities Cop( *rom client. This ta es you to the dialog window for copying texts "etween clients. 3. <a e the following entries5 Text name 'nter the name of the standard text you want to copy. You can enter a generic name such as ST7 or 7. Text ID 'nter the text (D 1type3 of the text1s3 you ha#e selected. Language 'nter the appropriate language ey. Source client Specify the client in which the standard text was created. Hy default& this is client ///. Target name Specify the name of the new standard text. Action log

Select

to create an action log.

Page ! .1 o# $%

SAP Script Technical Document


-o entry .. not to create an action log. 4hoose !xecute.

(f you selected the field Action log& the system displays a log after the copy process. Copying Forms 1. 2. 3. 4hoose Tools SAPscript orm 4hoose -tilities Cop( *rom client. This ta es you to the dialog window for copying forms "etween clients. <a e the following entries5 orm name 'nter the name of the form you want to copy. You can enter a generic name such as ST7 or 7. Source client Specify the client in which the form was created. Hy default& this is client ///. Target *orm Specify the name of the new form. Action log

Select -o entry ..

to create an action log. not to create an action log.

4hoose !xecute. (f you selected the field Action log& the system displays a log after the copy process.

Copying Sty es 1. 2. 4hoose Tools SAPscript St(le 4hoose -tilities Cop( *rom client. This ta es you to the dialog window for copying styles "etween clients. 3. <a e the following entries5 St(le name 'nter the name of the style you want to copy. You can enter a generic name such as ST7 or 7.

Page ! ." o# $%

SAP Script Technical Document


Source client Specify the client in which the style was created. Hy default& this is client ///. Target st(le

Specify the name of the new style. Action log

Select -o entry ..

to create an action log. not to create an action log.

4hoose !xecute. (f you selected the field Action log& the system displays a log after the copy process.

Page ! .( o# $%

SAP Script Technical Document

Comparing C ient Contents &se 4hoose Compare clients

To chec whether a particular standard text& style& or form already exists in another client. To identify differences in the o"Fect attri"utes and definitions.

You can mar single o"Fects for a comparison& or generate comparisons of a whole set of o"Fects.

A comparison co#ers only the attri"utes and& if applica"le& the formal definition of an o"Fect. A comparison does not extend to the text le#el of an o"Fect. A comparison can highlight differences in the author of an o"Fect or the formats used in a style or form. Hut a comparison cannot detect differences in standard texts nor in the texts used in forms. Procedure Comparing Standard Texts 1. 2. 4hoose Tools SAPscript Standard text 4hoose -tilities Compare clients. This ta es you to the dialog window for displaying standard texts in two different clients. 3. <a e the following entries5 Text name 'nter the name of the standard text you want to chec . You can enter a generic name such as ST7 or 7. Language 'nter the appropriate language ey. Text ID 'nter the text (D 1type3 of the text1s3 you ha#e selected. Source client

Page ! .+ o# $%

SAP Script Technical Document


Specify the client& on the "asis of which you want the chec to "e carried out. Hy default& this is client ///.

Target client Specify the client you want to chec against the source client. Hy default& this is the client in which you are currently acti#e. .. 4hoose !xecute. The system displays a list with the source client in the left!hand column and the target client in the right!hand column. An empty line in either column indicates that the standard text does not exist in the corresponding client. ,. L. To display the differences "etween the standard texts& select one of the texts and choose Choose. You can display detailed information on a standard text. Select the standard text and choose Text in*o.

Comparing Forms 1. 2. 4hoose Tools SAPscript orm 4hoose -tilities Compare clients. This ta es you to the dialog window for displaying forms in two different clients. 3. <a e the following entries5 orm name 'nter the name of the form you want to chec . You can enter a generic name such as ST7 or 7. Source client Specify the client& on the "asis of which you want the chec to "e carried out. Hy default& this is client ///. Target client Specify the client you want to chec against the source client. Hy default& this is the client in which you are currently acti#e. .. 4hoose !xecute. The system displays a list with the source client in the left!hand column and the target client in the right!hand column. An empty line in either column indicates that the form does not exist in the corresponding client. ,. L. To display the differences "etween the forms& select one of the forms and choose Choose. You can display detailed information on a form. Select the form and choose orm in*o.

Comparing Sty es
Page ! ., o# $%

SAP Script Technical Document


1. 2. 4hoose Tools SAPscript St(le 4hoose -tilities Compare clients.

This ta es you to the dialog window for displaying styles in two different clients. 3. <a e the following entries5 St(le name 'nter the name of the style you want to chec . You can enter a generic name such as ST7 or 7. Source client Specify the client& on the "asis of which you want the chec to "e carried out. Hy default& this is client ///. Target client Specify the client you want to chec against the source client. Hy default& this is the client in which you are currently acti#e. .. 4hoose !xecute. The system displays a list with the source client in the left!hand column and the target client in the right!hand column. An empty line in either column indicates that the style does not exist in the corresponding client. ,. L. To display the differences "etween the styles& select one of the styles and choose Choose. You can display detailed information on a style. Select the style and choose St(le in*o.

Page ! .- o# $%

SAP Script Technical Document

Converting SAPscript Texts &se SAPscript texts are stored in (nterchange Text %ormat 1(T%3. SAPscript offers con#ersion programs for the text file formats Rich Text %ormat 1RT%3 and AS4(( as an interface to other word processors. And you can con#ert the edited text to ?T<8. RT% files contain all the formatting information for the text and can "e "oth interpreted and generated "y all common word processors. (n AS4(( files the text is not formatted. The only layout element is the line feed. Jarious character sets are possi"le. ?T<8 files contain the entire formatting information of a text and can therefore "e displayed using any ?T<83.E "rowser 1-etscape& <S (nternet 'xplorer& and so on3. 4ontrol commands& sym"ols& and include texts are resol#ed& pro#ided that this can "e done without processing the form 1that is& without using the composer3. Prere2uisites *hen con#erting RT% files& you should execute a format con#ersion from the document template to the SAPscript paragraph and character formats or #ice #ersa. This allows you to replace non!existant paragraph and character formats and to a#oid the fomat names to "e copied directly. %or more information& see SAPscript %ormat 4on#ersion. Functiona ity (n the SAPscript editors& you can

'xport texts in the formats (T%& RT%& or AS4(( into a local file (mport local files in the formats (T%& RT%& AS4((& or ?T<8 and insert the texts at the cursor position.

Activities (n the editors& choose Text -pload and Text Do%nload or Documentation -pload and Documentation Do%nload or Clip.oard -pload and Clip.oard Do%nload.

Page ! .. o# $%

SAP Script Technical Document

SAPscript Format Conversion

SAPscript Format Conversion &se The SAPscript format con#ersion allows you to assign and rename paragraph formats and character formats in the source and target texts when con#erting formatted texts. Prere2uisites

(n releases ).A and ).)& the format con#ersion was still controlled #ia the ta"les TTD4% and TTD4*. (f you ha#e already wor ed with format con#ersions at that time& you will now ha#e to con#ert to the new procedure starting from release 3./. To "egin with& start report RSTED:<S. This report puts all old con#ersions into the new form& so that you can now process them using the function ormat con"ersion. Functiona ity /mporting 'TF Fi es %ormat con#ersion is de#ided into two parts. You can map one paragraph style onto exactly one SAPscript paragraph format& "ut you can map one character style onto up to four SAPscript character formats. Exporting 'TF Fi es <aintaining these con#ersions is ded#ided into paragraph formats and character formats. You can map one paragraph or character format onto exactly one paragraph or character style. *ord Sty e Sheets APrototypesB *ord style sheets 1prototypes3 are designed for the con#ersion of SAPscript formats to the formats of an existing style sheet. Format Conversion in SAPscript Texts You can con#ert the paragraph and character formats rele#ant for text formatting in the form or style to those of another form or style. You can map a paragraph format onto exactly one paragraph format& "ut you can map a character format onto up to four character formats. Activities 4hoose Tools SAPscript Administration ormat con"ersion.

Page ! .% o# $%

SAP Script Technical Document

6apping Formats #or Conversions /mporting 'TF Fi es &se *hen importing RT% files& you should map the format templates of this file to character and paragraph formats of a SAPscript style or form. The maintenance of these con#ersions is di#ided into paragraph formats and character formats. You can map exactly one paragraph style to exactly one SAPscript paragraph format& "ut you can map one character style onto up to four SAPscript character formats. Procedure 1. ). 3. .. 5. L. R. S. 4hoose Tools SAPscript Administration ormat con"ersion. The dialog window SAPscript ormat con"ersion appears. Select Import RT *iles and choose Continue. 'nter the name of the document template. 'nter the name of the form or style onto which you want to map the format templates. 4hoose ormat con"ersion Create)Change. 4hoose Paragraph *ormats and/or Character *ormats. 'nter the target format for each source format. 4hoose Sa"e. The system sa#es the format con#ersion. *hen loading the RT% file& specify the format con#ersion of the document template.

%ormat =4om"i= contains the character formats "old and italic. (n the style there is only a format M% 1"old3 and a format MG 1italic3. (n the fromat con#ersion& a con#ersion from 4om"i to M% and MG is defined. -ote the special RT% descriptions that correspond to the *ord standard descriptions 1for example heading 4& annotation text3& as well as the RT% notation of some characters& especially umlauts. Apart from this& the characters QTQ& QUQ& QVQ and QIQ should ne#er appear in the format name. A pre#ious style sheet import is always useful. To display the RT% standard descriptions& choose !n"ironment RT descriptions. (f you ha#e already executed a style sheet import& the formats are already listed as source formats. (n any case& the SAPscript character or paragraph formats are suggested as possi"le entries help for the target formats. (f no SAPscript paragraph is assigned to a paragraph format& the SAPscript default paragraph 1=7=3 is used. (f no target format is defined for a character format& this format is not e#aluated.

Page ! .$ o# $%

SAP Script Technical Document

Exporting 'TF Fi es &se *hen exporting documents as RT% files& you should map the character and paragraph formats of a SAPscript style or form onto the format templates of the RT% file. The maintenance of these con#ersions is di#ided into paragraph formats and character formats. You can map a paragraph or character format to exactly one paragraph or character template. Procedure 1. ). 3. .. 5. L. R. S. 4hoose Tools SAPscript Administration ormat con"ersion. The dialog window SAPscript ormat con"ersion appears. Select !xport RT *iles and choose Continue. 'nter the name of the form or style. 'nter the name of the document template onto which you want to map the paragraph or character format. 4hoose ormat con"ersion 4reate/4hange. 4hoose Paragraph *ormats and/or Character *ormats. 'nter the target format for each source format. 4hoose Sa"e. The system sa#es the format con#ersion. *hen downloading the RT% file& specify the format con#ersion of the document template.

(f you do not select a style shoot prototype& you are merely renaming and e#aluating the formats. A style sheet with format definitions from style or form is generated& in which only the names of the formats can de#iate from the original SAPscript character and paragraph formats. Jia the dominant column& you can e#aluate the formats. (f& for example& these two character formats exist5 MA meaning "old& M) meaning underscored. (n *ord you do not allow any underscores5 "ut want to use a uniform format =emphasi@ed= instead. 'nter the following5 Determine #ormat dominance

Source #ormat MA 1"old3 M) 1underscored3

Target #ormat 'mphasi@ed 'mphasi@ed

Dominant E

*ord Document Temp ates APrototypesB &se

Page ! .0 o# $%

SAP Script Technical Document


*ord document templates 1prototypes3 are designed for the con#ersion of SAPscript formats to the formats of a document template that already exists.

Page ! %1 o# $%

SAP Script Technical Document

Prere2uisites %or example& you are wor ing in *ord with the document template AH4.D$T. You want to use this template on texts con#erted from SAPscript. To do this& you must first sa#e a word text assigned to the document template as RT% file& for example& with the name of EYM.D$T. Procedure 1. ). 3. 4. ,. 4hoose Tools SAPscript Administration ormat con"ersion. The dialog window SAPscript ormat con"ersion appears. Select 5ord document templates 6protot(pes7 and choose Continue. 'nter the name of the document template. 4hoose Protot(pe Import. 'nter the name of the appropriate RT% file and choose Continue. The system creates the prototype.

Format Conversion ;etween SAPscript Texts &se You can con#ert the paragraph and character formats of the form or style rele#ant for the text formatting to those of another form or style.

SAPscript text AH4 was until now formatted with the style STY8A and form 8AY$:TA. -ow you want to assign a form 8AY$:T) to it.

You can map one paragraph format onto exactly one paragraph format& "ut you can map one character format onto up to four character formats.

You can execute this format con#ersion also #ia the function module 'E4?A-0'K(T%. %or more information& see 'E4?A-0'K(T%. Procedure 1. ). 3. 4. ,. L. R. 4hoose Tools SAPscript Administration ormat con"ersion. The dialog window SAPscript ormat con"ersion appears. Select ormat con"ersion in SAPscript texts and choose Continue. 'nter the names of the forms and/or styles. 4hoose ormat con"ersion Create)Change. 4hoose Paragraph *ormats and/or Character *ormats. 'nter the target format for each source format. 4hoose Sa"e. The system sa#es the format con#ersion. (n the corresponding SAPscript text& assign the other form.

Page ! %" o# $%

SAP Script Technical Document

Document Temp ates and Sty e Sheets *ord -9- #or D3S or 3SC( You can define character and paragraph formats in a style sheet 17.df#3. They are identified #ia the =hot ey=& a two character ey& some of them #ia predefined descriptions such as =$utline A=. *ord (91 (n the document template 17.dot3& you can define format templates for paragraph formats. :nli e in *ord ,.,& their names can "e longer than two characters. *ord .91 and 5igher (n addition to the features in )./& you can now define format templates for character formats.

Page ! %( o# $%

SAP Script Technical Document

/TF Export and /TF /mport /TF Export &se A leader is placed in front of the output file. %rom this leader a text header is constructed if it is reimported. The text from the editor follows& with all character and paragraph mar ers& sym"ols& and commands. Procedure 1. ). 3. 4hoose Text Do%nload. The dialog window Do%nload appears. Select IT and choose Do%nload. 'nter the complete file path and choose Do%nload.

/TF /mport &se (f a header with form and style specifications exists& then form and style are set to these #alues in the editor and in the clip"oards.

This does not apply for the documentation editor in the AHAP *or "ench. Procedure 1. ). 3. 4hoose Text -pload. The dialog window -pload appears. Select IT and choose -pload. 'nter the complete file path and choose -pload.

Page ! %+ o# $%

SAP Script Technical Document

'TF Export and 'TF /mport 'TF Export &se During the RT% export& an RT% file is created in which the character and paragraph formatting from the original text are mostly contained. Jaria"le sym"ols of the (T% text are replaced. (ncludes and control structures are canceled and comments ignored. (f a document template is specified& a format con#ersion of the rele#ant SAPscript formats 1style or form3 to the *ord document template ta es place %or more information& see SAPscript %ormat 4on#ersion. Prere2uisites (mporting RT% files to modern text processors is straightforward& "ut some preparation is necessary with the older D$S programs. %or example& in <icrosoft *ord 1from Jersion ,./3 under the operating systems <S D$S or $S/) the RT% file has to "e con#erted to a *ord text file together with a document template with the following command5 /mporting 'TF #i es to 6icroso#t *ord

3perating system 6S-D3S

Conversion command Rt!_6o' !(,e78rt! !(,e98t*t !(,e.86!) /o/c rt!_6o' !(,e78rt! !(,e98t*t !(,e.86!) /o/m Rt!_o'9 !(,e78rt! !(,e98t*t !(,e.86!) /o/c

3SC(

rt!_o'9 !(,e78rt! !(,e98t*t !(,e.86!) /o/m

/o /c

(f !(,e98t*t already exists& o#erwriting ta es place without confirmation

Page ! %, o# $%

SAP Script Technical Document

ASC// Export and ASC// /mport ASC// Export &se All formats that appear in an (T% text& with the exception of line feeds and ta"s& are ta en out. The pure AS4ll text& as it would appear when printed& is transferred. Some formatting is possi"le only #ia the line width parameter. Jaria"le sym"ols are replaced& includes and control structures are canceled. The (T% text can "e con#erted to any character set that is maintained in the Spool Administration 1SPAD3. Procedure 1. ). 3. .. 4hoose Text Do%nload. The dialog window Do%nload appears. Select ASCII and choose Do%nload. 'nter the complete file path as well as line width and character set. 4hoose Do%nload.

ASC// /mport &se All AS4(( files can "e loaded into the SAPscript editors. You must specify the character set of the file& that is& its num"er in the spool administration SPAD. The system then con#erts it to the system character set. Procedure 1. ). 3. .. 4hoose Text -pload. The dialog window -pload appears. Select ASCII and choose -pload. 'nter the complete file path and the character set. 4hoose -pload.

Page ! %- o# $%

SAP Script Technical Document

5T6L Export &se The SAPscript editor internally calls the function module 4$-J'RTK(T%KT$K?T<8. This function module is used "y other applications as well& for example& when con#erting $SS -otes& for AHAP documentation& and for glossary and (<0 texts. The function module 4$-J'RTK(T%KT$K?T<8 con#erts a SAPscript text to ?T<8 to allow you to display the text using any ?T<83.E "rowser 1-etscape& <S (nternet 'xplorer& and so on3. The function module re6uires the text header 1DD(4 structure T?'AD3 and the text lines 1DD(4 structure TD8(-'S3 as input. After successful con#ersion& the function module returns a ta"le that contains the corresponding ?T<8 text 1DD(4 structure ?T<88(-'3. During the con#ersion& SAPscript control commands& standard sym"ols& and include texts are resol#ed as far as it is possi"le without processing the form 1that is& without using the composer3. To assign SAPscript paragraph and character formats to ?T<8 formats& use the appropriate ta"les with the function call. 4on#ersion is controlled #ia se#eral parameters5

4hec ing the syntax of the (T% text Resol#ing sym"ols& include texts& and control commands Printing control commands or text element names that cannot "e interpreted Representing character and paragraph formats in ?T<8 Specifying a 4A88HA4G routine to interpret lin s Suppressing the ?T<8 header Determining the ?T<8 "ac ground

%or an example of how to use 4$-J'RTK(T%KT$K?T<8& refer to the report RSTE?T<8. You can use this report to con#ert any standard texts as well as documentation texts to ?T<8. %or more information& refer to thedocumentation of the function module 4$-J'RTK(T%KT$K?T<8.

Page ! %. o# $%

SAP Script Technical Document

Procedure 1. ). 3. .. 4hoose Text Do%nload. The dialog window Do%nload appears. Select ,T8L and choose Do%nload. 'nter the complete file path and the data format. 4hoose Do%nload.

Page ! %% o# $%

SAP Script Technical Document

Exporting to and /mporting #rom *ord Exporting Documents to *ord &se The *ord document eeps the format names specified in the SAPscript style or foem. To con#ert the SAPscript document to a *ord style& specify a format con#ersion. After the format con#ersion& you can export SAPscript documents in RT% format and con#ert the formatting to the specified *ord document template. Procedure 1. ). 3. 4. ,. L. R. S. +. 10. AA. A). 13. A.. A,. AL. 4hoose Tools SAPscript Administration %ormat con#ersion. The dialog window SAPscript ormat con"ersion appears. Select 5ord document templates 6protot(pes3 and choose Continue. 'nter the name of the document template 17.D$T3. 4hoose Protot(pe Import. 'nter the path and the name of the RT% file for the document template. 4hoose Import. The system creates the document template 1prototype3. 4hoose #ac$& select !xport o* RT *iles and choose Continue. 'nter the name of the form or style. The name must correspond to the form or style assigned to your SAPscript document. 'nter the name of the a"o#e document template 17.D$T3. 4hoose ormat con"ersion Create)Change. 4hoose Paragraph *ormats and/or Character *ormats and enter the target format for each source format. 4hoose Continue. The system stores the format con#ersion. 0o to your SAPscript document and choose Text Do%nload. Select Rich Text ormat 6RT 7 and choose Do%nload. 'nter the path and the name of the *ord file 17.RT%3& into which you want to export the SAPscript document& and the name of the document template. 4hoose !xport. The system exports the SAPscript document according to the format con#ersion into *ord.

%or more information& see SAPscript %ormat 4on#ersion. /mporting Documents #rom *ord A. 2. 3. .. 5. L. R. S. +. Sa#e the *ord document as RT% file. 4hoose Tools SAPscript Administration %ormat con#ersion. The dialog window SAPscript ormat con"ersion appears. Select 5ord document templates 6protot(pes3 and choose Continue. 'nter the name of the document template 17.D$T3. 4hoose Protot(pe Import. 'nter the path and the name of the a"o#e RT% file. 4hoose Import. The system creates the document template 1prototype3. 4hoose #ac$& select Import o* RT *iles and choose Continue. 'nter the name of the document template.

Page ! %$ o# $%

SAP Script Technical Document


A/. 'nter the name of the form or style. The name must correspond to the form or style assigned to your SAPscript document.

11. 4hoose ormat con"ersion Create)Change. A). 4hoose Paragraph *ormats and/or Character *ormats and enter the target format for each source format. A3. 4hoose Continue. The system stores the format con#ersion. 14. 0o to your SAPscript document and choose Text -pload. A,. Select Rich Text ormat 6RT 7 and choose -pload. AL. 'nter the path and the name of the file you want to import& the name of the document template& and the name of the form or style. AR. 4hoose Import. The system imports the *ord file according to the format con#ersion.

(f necessary& you can upload *ord files in RT% format without first setting up format con#ersions. (n this case& the paragraphs in the document are set to the default format 1 * format3. 4haracter formats are named with the first two characters of the name of the *ord format. %or more information& see SAPscript %ormat 4on#ersion.

Page ! %0 o# $%

SAP Script Technical Document

Transporting Format Conversions and Sty e Sheet Prototypes 4on#ersions and style sheet prototypes are stored as SAPscript texts& language W'9 in client Q//Q and can "e transported with the mechanisms intended for SAPscript o"Fects5 A. ). 4reate a transport re6uest in client Q//Q 1"y hand as shown "elow& or #ia report RSTETRA-3. Release the transport.

%ormat con#ersions and style sheet prototypes are client!independent. Transporting Format Conversions %ormat con#ersions are SAPscript texts with text o"Fect 9STY8'S?''T9 and text (D 9AHH9. The text name is 3. characters long and has the following format5 Text name #ormat

Character A ) to AR AS A+ to 3.

6eaning Type of source format5 S 1style3& F 1form3& D 1document template3 Source format name 1as gi#en in initial screen of format con#ersion3 Type of target format5 S 1style3& F 1form3& D 1document template3 Target format name 1as gi#en in initial screen of format con#ersion3

These texts are stored in language W'9 in client Q//Q. The entry in the transport re6uest should appear as follows5 R.TR : TE;T : "te*t o<ject$2"te*t name$2"te*t /D$2",ang&age$

You want to transport the format con#ersion of form A;C to the document template DEF9D3T to another system. You create a transport re6uest with the following entry5 R.TR : TE;T : ST=>ES?EET2@AA%------------D*yB86ot2AAA2E 1in this example the minus signs signify "lan s in the text name3

Page ! $1 o# $%

SAP Script Technical Document


Alternati#ely& you can execute report RSTETRA- and there select the texts you want to transport.

Page ! $" o# $%

SAP Script Technical Document

Transporting Sty e Sheet Prototypes Style sheet prototypes are SAPscript texts with text o"Fect 9STY8'S?''T9 and text (D 9RT%9. These are also stored in client Q//Q in the language W'9. The text name corresponds to the prototype name.

You want to transport the style sheet prototype DEF9D3T to another system. The entry in the transport re6uest must ha#e the form5 R.TR : TE;T : ST=>ES?EET2*yB86ot2RT@2E

Page ! $( o# $%

SAP Script Technical Document

Sty e and Form De#ined %or more information& see Sty es A style defines the set of paragraph and character formats that are a#aila"le for formatting a document. H4 ! Style and %orm <aintenance.

A typical style contains& for example& a definition for a standard paragraph& list paragraph formats& and possi"ly special!purpose paragraph formats for headings& data in forms& and so on. A style also defines such character formats as "oldface and italics.

(f you select a style& this style pro#ides the character and paragraph formats for your document. Any formats defined in the form selected for a document are ignored. He careful& therefore& a"out selecting a style if none is currently selected. Selecting a style in this case can o#erride formats in the form and produce unpredicta"le results.

An include text preser#es the style assigned to an included text.

(f your document is formatted with the SK$%%(4' style and you include a document that uses the SKD$G:SA style& SAPscript formats the included text according to SKD$G:SAI the other text is formatted with SK$%%(4'. Forms A form specifies the page design. (t defines one or more windows and arranges them on a page. *indows are output areas for texts and informatiom& such as the "an routing information on a chec or the items in an in#oice. (n a form& you can specify different page designs for different pages& for example& for the first page and for su"se6uent pages. A form is language!specific. The language of a form is determined "y the print program or "y the language you specify. The language is important "ecause a form can contain pre! defined texts which must of course "e printed in the correct language.

Page ! $+ o# $%

SAP Script Technical Document


A print program collects information from the R/3 system and from the form& uses the text you entered in the editors& and then generates the document. The print program uses a form and sometimes also a style to format and generate the document.

The program you use determines the windows into which you can enter text. (f& for example& you choose Tools SAPscript Standard text& the system automatically opens window <A(- of form SYST'< for text input.

Page ! $, o# $%

SAP Script Technical Document

Changing Sty es and Forms &se (f one of the editors was automatically started "y your SAP application& the form and style are already allocated. You should not change theses settings. Prere2uisites (f you started one of the editors yourself without gi#ing any specifications& SAPscript "y default assigns the S:ST!8 form and no style to the document. S:ST!8 specifies a simple page design5 a single full!page column. This page design is suita"le for most general!purpose documents& such as notes that you may write in SAPscript. Procedure Changing Forms and Sty es 1. ). 3. 4hoose ormat Change *orm or ormat Change st(le. Select the desired form or style. 4hoose 4hoose.

De-Se ecting Forms or Sty es

De!selecting forms and styles can "e done in the line editor only. 1. ). 4hoose ormat Change *orm or ormat Change st(le. 4hoose Reset Assignment.

Page ! $- o# $%

SAP Script Technical Document

Ca ing the Editor From *ithin App ications &se To edit texts in your application& you can call up the SAPscript 'ditor either fullscreen or inline. Features Fu screen Editor To call the fullscreen editor& use function module 'D(TKT'ET. <a e sure to pass the appropriate text format in the text header 1TDT'ETTYP'3. /n ine Editor (f you want to edit or display only the first few lines of a text& you can use the inline editor. *ith the inline editor& you can edit se#eral text parts on one screen. %or more information& see Displaying Text 8ines in Application Screens. As inline editor& you can use an editor "ased on screen!processing techni6ues or on the controls technology. Screen-Processing Techni2ues The screen!processing techni6ues offer a SAPscript 'ditor with formattings. To call this editor& use function module 'D(TKT'ETK(-8(-'. 4ompared with the fullscreen editor& the screen!processing techni6ues ha#e the following restrictions5

The editor does not automatically unite words that are split up at the end of the line. The editing functions a#aila"le in the fullscreen editor are not supported. You can only use the generally a#aila"le elementary editing functions for screen fields. Scrolling in the text is not possi"le. $nly the "eginning of the text line is #isi"le. (f the text lines are wider than the screen fields& you can process that part of the line that is not displayed only in the fullscreen editor. The changes to the text lines are written immediately to the original line ta"le of the text 1Sa"e function of the editor applies automatically3. Thus& you can no longer reconstruct the original state of the text unless you stop all changes made in the transaction from "eing updated.

Contro s Techno ogy The controls technology offers a note editor without formattings and without SAPscript support 1such as sym"ols and commands3I that is& only pure AS4(( text is displayed. To call this editor& use SAP Text'dit.

Page ! $. o# $%

SAP Script Technical Document

(n the de#elopment class STED you can find the sample program SAPS4R(PTKD'<$K-$T'K'D(T$R& which demonstrates how to use Text'dit as inline editor. To present the SAPscript texts two con#ersion modules are used. During the con#ersion of the SAPscript texts& the formatting information& such as paragraph or character format& is lost. %or general information on controls see %ramewor . H4 ! 4ontrols Tutorial and SAP 4ontrol

Page ! $% o# $%

You might also like