ࡱ                >  	               t          u          s   x   ܥh Wn 	 e                v                                                                                       $                                                  T     :   L     P      P      P      T  =     ,                          +                  a  X                                            ` a   P     T                                                          P                                                         P            P                    4                                                                                                                                              	 TITEL  \* FORMATVERBINDEN SAP R/3 - Word for Windows Reporting ToolAuthor<Author>OrganisationSAP AGDate of Report:<Creationdate>Address:Neurottstr. 1669185 WalldorfDepartment:Entwicklung ECPrinted:05.08.96Pages: ANZSEITEN  \* FORMATVERBINDEN 1File: DATEINAME  \* FORMATVERBINDEN SAP_REP7.DOTVersion:1Last changed by:SAP .An  	  
.An  :  :                  83'                       	  m           C   Y                -              -        $ 44                -            -                  -     -        $ 4>4   -    -                 -     -        $	 ing   -    -                 -     -        $[ S\_cwfnfdf^c[_[Z]U`PeLnJwIGD@;6-#
xdR?. WW[`diqw|zpd
[OF>3*!$(-6>IS_ky$.>K^uxfSS   -    -                  -     -        $ +]CV+   -    -                 -     -     0   $ )@Sdq~wgYG9)~rfUC+   -    -                  -     -        $ `')'2);0@8BB@O9V2^(``   -    -                    -  N   %%         v k k _ U L D = 8 5 4 4 5	8=D%L+U0_3k4k4v30+%	    -                  -     -        8 1  R Rjosvx{}~ } { x u v x y z { } ~   | q p n l j j i h g f d c ` ^ ^ R ^gknpqtvwwwxx	xxxwwvtsqpnki^^   -    -           vx{}~ dp SAP report applicationdp% bootstrap loader for batchprocessingdp- this macro ist called during WinWord startupdp: execute a winWord process with "WinWord.exe /MBatchstart"dp' to start the application in batchmode.dp/ the MODE falg in SAP_REP_INI must be set to B dp; this macro must be installed in the NORMAL.DOT file to be dp availabel at Startup time!ddiMAINdp Peter Vogel, MCS, 6/94dp init of errorflagdi	errorflagl  dp8 the target directory of the source files is hard coded!dp: change the Next program Line For your custom installationdisaprep_dir$jd:\sap_rep\ddp( Name of the INI file created by SAP-GUIdiinifile$jsap_rep.inidivers$gggl l divers$j7.0dp& Name of template file for SAP reportsdnidotname$jsap_rep7.dotd dnidotname$jsap_rep.dotdTdp2 make the download directory the current directorydgisaprep_dir$ddp search SAP report templatedioperatingsystem$gl ddioperatingsystem$jWindowsdRiwindowsversion$gl dTdioperatingsystem$j
Windows NTiwindowsversion$j4.0dRidir$ngjOHKEY_CURRENT_USER\Software\Microsoft\Microsoft Office\95\FileNew\LocalTemplatesj j d dRidir$gEjMicrosoft WordjUSER-DOT-PATHdTddg	idir$l j\dRidir$idir$j\ddgidir$idotname$j k not found, try againdRioperatingsystem$j
Windows NTiwindowsversion$j4.0doidir$ngjPHKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Office\95\FileNew\LocalTemplatesj j dR doidir$gEjMicrosoft WordjWORKGROUP-DOT-PATHdRTdRg	idir$l j\doidir$idir$j\dRdRgidir$idotname$j k not found, try againdog+jCan not find idotname$j) template file. Please install correctly!jAborting SAP Report applicationl doi	errorflagl dRdddi	errorflagl  k template found, do the job!ddRp% prevent autonew macro from executingdRgրl ddRgO sR idir$idotname$dRgրl  ddR)imainloopvmainisaprep_dir$iinifile$ddRp check for printonly flagdRisection$jcontroldRikey$j	printonlydRivalue$gisection$ikey$isaprep_dir$iinifile$ddRgivalue$jYk print only the reportdogX sl  dogl dop delete intermediate filesdQop MsgBox "killing files"dogj*.DOCk report documentdogj*.INIk	 INI filedogj*.RTFk table filesdogj*.WMFk graphic filesdogj*.TXTk text filesdogj*.LOGk report logdogj*.TMPk Temporary FilesddRdddp Anwendung Schlieen:dp AnwSchlieen "Microsoft Word"dgd dp0 This macro controls the whole reporting processdp3 Stefan Joksch/ P. Vogel, Microsoft Consulting 5/94ddp  Declaration of shared variablesd/0iinifile$diMAINddp identify the Inifile to used)igetinifile$ddp" if we have a INI file, proceed...diinifile$j ddRp% Parse structure and process mainloopdR)imainloopvmainiinifile$ddRp show the logfiledRishowlogvmainiinifile$dd ddRk'No INI File available, close the reportdRk DateiSchlieen 2dddddddddk>--------------------------------------------------------------dpF this function shows a file open dialog and enables the user to selectdp@ a INI File. the default working dir. is set to the selected dirdp# Return: filname$ or "" if canceleddigetinifile$d/idlg4gP diretl  d>idlgdidlgs j*.inidiret?idlgl diretl  dRiinifile$j d ddRiinifile$gl dRg	iinifile$l j\dRiinifile$iinifile$nidlgs dR dRiinifile$iinifile$j\idlgs dRdp MsgBox "*" + inifile$ + "*"dp5 	inifile$ = library.getdateiname$(inifile$) + ".ini"dp MsgBox "*" + inifile$ + "*"dp0 	If InStr(inifile$, "\\\\") <> 0 Then' UNC Namedp 	REM filter \\\\servernamedp` 	inifile$ = Left$(inifile$, 2) + Mid$(inifile$, InStr(7, inifile$, "\")) 	REM filter \sharenamedpJ 	inifile$ = Left$(inifile$, 2) + Mid$(inifile$, InStr(4, inifile$, "\"))	dp 	End IfdTddk>-------------------------------------------------------------- dAiGetWindowsDirectoryANjKernel32ilpBuffer4FinSize4Crd4CdpZ Declare Function GetWindowsDirectory Lib "Kernel"(lpBuffer As String, nSize As Integer) \dp As Integerddp2 The macro assumes an opened logfile on channel #1ddp& array of errormessages in this moduled/0ierrmsg$l
 dddk9---------------------------------------------------------diinit_errormessagesdp7-------------------------------------------------------dpE same routine as in objectlibrary! update synchroniously is necessarydierrmsg$l j#201:No filename defined for object dierrmsg$l j202:Unknown file type : dierrmsg$l j203:Table file not found: dierrmsg$l j204:Objectheadline empty in dierrmsg$l j205:Custom macro not found: dierrmsg$l j206:Text file not found: dierrmsg$l j/207:Unknown Alignment option for graphic file: dierrmsg$l j(208:No support for the chosen language. dierrmsg$l	 j6209:Wrong itemno in the function getlanguagedependencydierrmsg$l
 j0210:notsupported language might cause problems. dddk9---------------------------------------------------------dniinserttableiobjfile$dp7-------------------------------------------------------dp/ Inserts a table file into the current documentdp. The name of the table is given as a parameterdp. An errorlog is written if anything goes wrongdp return 0 if evretything was okdp% P. Vogel, Microsoft Consulting, 6/94ddp" init errormessages of this moduled)iinit_errormessagesddp$ remember current position in reportditextpos1godp Try to insert tabledRp check if tablefile existsdRgiobjfile$j\l  k path is given in INI filedoifname$iobjfile$dR k no path in INI filedoifname$gl j\iobjfile$dRdRgifname$j dog s ifname$sIl  rdos l  doitextpos2godopC select table text to allow custom macros to work on the fileobjectdogqitextpos1itextpos2dog s doiinserttablel  k report no errordR dop* note file does not exist error to logfiledo6ql ierrmsg$l ifname$doiinserttablel k report errordRddddk9---------------------------------------------------------dni
inserttextiobjfile$dp7-------------------------------------------------------dp. Inserts a text file into the current documentdp- The name of the text is given as a parameterdp. An errorlog is written if anything goes wrongdp return 0 if evretything was okdp% P. Vogel, Microsoft Consulting, 6/94ddp" init errormessages of this moduled)iinit_errormessagesddp$ remember current position in reportditextpos1godp Try to insert textdRp check if tablefile existsdRgiobjfile$j\l  k path is given in INI filedoifname$iobjfile$dR k no path in INI filedoifname$gl j\iobjfile$dRdRgifname$j doggl k/Carriage return prior the insertion of the textdog s ifname$sIl  rdos l  doitextpos2godop= select text to allow custom macros to work on the fileobjectdogqitextpos1itextpos2doi
inserttextl  k report no errordR dop* note file does not exist error to logfiledo6ql ierrmsg$l ifname$doi
inserttextl k report errordRdddddk9---------------------------------------------------------dniinsertgraphiobjfile$inobjectistrchapter$iinifile$dp7-------------------------------------------------------dp2 Inserts a graphics file into the current documentdp> the graph is formatted due to special options in the INI filedp. The name of the graph is given as a parameterdp. An errorlog is written if anything goes wrongdp return 0 if evretything was okdp% P. Vogel, Microsoft Consulting, 6/94ddp" init errormessages of this moduled)iinit_errormessagesddp$ remember current position in reportditextpos1godp Try to insert graphdRp check if graphfile existsdRgiobjfile$j\l  k path is given in INI filedoifname$iobjfile$dR k no path in INI filedoifname$gl j\iobjfile$dRdRgifname$j dog s ifname$sj0dogdoitextpos2godogqitextpos1itextpos2dop4 check for additional formatting options in INI filedop! alignment of picture in documentdop& Creation of the Key Word for the key:doiKeyObjnalignment$jObjgginObjectj_GRF_ALIGNMENTdop" Retrieval of the Object Headline:doi	objalign$rdogistrChapter$iKeyObjnalignment$iinifile$do13gi	objalign$do3jCk centerdogSdo3jLk left aligneddogTdo3 do6ql ierrmsg$l ifname$do1ddop frame around the picturedop& Creation of the Key Word for the key:doiKeyObjnframe$jObjgginObjectj
_GRF_FRAMEdop" Retrieval of the Object Headline:doi	objframe$rdogistrChapter$iKeyObjnframe$iinifile$dogi	objframe$jNk frame the picturedog sl  sl  sl sl sl sl sol  spl  scl  sdl  sel  sfl  sgl  shl  s j1 pts l  sl  sl  sj0s;l doddop@ select picture to allow custom macros to work on the fileobjectdogqitextpos1itextpos2dddoiinsertgraphl  k report no errordR dop* note file does not exist error to logfiledo6ql ierrmsg$l ifname$doiinsertgraphl k report errordRddddddpZ -----------------------------------------------------------------------------insertitem()di
insertitemibeginn$iinifile$isection$ikeyparm$dk8Inserts an item from a inifile into the current documentdk<the key of the item is equal to the bookmark where the item dkshould be placeddk-An errorlog is written if anything goes wrongdk= returns 1 if everything was ok, 0 when error was encountereddk% P. Vogel, Microsoft Consulting, 3/94dp9 the key expr is enclosed in <> parentheses in the reportdiposmark$j<ikeyparm$j>di
secbeginn$ibeginn$dd6jInserting Text iposmark$k show activityddgz i
secbeginn$kgoto beginn of section.ddp read value from inifiledp% match the parameters to a local varsdikey$ikeyparm$divalue$gisection$ikey$iinifile$ddk# Move to correct position in reportditextpos1godgp siposmark$s l  ditextpos2goditextpos1itextpos2k) cursor not moved, searchstring not founddRp' note Positionmark does not exist errordR6ql j Positionmark gl' iposmark$rdRgl' j not found in report template.dRi
insertiteml k report errord dRiposokl k& flag that cursor is at right positionddp Try to insert itemdivalue$j dRp note read error to logfiledR6ql jKey gl' ikey$gl' j of section rdRgl' isection$gl' j	 of file rdRgl' iinifile$gl' j not defined.dRi
insertiteml k report errord dRiposokl dogivalue$doi
insertiteml  k report no errordRddddddpg ----------------------------------------------------------------------------- getlanguagedependency$()dp- this function allows the macros to run with dp engl. and german word versiondp6 ATTENTON: Function not yet testet with engl. version!dp3 P. Vogel, Stefan Joksch Microsoft Consulting, 3/94digetlanguagedependency$iitemnodk" itemno: 1=section, 2=page, 3=lineddp" init errormessages of this moduled)iinit_errormessagesdd13iitemnodR3l k Sectiondo13gggl l k A= German, S=Eng, Frado3jDEUTdoigetlanguagedependency$jAdo3jENGLjFRANdoigetlanguagedependency$jSdo3 dop0 note language is not supported error to logfiledo6ql ierrmsg$l
 doigetlanguagedependency$jSdo1dR3l k Pagedo13gggl l k S= German, P=Eng, Frado3jDEUTdoigetlanguagedependency$jSdo3jENGLjFRANdoigetlanguagedependency$jPdo3 dop0 note language is not supported error to logfiledo6ql ierrmsg$l
 doigetlanguagedependency$jpdo1dR3l k linedo13gggl l k Z= German, L= Eng, Frado3jDEUTdoigetlanguagedependency$jZdo3jENGLjFRANdoigetlanguagedependency$jLdo3 dop0 note language is not supported error to logfiledo6ql ierrmsg$l
 doigetlanguagedependency$jLdR1dR3 dop Wrong itemnodo6ql ierrmsgl	 doigetlanguagedependency$jERRORd1dddp[ -----------------------------------------------------------------------------getdateiname$digetDateiName$ib$dkAExtrahieren des Dateinamens aus ganzem Pfad ohne Datei Extension dkErweiterung.dk% P. Vogel, Microsoft Consulting, 2/93ddn!gib$j\l  dnib$g	ib$gib$gib$j\dn"ddp Entferne DateiextensiondnigetDateiName$gib$gib$j.l dddddp[ -----------------------------------------------------------------------------isdirectory()diIsDirectoryiDir$dp@ Prfung, ob ein gegebenes Dirextory auch wirklich vorhanden istdp  ret=0 wenn Dir. NICHT vorhandendp% P. Vogel, Microsoft Consulting, 2/93d,-*ierrorhandledgiDir$eerrorhandledierrlL dniIsDirectoryl  nkReturn 0 if error 76 occursd dniIsDirectoryl nk#Return 1 if error 76 does not occurddddddpc -----------------------------------------------------------------------------GETmomentaneansicht()diGetMomentaneAnsichtidummydpC ermitteln der momentanen Ansicht in Word und rckgeben eines KodesdpM der Kode kann mit SetmomentaneAnsicht verwendet werden, um die ursprnglichedp Ansicht wiederherzustellendp% P. Vogel, Microsoft Consulting, 2/93ddgul dRiGetMomentaneAnsichtl ddgtl dRiGetMomentaneAnsichtl ddgsl dRiGetMomentaneAnsichtl dddpc -----------------------------------------------------------------------------SETmomentaneansicht()diSetMomentaneAnsichtischalterdp- wiederherstellen der ursprnglichen Ansicht.dp( Pendant Funktion zu GETmomentaneansichtdp% P. Vogel, Microsoft Consulting, 2/93d13ischalterdR3l dogudR3l dogtdR3l dogsdR3 dog+j,Ein ungltiger Ansichtskode wurde bergeben.jMakrofehlerl d1ddddpe -----------------------------------------------------------------------------Leerzeichen_ersetzen$()diLeerzeichen_ersetzen$ieingabe$dpS function ersetzt alle Leerzeichen in eingabe$ mit geschtzten Leerzeichen ersetzendpO dies wir u.a. in Zeugnissen und Vertrgen bentigt, wo einzelne Maskeneingabendp4 im gedruckten Dokument nicht getrennt werden drfendp% P. Vogel, Microsoft Consulting, 4/93dia$ieingabe$dp Nur wenn es sich lohntdgia$l dR#iil $gia$l dog
ia$iil j doia$gia$iil gl g
ia$iil dodR&iiddiLeerzeichen_ersetzen$ia$dddddp[ -----------------------------------------------------------------------------getsectsize()dpH function returns the size in chars of the current section given as parmdp# P. Vogel Microsoft Consulting 3/94digetsectsizeisectionpointerdp get the desc of the sectiondisectionmark$igetlanguagedependency$l ggisectionpointerddp Select the whole sectiondgz isectionmark$ditextpos1godgk switch on selectmodedgz igetlanguagedependency$l j+k goto next sectiondgH k switch off selectmodeditextpos2gpditextpos1itextpos2k$ cursor not moved becaus of endofdocdRgz j	\endofdocdRitextpos2god k last section: goto end of docdRp goto end of prev. sectiondRg l l ddp  return size of section in charsdigetsectsizeitextpos2itextpos1ddddk9---------------------------------------------------------diPageOrientationi
strOrient$dp7-------------------------------------------------------dp6 written by Stefan Joksch,Peter Vogel MCS May 27, 1994dp" init errormessages of this moduledp Call init_errormessagesddpB Changes the orientation of the page if the orientation requested dp? by the argument strOrient$ is different from the present one. dp5 For the argument are the following values permitted:dp+ p or P for Portrait; l and L for LandscapedpB For other argument values the orientation is set to the default, dp which is Portrait.ddpA Preset of Function Value, and of requested orientation value to dp  the default value Portrait (0) diPageOrientationl  k. Default return Code: No change of OrientationdinObjnOrientl  Rk%Set requested Orientation to Portait	ddp8 retrieval of printerspec. paperformat from Winword6.inidipformat$gEjMicrosoft WordjSAP-REPORT-PAPERFORMATdipformat$j k# no paperformat defined, do it now!dR)idefinepaperformatdRp8 retrieval of printerspec. paperformat from Winword6.iniddp! Retrieval of Current Orientationd/i
OrientPage4g d>i
OrientPagedicurrentorientationi
orientpagesGddRp Retrieval of the switch valuedRp@ KeyObjnOrient$ = "Obj" + LTrim$(Str$(nObject)) + "_Orientation"dRp strObjnOrient$ = \dRp@ GetPrivateProfileString$(strChapter$, KeyObjnOrient$, inifile$)dRdRp1 Analysis of strObjnOrient$ for Landscape requestdRi
strOrient$jli
strOrient$jLdop# Requested Orientation is LandscapedoinObjnOrientl Rk&Set requested orientation to LandscapedR doinObjnOrientl  Rk%Set requested orientation to portraitdRdRp; Change orientation according to the Request, if necessary:dRicurrentorientationinObjnOrientdop beginn a new sectiondog s l dog2dp' 		' toggle portrait / Landscape formatdp dp! 		If currentorientation = 1 Thendp 			OrientPage.AnwAuf = 0dp 			OrientPage.HochQuer = 0dp  			OrientPage.Registerkarte = 1dp  			OrientPage.PapierGre = "0"dp% 			OrientPage.SeitenBreite = "21 cm"dp& 			OrientPage.SeitenLnge = "29,7 cm"dp# 			DateiSeiteEinrichten orientpagedp 			DateiSeiteEinrichten .AnwAuf = 0, .HochQuer = 0, .Registerkarte = 1, .PapierGre = "0",  .SeitenBreite = "21 cm", .SeitenLnge = "29,7 cm"dp 		Elsedp dp 			OrientPage.AnwAuf = 0dp 			OrientPage.HochQuer = 1dp  			OrientPage.Registerkarte = 1dp  			OrientPage.PapierGre = "0"dp% 			OrientPage.SeitenBreite = "21 cm"dp& 			OrientPage.SeitenLnge = "29,7 cm"dp# 			DateiSeiteEinrichten orientpagedp dp 			DateiSeiteEinrichten .AnwAuf = 0, .HochQuer = 1, .Registerkarte = 1, .PapierGre = "0",  .SeitenBreite = "21 cm", .SeitenLnge = "29,7 cm"dp	 		End IfdoiPageOrientationl k% Return Code: Orientation has changeddRdd diMAINistrChapter$iinifile$ilogfile$inSavedp----------------------------------------------dp*' written by Stefan Joksch 			May 20, 1994ddp MacroName: Objects dp ------------------------dpC Insertion of the objects into the chapter of the report under workdp1 according to the orders given in the .INI file; dpC nSave : A number which triggers File Save after a fixed number of dpE inserted objects (save after each 20th, i. e. nFixSave=20 object is dp recommended).dp/ It is augmented by 1 for each inserted object.dp? The following control parameters are analysed (# is a number):ddp=	Obj#_File		file name of the object, which can be a .RTF filedpW					(table, text), a .WMF file (graphics) or a .TXT file REM					(text), respectively.dp# Obj#_Headline	The objects headlinedp& Obj#_Orientation The page orientationdp@ Obj#_Newpage	The flag ordering the begin of a new page, if set.dp Obj#_Macroname	Identifiing the MACR acommpagnied to a Obj#File. This REM					Macro should be running immediately after loading the REM					object and marking its contents.dp Obj#_GRF_Alignmentdp.					Alignment of a .WMF graph in the documentdpD	Obj#_GRF_Frame	A Flag which controls wether a graphic gets a frame.ddp Preset Cursor and Parametersdgl dinFixSavel Rk) relevant number of objects for FileSave ddp7 Retrieve the number of Objects in the present Chapter:dinObjectsggistrChapter$jNumberiinifile$ddinobjectsl  k if we have objects, continueddp Insert Objects:d#inCountl $inObjectsdRdRp? Get the Objectparameter of the j Object And insert it in the 	dRp$ appropriate way into the Document !dR6jInserting the Chapter: (istrChapter$(j
, Object#:(gincountddRp
 New page dRinReturniobjectlibraryvObjectNewpageistrChapter$inCountiinifile$ddRp page orientationdRinReturniobjectlibraryvObjectOrientationistrChapter$inCountiinifile$ddRp object headlinedRinReturniobjectlibraryvObjectHeadlineistrChapter$inCountiinifile$ddRp5 inserting an object and do not forget to count nSavedRinreturniobjectlibraryv
ObjectFileistrChapter$inCountiinifile$dRinSaveinSavel dRp Print "New nSave = "; nSavedRinSaveinFixSavedogS doinSavel  dRdRQdRp  run custom macro on new object.dRp) The new object is selected in the reportdRinreturniobjectlibraryvObjectmacronameistrChapter$inCountiinifile$dd&inCountddk nobjects checkddp Reset Cursordgl  dddpH ******************** End Of Sub *************************************** dp1 Displays the logfile after the build of a reportdp$ P. Vogel Microsoft Consulting, 3/94diMAINi	filename$dRimsg$j$Display the Log file of this Report?dRiinifile$i	filename$dRiretg+imsg$jDisplay Log?l$ dRiretl doilogfile$iinifile$doilogfile$ilibrarywgetdateiname$ilogfile$j.logdoicmd$jnotepad.exe gl j\ilogfile$dog-icmd$l dRd dp& array of errormessages in this moduled/0ierrmsg$l ddiMAINiinifile$dp---------------dp3 written by Stefan Joksch, Peter Vogel May 20, 1994dp, Class "Chapters" of the SAP Reporting Tool.dp& Logfile must be open as filehandle #1ddp Preset of Parameters dinSavel  Rk Count parameter for FileSave dok* after a fixed number of inserted objects.dok; It has to be counted for the objects of all chapters, thusdokn nSave is a data attribut of CHAPTERS and only its address is 			' given to OBJECTS for manipulation of nSave.ddp& array of errormessages in this moduledierrmsg$l j2101:Invalid structure definition in the.INI - filedierrmsg$l j)102:Number of structure entries undefineddierrmsg$l j'103:Depth of Chapters must be positive:dierrmsg$l j*104:Maximum Outline depth of Chapters Is 9dierrmsg$l j:105:Depth of Chapters must be defined from an equal numberdddp5 structure description of the report in the inifile$:distrSection$j	Structuredi
KeyNumber$jNumberdinChapterggistrSection$i
KeyNumber$rdoniinifile$dinChapterl  dR#ijl $inChapterddoiKeyChapter$jHeadingggijdoistrChapter$rdogistrSection$iKeyChapter$iinifile$ddoistrChapter$j k Error Checkdo6ql ierrmsg$l iKeyChapter$do kChapter availabledop& check for headerpage for this chapterdoijl k" insert pagebreak after headerpagedoiretiobjectlibraryvObjectheaderpageistrchapter$iinifile$l do k# insert pagebrake before headerpagedoiretiobjectlibraryvObjectheaderpageistrchapter$iinifile$l  dodoinOutlineiChapterOutlineistrChapter$doinoutlinel  k OK, continueddop$ Set the page layout of the Chapter:doinReturniChapterLayoutistrChapter$iinifile$ddop$ Insert the Headline of the Chapter:doistrHeadline$rdogistrChapter$jHeadlineiinifile$doinReturniChapterHeadlineistrHeadline$inOutlinedop Analyse nReturn:doinReturnl k OK, continuedop4 Insert Objects into the Chapter (nSave by address!)do)rdoiObjectsvmainistrChapter$iinifile$ilogfile$inSavedok Chapterheadline checkdok outline checkddodR&ijd dRp signal severe errordR6ql ierrmsg$l dR6ql ierrmsg$l dTdddpH************************ End Of Main ***********************************dddiChapterOutlineistrChapter$dp!---------------------------------dp: written bY Stefan Joksch, Peter Vogel MCS 			May 27, 1994dp( check the structure entry of a headlinedpF Do the following by a Function And give a number back, This number Isdp4 either the Chapter depth or an Error number(<= 0) !ddRp Presetting of Function Value: dRiChapterOutlinel  dRdRinStringgistrChapter$dRinStringl  do6ql ierrmsg$l istrChapter$doiChapterOutlinel k Error Code: -1dRinStringl dok/ Error : Maximum Outline depth of Chapters Is 9do6ql ierrmsg$l doiChapterOutlinel Rk Error Code: -2dRinStringl do6ql ierrmsg$l doiChapterOutlinel Rk Error Code: -3dR doiChapterOutlineinString	l dRddpH************************* End Of Function ******************************dddiChapterHeadlineistrHeading$inOutlinedp,--------------------------------------------dp7 written by Stefan Joksch,Peter Vogel MCS, May 26, 1994ddp; Inserts a Headline at the Cursor Position And prepares itsdp outline in the document .dp returns 1 if everything was OKdRiChapterHeadlinel  nk' Preset of Function Control Value to OKdRistrOutline$jTOPgginOutlinedR6istrOutline$dRggl RkCarriage ReturndRiStartgodRgistrHeading$dRiEndegpdRgqiStartiEndedRg s istrOutline$sdRgz s j	\endofdocdRichapterheadlinel k
 signal OKddpH************************** End Of Function *****************************dddk9---------------------------------------------------------diChapterLayoutistrChapter$iinifile$dp7-------------------------------------------------------dp6 written by Stefan Joksch,Peter Vogel MCS May 27, 1994dp" init errormessages of this moduledp Call init_errormessagesddpH Analyses the occurence and setting of the HL_Orientation switch in the dp .INI File. If it is set to a value L or P, deviating from the present REM setup, then a PageBreak is inserted into the Document and the dp orientation is toggled.. ddRp Preset of Function ValuedRiChapterLayoutl  ddRp# Retrieval of the Orientation valuedRiKeyChOrient$jHL_OrientationdRistrChOrient$rdRgistrChapter$iKeyChOrient$iinifile$ddRp! Retrieve the pagebreak parameterdRistrNewpage$rdRgistrChapter$j
HL_Newpageiinifile$ddRp< Toggle the page if requested (accompanied by a page break).dRp7 Using the Return code of the PageOrientation Function dRp> (=1 if orientation was toggled) to decide wether a requested dRp page break is performed or notdRiLibraryvPageOrientationistrChOrient$l dogistrNewpage$jYdogdodRddddkJ***************************** End Of Function **************************** dp& array of errormessages in this moduled/0ierrmsg$l ddiMAINiinifile$dp1 Main loop for the SAP Reporting Generation Tool.dp/ written by Stefan Joksch, P. Vogel / MCS, 5/94ddp& array of errormessages in this moduledierrmsg$l j001:Start of SAP reportdierrmsg$l j002:End of SAP reportdierrmsg$l j?003:Aborting SAP report due to severe error during save processddp Declaration of Local variableddp store current optionsd/iopt_view4g d>iopt_viewd/iopt_general4g d>iopt_generald/iopt_save4g d>iopt_saved/i	opt_print4g d>i	opt_printddp open errorlogfiledilogfile$iinifile$dilogfile$ilibrarywgetdateiname$ilogfile$j.logdp delete logfile if there is anydgilogfile$j dRgilogfile$dddp Oeffnen Errorlog:d=ilogfile$#<4ql d6ql ierrmsg$l ddp Save the Reportdireti
savereportvsaveiinifile$diretl k$ report was saved, create the reportdRp Set Word optionsdR)i
setoptionsdRp  check for debug modedRisection$jcontroldRikey$jdebugdRidebug$gisection$ikey$iinifile$dRgidebug$jYdogl dR dogl  dRddRp goto beginning of text bodydRisectionmark$ilibrarywgetlanguagedependency$l dRisectionmark$isectionmark$j2dRgz s isectionmark$ddRp insert chapters and objectsdR)iChaptersvmainiinifile$dRdRp save everything done up to nowdRgl ddRp work on FrontpagedR)i	Frontpagevmainiinifile$ddRp' Work on misc. Attributes of the reportdR)ireportlayoutvmainiinifile$ddRp insert Table of contentdR)iTableOfContentsvmainiinifile$ddRp close Log filedR6ql ierrmsg$l dRLql dRgl ddRp signal the enddRg,dR6jSAP report is readydd k" abort and close uncomplete reportddRp close Log filedR6ql ierrmsg$l dR6ql ierrmsg$l dRLql dRgl ddddp ReSet Word optionsd)iresetoptionsdg niopt_viewdg niopt_generaldg niopt_savedg ni	opt_printdd dp& array of errormessages in this moduled/0ierrmsg$l ddiMAINiinifile$dp --------------dp completing the FRONTPAGEdp! P. Vogel, Stefan Joksch MCS 6/94dp& array of errormessages in this moduledierrmsg$l j001:Start of SAP reportdierrmsg$l j002:End of SAP reportddp Change Cursordgl ddp check for frontpage option dp" and delete frontpage if necessarydisection$jcontroldikey$j	frontpagedivalue$gisection$ikey$isaprep_dir$iinifile$ddp  MsgBox("Frontpage = " + value$)dgivalue$jNk no frontpage, delete it!dR6jDeleting the frontpage ...dRgz s j\startofdocdRitextpos1godRimark$ilibrarywgetlanguagedependency$l dRimark$imark$j2dRgz s imark$dRp ZeichenLinks 1dRitextpos2gpdRgqitextpos1itextpos2dRgdRp- Print "Frontpage should be deleted, now ..."d k insert items on frontpagedR6jInserting the front page ...dRp' goto the first section of the documentdRgz s j\startofdocdRisectionmark$ilibrarywgetlanguagedependency$l dRisectionmark$isectionmark$j1dRgz isectionmark$ddRp Insert the general informationdRisection$jGENERALINFOdRiretrdRilibraryv
insertitemisectionmark$iinifile$isection$jAuthordRiretrdRilibraryv
insertitemisectionmark$iinifile$isection$jCreationdateddRp Actualize Data fieldsdRinReturniFrontpageActualizeddddp Set Cursor backdgl  ddddkJ************************** End of SUB ************************************ddiFrontpageActualizedp -----------------------dp' written by Stefan Joksch 	16.June 1994ddpE This function actualizes the information of the frontpage using the dp contents of the file info boxddp* Set Function Value to 0 (everything o.k.)diFrontpageActualizel  ddp
 Actualizedgz s j\startofdocditextpos1godimark$ilibrarywgetlanguagedependency$l dimark$imark$j2dgz s imark$dg l ditextpos2gpdgqitextpos1itextpos2dg  dddpH************************ End of Macro ********************************** dp: inserts customer info into the File info Dialog and savesdp the reportdisaveiinifile$ddk mark template as cleandgl  dd/idlg4gV d>idlgdp* insert customerinfo into File info Dialogddisection$jGeneralInfodikey$jHeadlinedivalue$gisection$ikey$iinifile$didlgsb ivalue$ddisection$jGeneralInfodikey$jAuthordivalue$gisection$ikey$iinifile$didlgsd ivalue$ddikey$jCreationdatedivalue$gisection$ikey$iinifile$didlgsf jReport created ivalue$dddp retrieve document namedisection$jcontroldikey$jdocnamedidocname$gisection$ikey$iinifile$ddp retrieve document pathdisection$jcontroldikey$jdocpathdidocpath$gisection$ikey$iinifile$dddp$ check for interactive or batch modedisection$jcontroldikey$jmodedivalue$gisection$ikey$iinifile$dgivalue$jBk batch modedRp Update Fileinfo recorddRgV idlgdRidocpath$j dog	idocpath$l j\doidocpath$idocpath$j\dodoilibraryvisdirectoryidocpath$l dogidocpath$do doisavel  k signal errordodR k default: *.doc = *.inidoidocname$iinifile$doidocname$ilibrarywgetDateiName$idocname$j.docdRdRp store documentdRgT s idocpath$idocname$dRisavel d k interactive modedRp show fileinfo dlgdRiret?idlgdRiretl dop Update Fileinfo recorddogV idlgddop save file dialogdoidocname$j doidocfile$idocname$do doidocfile$iinifile$doidocfile$ilibrarywgetDateiName$idocfile$j.docdodoilibraryvisdirectoryidocpath$l dogidocpath$dodo/idlg24gT doidlg2s idocfile$doiret?idlg2doiretl  dog,dog+j6Report can not be created without intermediate saving!jCancel Reportl do6ql j-Report canceled due to no intermediate savingdoisavel  do dogT s idlg2s doisavel dod dog,dog+j6Report can not be created without intermediate saving!jCancel Reportl doisavel  ddRddddpK activate fast save option for intermedate commits during the build processdg sVl  dd dp@ this macro sets the options for the build process of the reportdp% P. Vogel Microsoft Consulting , 5/93diMAINdgDgDdgudg nsNl  s l  rdQs: l  s; l  s< l  rds= l  s' l  s> l  rdsl  s l  sA l  ddg s6 l  s~l rdQs+l  ddg s l  rdsVl  s4 l  sWj ddg sl  ddp Hide all Toolbarsddk> code bracketing for English French and German Version of WorddiL_Language$gggl l diL_Language$jDEUTiL_Language$jENGLiL_Language$jFRANdRiL_Language$jXXXXdTdivers$gggl l dp+ Select Case Left$(UCase$(AnwInfo$(16)), 4)d13iL_Language$dR3jDEUTk german versiondoivers$j6.0dogCsjFormatierungsdo dogCsjFormatsdoTdogCsjStandardsdogCsjRahmensdogCsj	DatenbanksdogCsj	ZeichnungsdogCsjFormularsdogCsjMakrosdogCsj	MicrosoftsdR3jENGLkEnglish versiondogCsj
