lZi| fz}~^z
Z
Zl~F{Fl~`}~_]~ z}ikHL
lZiez{Eb|G 3DOR$OWR&DOLIRUQLD ...
41 downloads
1419 Views
13MB Size
Report
This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
Report copyright / DMCA form
lZi| fz}~^z
Z
Zl~F{Fl~`}~_]~ z}ikHL
lZiez{Eb|G 3DOR$OWR&DOLIRUQLD
\ © 1999 by SAP AG. All rights reserved. Neither this documentation nor any part of it may be copied or reproduced in any form or by any means or translated into another language, without the prior consent of SAP AG.
]|
z~ SAP AG makes no warranties or representations with respect to the content hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose. SAP AG assumes no responsibility for any errors that may appear in this document. The information contained in this document is subject to change without notice. SAP AG reserves the right to make any such changes without obligation to notify any person of such revision or changes. SAP AG makes no commitment to keep the information contained herein up to date.
mz}~z SAP, the SAP logo, R/2, R/3, SAPscript, ABAP, and other SAP related products mentioned herein are registered or unregistered trademarks of SAP AG. All other products mentioned in this document are registered or unregistered trademarks of their respective companies.
Simplification Group SAP Labs, Inc. 3475 Deer Creek Road Palo Alto, CA 94304 ZZZVDSODEVFRPVLPSOH VLPSOLI\U#VDSFRP
Printed in the United States of America. ISBN 1-893570-14-2
&217(176
b}|
JJ h~~ GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG JJ pzb`}~Z{X GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG JK pl
}k~z}`}~X GGGGGGGGGGGGGGGGGGGGGGGGGGGGG JK $VVXPSWLRQV an~`}~XGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG JL +RZ,VWKH*XLGH2UJDQL]HG" 3DUW/HDUQLQJ6$3VFULSW%DVLFV 3DUW0RGLI\LQJ6$3VFULSW)RUPV 3DUW&XVWRPL]LQJ$SSOLFDWLRQVIRU6$3VFULSW)RUPV 3DUW$SSHQGL[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QJRI$GGUHVVHV %27720'HILQH)RRWHU7H[WLQD:LQGRZ %2;326,7,216,=(%R[HV/LQHV6KDGLQJ &$6(&DVH'LVWLQFWLRQ '(),1(9DOXH$VVLJQPHQWWR7H[W6\PEROV +(;+H[DGHFLPDO'DWD ,)&RQGLWLRQDO7H[W2XWSXW ,1&/8'(,QFOXGH2WKHU7H[WV 1(:3$*(([SOLFLW)RUP)HHG 1(::,1'2:1H[W:LQGRZ0$,1 3(5)250&DOOLQJ$%$36XEURXWLQHV 35,17&21752/,QVHUW3ULQW&RQWURO&KDUDFWHU 3527(&73URWHFWIURP3DJH%UHDN 5(6(7,QLWLDOL]H2XWOLQH3DUDJUDSKV 6(7&28175 as follows:
JNQ
SAPscript Made Easy | Release 4.6
lz~Z[Zi{~UWG You can only use internal tables of structure ITCSY in the form routine. The structure is composed of two fields, NAME and VALUE. Text fields are transferred into the NAME field and text field contents into the VALUE field. Create the subroutine in your customer namespace.
)250IRUP!7$%/(6,1B7$%6758&785(,7&6< 287B7$%6758&785(,7&6< (1')250
^z
~
In the example, we will retrieve a customer name from table SCUSTOM. We assume this table is not defined in the print program. The SAPscript form calls the subroutine GET_NAME in the ABAP program ZREADCUSTOM. IRUP! *(7B1$0( SURJ! =5($'&86720 ,19$5 &867 2879$5 1$0( ,1B7$% ,177$% 287B7$% 2877
%$\}~lZi|}S 3(5)250*(7B1$0(,1352*5$0=5($'&86720 86,1* &867 &+$1*,1* 1$0( (1'3(5)250 1$0(
\}~Z[ZizS 5(3257=5($'&86720 7$%/(66&86720
)RUP*(7B1$0(
)250*(7B1$0(7$%/(6,177$%6758&785(,7&6< 2877$%6758&785(,76&'(/,9(53$5$*5$3+D@>35,25,7/,1(6O@ 7,7/(title 1$0( name1>,name2>,name3>,name4@@@ 675((7street 32%2;PO box>&2'(zip code@ 3267&2'(zip code &,7,town2@ 5(*,21region &28175;326@>:,'7+@>+(,*+7@>)5$0(@>,17(16,73$*(@
This command sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting). If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, which is a value that specifies an offset from the upper-left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If a parameter specification is missing, then this parameter is unchanged. n
XORIGIN, YORIGIN is the origin of the coordinate system.
n
WINDOW sets the values for the left and upper edges to be the same of those of the current window (default setting).
n
PAGE sets the values for the left and upper edges to be the same as the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm). ^z
~
326,7,21:,1'2:
The above command sets the origin for the coordinate system to the upper-left corner of the window. 326,7,21;25,*,1&03$*(@
This command sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window (default setting). If one of the parameter specifications is missing, then no change is made to its current value. If a parameter value does not have a leading sign,
SAPscript Control Commands
KLJ
then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. n
WIDTH, HEIGHT sets the dimensions of the rectangle or line.
n
WINDOW sets the values for the width and height relative to the values of the current window (default setting).
n
PAGE sets the values for the width and height to the values of the current output page. ^z
~
6,=(:,1'2:
The above command sets WIDTH and HEIGHT to the current window dimensions. 6,=(:,'7+ &0+(,*+7 &0
The above command sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm. 326,7,21:,1'2: 326,7,21;25,*,17:72%-(&7o@>,'i@>/$1*8$*(l@>3$5$*5$3+p@ >1(:3$5$*5$3+np@
The name of the text to be inserted must be specified and can have up to 70 characters. If the text name contains blanks, put it in quotes as a literal. It can also be specified with a symbol. All further parameters of INCLUDE are optional. If these parameters are missing, SAPscript uses default values based on the respective call environment for them. ^z
~ ,1&/8'(0