You are on page 1of 8

SCRIPTS Intelligroup Asia Private Limited

SAP Scripts/Layout Sets/Forms

Updated on - Apr 20, 2004

Proprietary & Confidential

Page

1o !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

TABLE OF CONTENTS

SAP SCRIPTS/LAYOUT SETS/FORMS.........................................................................1 TABLE OF CONTENTS....................................................................................................2 SAP SCRIPTS...................................................................................................................3 Utilities Con!ert ori"inal lan"ua"e###############################################$

Layout Set#################################################################################### $ Printin" a company lo"o################################################################% T&ere are t'o 'ays to print a company lo"o(#################################% Control Commands######################################################################## %

Updated on - Apr 20, 2004

Proprietary & Confidential

Page

2o !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

Sap Scripts
I t"e user #ants to print do$uments su$" as invoi$es, pur$"ase order, all su$" do$uments are printed #it" t"e use o orms% SAP allo#s t"e user to de ine t"ese orms &' using la'out sets% SAP s$ript is t"e tool used to $reate t"e la'out set% In order to print t"e do$ument, t"e SAP s'stem runs a program t"at $olle$ts t"e data or t"e do$ument and eeds it into t"e la'out set% T"is is $alled as Print Program% SAP Provides a standard la'out set or ever' printa&le do$ument and usuall' t"ere is no need to $reate la'out sets as su$"% User (ust modi ies t"e e)isting la'out sets as per re*uirement o $lient% +ollo#ing are some standard la'out sets provided &' SAP, R-.R/0R 01 R-/0L1.T0 R-PIC3SI1 R-I1-.IC0 01 40/RUC3 +1105PR01U45C6C3 Sales order $on irmation Pi$2ing List Pi$2ing List Invoi$e Pur$"ase .rder Pre-num&ered $"e$2

Usuall' 'ou don7t $reate la'out sets, instead, 'ou $op' t"e e)isting la'out sets #it" some modi i$ation to t"e e)isting la'out sets% SAP doesn7t allo# 'ou to modi ' t"e la'out sets% 8ou need to $op' t"e e)isting la'out set to 'our o#n la'out set and t"en do all t"e modi i$ation% Pro$edure to $op' t"e e)isting la'out sets% Tools 9ord pro$essing La'out sets% Utilities Cop' rom $lient 0nter t"e name o t"e la'out set in la'out name% 0nter target la'out set name Cli$2 e)e$ute T"e SAP standard la'out set uses / :erman as t"e original language% In order to modi ' t"e $opied la'out set, t"e original language o t"e set must &e $"anged to t"e language in #"i$" 'ou are #or2ing%
Updated on - Apr 20, 2004 Proprietary & Confidential

Page

;o !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

To $onvert language, Cli$2 .3%

Utilities < Convert original language Layout Set