FormattingsdogCsjStandardsdogCsjBorderssdogCsjDatabasesdogCsjDrawingsdogCsjFormssdogCsjMacrosdogCsj	MicrosoftsdR3jFRANkFrench versiondogCsjStandardsdogCsjMise en formesdogCsjBase de donnessdogCsjDessinsdogCsj
FormulairesdogCsjEnregistrement de macrosdogCsj	MicrosoftsdogCsjBorduressdR3 d1ddk- template was set dirty, so reset it to cleandgl  d dp& array of errormessages in this moduled/0ierrmsg$l ddiMAINiinifile$dp#, defining the layout of the reportdp: reads and interprets misc. options in the [CONTROL] blockdp of the INI filedp# P. Vogel, Stefan Joksch, MCS, 6/94ddierrmsg$l j&021:Unknown option for chapter numbersddp inserting chapter numbersdiretichapternumbersiinifile$ddp Inserting headlinediretiHeadlineiinifile$ddp Inserting footlinediretifootlineiinifile$ddp Inserting pagenumbersdiretipagenumbersiinifile$ddddddk3---------------------------------------------------dichapternumbersiinifile$dp inserting chapter numbersd6jInserting chapter numbers ...dichapternumbersl  disection$jcontroldikey$jChapternumbersdichapnumber$gisection$ikey$iinifile$d13gichapnumber$dR3jNdog dog[sdR3 k Assume Default: Ydop Print #1, errmsg$(1)dop chapternumbers = - 1dog[sj3dog^sQ l  d1ddddk3---------------------------------------------------diHeadlineiinifile$dp% inserting the header into the reportdp/ this function assumes that the view is normal!dp+ this should be done in function SETOPTIONSdp P. Vogel MCS 6/94dd6jInserting headline ...diHeadlinel  disection$jGENERALINFOdikey$jHEADERdiHeader$gisection$ikey$iinifile$diheader$j doisectionmark$ilibrarywgetlanguagedependency$l doiSectionmark$iSectionmark$j2dogz s isectionmark$dogdogdodogiheader$dogddddk3---------------------------------------------------difootlineiinifile$dp' inserting the footline into the reportdp/ this function assumes that the view is normal!dp+ this should be done in function SETOPTIONSdp P. Vogel MCS 6/94dd6jInserting footline ...difootlinel  disection$jGENERALINFOdikey$jFOOTERdifooter$gisection$ikey$iinifile$difooter$j doisectionmark$ilibrarywgetlanguagedependency$l doiSectionmark$iSectionmark$j2dogz s isectionmark$dogdogdodogifooter$dogTk footer text is left alignedddifootlinel  dddddk3---------------------------------------------------dipagenumbersiinifile$dp& inserting pagenumbers into the reportdp/ this function assumes that the view is normal!dp+ this should be done in function SETOPTIONSdp P. Vogel MCS 6/94dd6jInserting pagenumbers ...dp check for pagenumberdisection$jCONTROLdikey$jPAGENUMBERSdipagenumber$gisection$ikey$iinifile$d13gipagenumber$dR3jNk no page numbersdR3 k" inserting pagenumbers is default!doisectionmark$ilibrarywgetlanguagedependency$l doiSectionmark$iSectionmark$j2dogz s isectionmark$dogdogdodogk goto end of footline areadop& pagenumbers are inserted rightaligneddogdog dogUdogd1dipagenumbersl  d diMAINdk> code bracketing for English French and German Version of WorddiL_Language$gggl l diL_Language$jDEUTiL_Language$jENGLiL_Language$jFRANdRiL_Language$jXXXXdTdp+ Select Case Left$(UCase$(AnwInfo$(16)), 4)divers$gggl l d13iL_Language$dR3jDEUTk german versiondoivers$j6.0dogCsjFormatierungsPdo dogCsjFormatsPdoTdogCsjStandardsPdR3jENGLkEnglish versiondogCsj
FormattingsPdogCsjStandardsPdR3jFRANkFrench versiondogCsjStandardsPdogCsjMise en formesPdR3jXXXXd1dd dp& array of errormessages in this moduled/0ierrmsg$l	 ddk9---------------------------------------------------------diinit_errormessagesdp7-------------------------------------------------------dp= same routine as in library! update synchronisly is necessarydierrmsg$l j#201:No filename defined for object dierrmsg$l j202:Unknown file type : dierrmsg$l j203:Table file not found: dierrmsg$l j204:Objectheadline empty in dierrmsg$l j205:Custom macro not found: dierrmsg$l j206:Text file not found: dierrmsg$l j/207:Unknown Alignment option for graphic file: dierrmsg$l j(208:No support for the chosen language. dierrmsg$l	 j6209:Wrong itemno in the function getlanguagedependencydddk9---------------------------------------------------------di
ObjectfileistrChapter$inObjectiinifile$dp7-------------------------------------------------------dp7 written by Stefan Joksch,Peter Vogel MCS, June 1, 1994dp( inserts file objects into the document.dp" there are 3 file types inserted: dp Tables (*.RTF)dp Graphs (*.wmf)dp Text (*.txt)ddp" init errormessages of this moduled)iinit_errormessagesdddp determine the filetypedRp, Creation of the Key Word for the file name:dRiKeyObjnfile$jObjgginObjectj_filedRdRp" Retrieval of the Object Headline:dRistrfile$rdRgistrChapter$iKeyObjnfile$iinifile$dp check if filename is defineddRistrfile$j do6ql ierrmsg$l istrChapter$j,iKeyObjnfile$dR dop& insert the file with the right methoddo13gg	istrfile$l do3jRTFk Inserting a tabledoi
Objectfileilibraryvinserttableistrfile$k inserting the tabledodo3jWMFk Inserting a Graphdok inserting the graphdoi
Objectfileilibraryvinsertgraphistrfile$inobjectistrchapter$iinifile$do3jTXTk Inserting a Textdoi
Objectfileilibraryv
inserttextistrfile$k inserting the textdo3 do6ql ierrmsg$l istrChapter$j,iKeyObjnfile$doi
Objectfilel k signal an errordo1dodddddddk9---------------------------------------------------------diObjectHeadlineistrChapter$inObjectiinifile$dp7-------------------------------------------------------dp7 written by Stefan Joksch,Peter Vogel MCS, May 26, 1994dp+ Inserts a Headline at the Cursor Position.dp" init errormessages of this moduled)iinit_errormessagesddRp Preset of function value:dRiObjectHeadlinel  nk' Preset of Function Control Value to OKddRp2 Creation of the Key Word for the Object Headline:dRiKeyObjnHeadline$jObjgginObjectj	_HeadlinedRdRp" Retrieval of the Object Headline:dRistrHeading$rdRgistrChapter$iKeyObjnHeadline$iinifile$ddRp Error Handling:dRistrHeading$j do6ql ierrmsg$l istrChapter$j,iKeyObjnHeadline$doiObjectHeadlinel Rk Error Code for ReturndoistrHeading$j dRddRp! Insertion of the Object HeadlinedRggl RkCarriage ReturndRiStartgodRgistrHeading$dRiEndegpdRgqiStartiEndedRp, Object Headline is formatted as normal textdRg s jNormalsdRgz s j	\endofdocdddddk9---------------------------------------------------------diObjectmacronameistrChapter$inObjectiinifile$dp7-------------------------------------------------------dp) written by Peter Vogel, MCS	June 1, 1994ddp" init errormessages of this moduled)iinit_errormessagesdddp- Creation of the Key Word for the Macro name:diKeyObjnmacro$jObjgginObjectj
_macronamedp" Retrieval of the Object Headline:dimacro$gistrChapter$iKeyObjnmacro$iinifile$dp check if macroname is defineddimacro$j dp no macro defined,dp@ deselect the inserted object, otherwise it would be overwrittendRgz s j	\endofdocd dRp8 run the custom macro on the selected text in the reportdRp check if macro existsdRgĀimacro$l k macro availabledop
 run macrodog s imacro$sdR do6ql ierrmsg$l imacro$dRdRp2 deselect the inserted object, and goto end of docdRgz s j	\endofdocddddddk9---------------------------------------------------------diObjectNewpageistrChapter$inObjectiinifile$dp7-------------------------------------------------------dp+ written by Stefan Joksch, MCS May 26, 1994dp" init errormessages of this moduled)iinit_errormessagesddpE Analyses the occurence and setting of the Obj#Newpage switch in the dpF .INI File. If it is set to Y, then a PageBreak is inserted in to the dp Document. ddp Preset of Function ValuediObjectNewpagel  ddp Retrieval of the switch valuediKeyObjnNewpage$jObjgginObjectj_NewpagedistrObjnNewpage$rdgistrChapter$iKeyObjnNewpage$iinifile$dRdp Analysis of strObjnNewpage$distrObjnNewpage$j gistrObjnNewpage$jNk default valuedRiObjectNewpagel  d k Start of a new pagedRgdRiObjectNewpagel  ddddddk9---------------------------------------------------------diObjectOrientationistrChapter$inObjectiinifile$dp7-------------------------------------------------------dp6 written by Stefan Joksch,Peter Vogel MCS May 27, 1994dp" init errormessages of this moduled)iinit_errormessagesddpI Analyses the occurence and setting of the Obj#Orientation switch in the dp .INI File. If it is set to a value L or P, deviating from the present REM setup, then a PageBreak is inserted into the Document and the dp orientation is toggled.. ddp Preset of Function ValuediObjectOrientationl  ddp Retrieval of the switch valuediKeyObjnOrient$jObjgginObjectj_OrientationdistrObjnOrient$rdgistrChapter$iKeyObjnOrient$iinifile$dRdinReturniLibraryvPageOrientationistrObjnOrient$dddddk9---------------------------------------------------------diObjectheaderpageistrchapter$iinifile$ipagebreakflagdp7-------------------------------------------------------dp7 pagebreakflag determines where to insert the pagebreakdp= 0 = before headerpage (normal chapter, and global headerpagedp/ 1 = after headerpage (1. headerpage in report)dp@ checks for headerpage entry in the control section for a globaldpG headerpage and in each chaptersection for chapter specific headerpagesdp= the layout of the headerpage is defined in an autotext entrydp which is inserted on demand.dp5 written by P. Vogel, Stefan Joksch MCS June 16, 1994dp" init errormessages of this moduled)iinit_errormessagesdikey$j
Headerpagedi	filename$gistrchapter$ikey$iinifile$di	filename$j k1 there is an entry for the headerpage, insert it!dRipagebreakflagl  dogdRdRp0 inserting a new page with layout for HeaderpagedRg{ s jVorlaufblatts l s dRg l k set cursor into the framedRp inserting an objectdRiObjectheaderpageilibraryvinserttablei	filename$k inserting the tabledRgl k set cursor into normal textdRipagebreakflagl dogdRddd dp& array of errormessages in this moduled/0ierrmsg$l ddiMAINiinifile$dp:, inserting table of content due to the switch in INI filedp# P. Vogel, Stefan Joksch, MCS, 6/94ddierrmsg$l j'011:Unknown option for table of contentdisection$jcontroldikey$jTableOfContentsditoc$gisection$ikey$iinifile$dp check for frontpage option dikey$j	frontpagedivalue$gisection$ikey$isaprep_dir$iinifile$ddd13gitoc$dR3jSTARTdRgivalue$jYk There is a frontpagedoisectionmark$ilibrarywgetlanguagedependency$l doiSectionmark$iSectionmark$j2dogz s isectionmark$dog s) l s l s l sl s l dR k? No frontpage, but Table of content at the beginning of the docdop What is about VORLAUFBLATT?	dogz s j\startofdocdoisectionmark$ilibrarywgetlanguagedependency$l doiSectionmark$iSectionmark$j1dogz s isectionmark$dog s) l s l s l sl s l dRTdRddR3jENDdogz s j	\endofdocdogdog s) l s l s l sl s l dR3jNOdop no table of contentdR3 do6ql ierrmsg$l d1dd diMAINdp definition of the paperformatdp P. Vogel, MCS, 17.6.94dg+j1Paperformat not yet defined for your SAP reports.gl j Please define it now!jPaperformatl@ d/idlg4g d>idlgdidlgsl  didlgsl diret?idlgdipformat$idlgsdgFjMicrosoft WordjSAP-REPORT-PAPERFORMATipformat$d dpB this is a demo of the capabilities of custom macro functionality.dpH SAP gives no warranty on the quality and functionality of custom macrosdiMAINdp> this macro replaces the color coded information in ABAP-listsdp/ with text attributes  Font size, bold, italicsdp P. Vogel, MCS 6/94dp; search black text and replace it with autocolor bold 12 ptdgq ns# l  dgv s" j14s# l  s$ l s% l  dgu sj s j s l  s l  s l  sl  sl  ss l s}l  ddpF search black text, 2nd headline and replace it with black, bold 12 ptdgq ns# l dgv s" j12s# l s$ l s% l  dgu sj s j s l  s l  s l  sl  sl  ss l s}l  dddp; search green text and replace it with autocolor bold 12 ptdgq ns# l dgv s" j10s# l  s% l s$ l  dgu sj s j s l  s l  s l  sl  sl  ss l s}l  ddp; search dark blue text and replace it with auto color 10 ptdgq ns# l dgv s" j10s# l  s% l  s$ l  dgu sj s j s l  s l  s l  sl  sl  ss l s}l  ddp; search cyan text and replace it with auto color 10 pt bolddgq ns# l dgv s" j10s# l  s$ l dgu sj s j s l  s l  s l  sl  sl  ss l s}l  dd                                                                                                                                                                                                        #  $  M  N  X  _  h  v  }  ~                                      ,  -  .  /  0  1  7  8  W  X  d  e  f  g  r  s            C                                                                                                                                                                     u uD    c ] c Uc$ Uc U U] ` bc0 uD    U] ` bc0 uD  6             O  P  Q  R  S  T  U  V  W  X  _  h  i  v  }  ~                                                        $  $d $  $  $  $  $  $  $  $  $  $	  P P $	  P P $  $  $	  P P $  $  $	        $	      $  $  $           
  F  j	#     &)')()))        	  1 %- &                            0  1  7  f  g  p  r  s                         $  $  $  $  $  $  $  $  $  $	      $	      $	      $	      $	            $  $        $              $                                                       < 4                                                   
  F  j	#          K        @  Standard     a	 n @  n berschrift 1,TOP1 B   < 4                                                U] c k  l @  l berschrift 2,TOP2 B   < 4              .                               
 UV] c h @  h berschrift 3,TOP3 B   < 4              .                                Uc  j @  j berschrift 4,TOP4 B   < 4              .                                UVc  f @  f berschrift 5,TOP5 @   < 4              .                                ] c h @  h berschrift 6,TOP6 @   < 4              .                                V] c d @  d berschrift 7,TOP7 @   < 4              .                                ]  f @  f berschrift 8,TOP8 @   < 4              .                                V]  h 	@  h berschrift 9,TOP9 @ 	 	 < 4              .                                V] c & A@ & Absatz-Standardschriftart            $ "@  $ Beschriftung   x x  UD -@D 	Makrotext  !   	`	@            	 ] a	c  2 @  2 Verzeichnis 1    h $
 U[] c . @  . Verzeichnis 2       $  U( @  ( Verzeichnis 3     $  ( @  ( Verzeichnis 4    X $  ( @  ( Verzeichnis 5      $  ( @  ( Verzeichnis 6     $  ( @  ( Verzeichnis 7     $  ( @  ( Verzeichnis 8    x $  ( @  ( Verzeichnis 9    @ $   )@  
Seitenzahl  U& B@ & 
Textkrper    ] ac k 0  @ 0 Fuzeile    ! ] ac k 0 @ 0 	Kopfzeile     p# ] ac k                  !                                       #   M     ,  .  7  W  d         = _Toc286743921SAP_System_idNameAnschrift_1ServiceCenter    v                              v                    3   6   ?   H   I   M   X   ^   `   f                                         
  x                                          SAP AGD:\ABLAGE\VORLAGEN\SAP_REP.DOTSAP AGD:\ABLAGE\VORLAGEN\SAP_REP.DOTSAP AGD:\ABLAGE\VORLAGEN\SAP_REP.DOTSAP AGD:\ABLAGE\VORLAGEN\SAP_REP.DOTSAP AGD:\ABLAGE\VORLAGEN\SAP_REP.DOTSAP AGD:\ABLAGE\VORLAGEN\SAP_REP7.DOTBeuterD:\ABLAGE\VORLAGEN\sap_rep7.dotSAP AG!C:\MSOffice\Vorlagen\sap_rep7.dotSAP AG!C:\MSOffice\Vorlagen\sap_rep7.dotSAP AG!C:\MSOffice\Vorlagen\SAP_REP7.DOT U       	       U    !   y       U      16       U    DQ  	     DQ  U    [       [  U    \       \  U    ?p  d     ?p  U    w       w  U    t       t  U 	  	          U 
     
       U  
    N       U    O       O  U      M       U   .  :     .  U    h       h                                                              *    autonew ?Allgemeine Funktionsbibliothek von P. Vogel und 
Stefan Joksch Library    
savereport DProgram to parse and insert chapter structure 
(STJ, MCS June 1994) showlog displays the log 
SetOptions (Set Options after the generation process Resetoptions  Resets the viewoptions to normal TableOfContents Objectlibrary Mainloop ULibrary of functions to insert different objects and attributes
(STJ; MCS June 1994) Saves the current report `Insertion and customizing of objects within a report, which is  to generate (STJ, MCS June 1994) Chapters [Main loop of the program, looping through all chapters and calling all necessary functions. Objects This macro decodes the color information of standard ABAP lists and reformats the selected text according to the color information to B&W text attributes. PV / MCS / 6.94 
Batchstart $Bootstrap loader for batchprocessing DefinePaperformat tablecolordecoding ?inserts table of content due to the option in INI file. PV 6/94 Reportlayout iDefines misc. attributes of the report like Pagenumbers, chapter numbers head/foot lines etc. PV MCS 6/94 Insert items on Frontpage 	Frontpage 
SAP Report    _Main control program for interactive mode.
P. Vogel, Stefan Joksch, Microsoft Consulting, 3/94   AUTONEW  LIBRARY  OBJECTS  SHOWLOG  CHAPTERS  MAINLOOP  	FRONTPAGE   
BATCHSTART  
SAVEREPORT 	 
SETOPTIONS 
 REPORTLAYOUT  RESETOPTIONS  OBJECTLIBRARY  TABLEOFCONTENTS  DEFINEPAPERFORMAT  TABLECOLORDECODING @\\p02187\hp4 Ne00: winspool HP LaserJet 4M \\p02187\hp4                     | p K   	                   4 K  	                  A                                                             '''  '        \\p02187\hp4                     | p K   	                   4 K  	                  A                                                             '''  '                            T   Times New Roman  Symbol &  Arial &  Arial Fett 5  Courier New "  q    h    ނ*&,楍 @   9   E          '                 $       )SAP R/3 - Word for Windows Reporting Tool"Report Generating Tool for SAP R/3 dApplication creates WinWord documentes on basis of downloaded R/3 ABAP Lists, graphics and Textfiles2P. Vogel, S. Joksch, Microsoft Consulting ServicesBeuter                                                                                      ܥh W   e                v                                                        r      r   r      r      r      r      r                                                   T                                                                                              X   v                            r              p q                                                       r      r                                                          r            r                          4            r      r      r      r                                                                                                                     .An                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              u                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         &	'	(	)	1 %     K        @  Standard     ]c                  & A@ & Absatz-Standardschriftart                        Vorlaufblatt                   ` p           a b q @T   Times New Roman  Symbol &  Arial &  Arial Fett 5  Courier New "                                                                                                                                                                                                                                             	   
                                                                      !   "   #   $   %   &   '   (   )   *   +   ,   -   .   /   0   1   2   3   4   5   6   7   8   9   :   ;   <   =   >   ?   @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _   `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   w         R o o t   E n t r y     :  x   O   P                `      	           F     ڀh4v   @  Q   W o r d D o c u m e n t                           $               Q   R                `     v       C o m p O b j         O    :  x   R   S                                                     j      S u m m a r y I n f o r m a t i o n              +         (                                                                    	   
                   
   	           F   Microsoft Word Dokument 
   MSWordDoc    Word.Document.6 9q            ࡱ                3                    Oh +'0   d                                <     H            	          
              ,     8     D     L     T     \          *   SAP R/3 - Word for Windows Reporting Tool      #   Report Generating Tool for SAP R/3     3   P. Vogel, S. Joksch, Microsoft Consulting Services               e    D o c u m e n t S u m m a r y I n f o r m a t i o n         8                                           !   "   #   $   %   &   '   (   )   *   +   ,   -   .   /   0       5   6   7   8   9   :   ;   <   =   >   ?   @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P       U   V   W   X   Y   Z   [   \   ]   ^   _   `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p       w           3                    ՜. +,0            H      P      \      d      l      t      |                    SAP                                        *   SAP R/3 - Word for Windows Reporting Tool                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Application creates WinWord documentes on basis of downloaded R/3 ABAP Lists, graphics and Textfiles  t       sap_rep7.dot y        Beuter        141       Microsoft Word for Windows 95   @           @    O@    \G@    (h!         9      E         ࡱ                >  	              3                    ՜. +,0            H      P      \      d      l      t      |                    SAP                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        *   SAP R/3 - Word for Windows Reporting Tool          ࡱࡱ                >  	               t          u          s   x   