La'out set is used to design t"e do$ument% La'out set on its o#n does not $ontain an' data% T"e sele$tion o data or t"e do$ument is done t"roug" t"e print program i%e% t"e print program sele$ts t"e data rom data&ase ta&le and eeds it to t"e la'out set% T"e do$ument is printed a ter t"e print program gets e)e$uted% A la'outs set $onsist o 6eader Paragrap" C"ara$ter String 9indo#s Pages Page 9indo# ollo#ing $omponents,

)eader( T"e "eader $onsists administrative in ormation or t"e la'out sets and de ault settings or t"e various ot"er $omponents o t"e la'out sets li2e page, paragrap"% 8ou give all t"e administrative in ormation or t"e "eader #"en 'ou $reate t"e la'out set, #"ile all de ault settings are spe$i ied #"en all t"e $omponents are $reated% Para"rap&s, A Paragrap" $ontains all t"e in ormation needed to ormat a paragrap" o te)t and ont% Ta&s are important or paragrap"s% Spe$i 'ing t"e list o ta&s is t"e #a' to $reate $olumns or outputting line items o a do$ument% C&aracter strin"( is used to override paragrap" settings or spe$i i$ #ords in a paragrap"% +or e)ample 'ou mig"t #ant to use =old or a single #ord &ut not t"e entire paragrap"% T"e onl' important t"ing t"at is de ined #it" t"e $"ara$ter string is t"e ont% *indo's( A #indo# mainl' $ontains t"e SAP s$ripts te)t and t"e varia&le to &e printed% T"ere is one spe$ial #indo#, 4AI1, #"i$" $ontains t"e output o t"e line item o a do$ument and is $reated &' t"e s'stem% T"e #indo# $an &e o t'pe -AR or C.1ST e)$ept or t"e 4AI1% =ut in t"e present version, SAP s'stem does not distinguis" &et#een t"ese t#o t'pes% T"e $ontent o
Updated on - Apr 20, 2004 Proprietary & Confidential

Page

4o !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

varia&le #indo# is regenerated on ever' page% T"e $ontent o a $onstant #indo# is generated on$e at t"e &eginning and later printed on ever' page%

Printin" a company lo"o T"ere are t#o #a's to print a $ompan' logo,
1% T"e logo $an &e in$luded in t"e la'out set% 2% It $an &e a ma$ro on PCL < > printers% In$luding a logo in t"e la'out sets Create logo #it" a grap"i$s program and save it as ti +rom editor run t"e program RST?L/4C% Parameters to &e passed are +ile name +ile t'pe =4.1 < +or a &la$2 and #"ite image% =C.L < +or a $olor image% Te)t name < T"e standard te)t in la'out set ile%

T"is te)t $an &e in$luded in a la'out set &' in$luding @te)t nameA% Using PCL < > printers, $an also print t"e logo% In R;, t"e printer t'pes are IIPLBIII/, IIPLB4, L?40;C and S4120??S%

Control Commands

A&out $ontrol $ommands, All s$ript $ontrol $ommands are entered in t"e SAP S$ript editor% All $ommands are indi$ated &' /( in t"e tag $olumn .nl' one $ontrol $ommand is allo#ed per line Lines #it" $ontrol $ommands are not a e$ted &' t"e editor ormatting I $ontrol $ommand is un2no#n or in$orre$t, $ommand line is treated as $omment line

A++,ESS( T"is $ommand ormats and address a$$ording to t"e postal


standards o t"e $ountr'% Synta-( D, Address D, Title ECompan'7 D, 1ame EIntelligroup7 D, Street E11>7 D, P%.% =.? F F D, Post$ode D, Cit' D, Region D, Countr'
Updated on - Apr 20, 2004

Proprietary & Confidential

Page

>o !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

D, 0nd Address

BOTTO./EN+BOTTO.( +or t"e 4ain #indo# 'ou $an determine lines,


#"i$" are al#a's output automati$all' at t"e &ottom o t"at #indo#% T"is is $alled ooter te)t% Synta-( D, =.TT.4 D, 01/=.TT.4

BO01 POS2T2ON1 & S23E( T"ese $ommands are used or dra#ing &o)es and are used onl' during $reating output%
Synta-( D, =.? G?posH G8posH G9idt"H G6eig"tH G+rameH GIntensiveH ? I 8 < Upper le t $orner o t"e &o)% 9idt" < 9idt" o t"e &o) 6t < 6eig"t o t"e &o) +rame < T"i$2ness o t"e &o) J/e ault is ull &la$2K Units used or 9idt", 6eig"t and T"i$2ness are T9, PT, I1, C4, C6, L1% 0)%, D, =.? 9I/T6 E207 C4 60I:6T 1 I1 +RA40 10 T9 I1T01SI+8 1>%

POS2T2ON
Synta-( D, P.SITI.1 G? .riginH G8 .riginH G9indo#H GPageH ?I8 Sets t"e origin or ) L ' parameters or t"e &o) $ommand% 9indo# Sets t"e de ault values or t"e le t and upper edges% Pages Sets t"e values or t"e le t and upper edges o t"e $urrent page% =asi$all' used to set de ault setting or t"e &o) $ommand% D, Position ) .rigin E1%>7 $m ' origin E17 $m

S23E
Synta-( D, SIM0 G9I/T6H G60I:6TH G9I1/.9H GPA:0H Sets #idt" and "eig"t parameters or t"e &o) $ommand%
Updated on - Apr 20, 2004 Proprietary & Confidential

Page

No !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

CASE( It is similar to A=APD4 editor $ommand ECAS07 onl' s'm&ol $an &e
*ueried% Synta-( D, CAS0 S84=.L D, 9601 1 D, 9601 2 D, 9601 .T60RS D, 01/CAS0

+EF2NE( -alues $an &e assigned to te)t s'm&ol &' /0+I10 2e'#ord% T"e
assigned value ma' "ave a ma)imum N0 $"ara$ters% It $an also $ontain urt"er s'm&ols% Synta-( D, /0+I10 I S84=.L I O E????7

2F(

9it" I+ $ommand 'ou $an de ine t"e lines t"at are output onl' under $ertain $onditions% Synta-( D, I+ IvarI O E$"ar val7 D, 01/I+

2NCLU+E( Contents o anot"er te)t $an &e in$luded in te)t &' I1CLU/0
$ommand% T"e $ontents are $opied onl' at t"e time o t"e output ormatting% 8ou $an also spe$i ' language and t"e paragrap" irrespe$tive o t"e language in #"i$" t"e $alling te)t is $reated% T"e language #"i$" is used in in$lude test is used or output% Synta-( D, I1CLU/0 48T0?T

109<PA:0, SAP S$ript automati$all' $arries out a page &rea2 i #indo# 4AI1 o one page is illed #it" 109-PA:0 $ommand% 8ou $an a$e page &rea2 at an' point% T"e $urrent page is $ompleted and t"e te)t in t"e ollo#ing line is #ritten on ne# page% I no name is de ined, t"en, t"e ne)t page attri&utes rom page setup is ta2en%

Synta-( D, 109 < PA:0 GPA:0-1A40H

109<9I1/.9, 8ou $an "ave CC 4AI1 #indo#s on one page% I PR.T0CT,

4AI1 #indo# is illed, t"en t"e ne)t 4AI1 #indo# is a$$essed automati$all'% 9it" 109-9I1/.9 $ommand, 'ou $an $all ne)t main #indo# even i t"e $urrent 4AI1 #indo# is not 'et $ompletel' illed%

8ou $an determine t"at a paragrap" must not &e separated &' a page &rea2% T"e lines in t"is $ommand are printed toget"er on one page% I t"e spa$e is enoug" on $urrent page, t"en all t"e lines are printed on $urrent page% I , "o#ever t"e spa$e is not su i$ient t"e PR.T0CT $ommand #or2s as a E109-PA:07%

Synta-( D, PR.T0CT D, 01/PR.T0CT


Updated on - Apr 20, 2004 Proprietary & Confidential

Page

Lo !
Created on - Apr 20, 2004

SCRIPTS Intelligroup Asia Private Limited

SET COUNT,4( Some ield t'pes are ormatted $ountr' < spe$i i$all'%
0%:% date% 1ormall' t"e displa' t'pes are de ined in t"e user master re$ord #it" t"e $ontrol $ommand set $ountr', an alternative to t"at in t"e user master re$ord $an &e $"osen%
S'nta),

D,

S0T C.U1TR8 @C.U1TR8 308A

SET +ATE .AS5( Standard displa' o date $an &e $"anged


Synta-( e%g% S0T /AT0 4AS3 O E44 //// J/a' in ullK ''''7
8ou $an s#it$" &a$2 to de ault displa' o date &'

D, S0T /AT0 4AS3 O E E

SET T2.E .AS5( Standard displa' o time $an &e $"anged


Synta-( D, S0T TI40 4AS3 O E66,447%

TOP/EN+TOP( +or main #indo#, 'ou $an determine lines, #"i$" are
al#a's .DP automati$all' at t"e top o t"e #indo#%

Updated on - Apr 20, 2004

Proprietary & Confidential

Page

!o !
Created on - Apr 20, 2004

You might also like