Home

SAP Application Notes

image

Contents

1. DeviceAtributes p HostspoolAccMethod Output attributes Tray info Device type LB_PRI Printronix printer Latin 1 Spool server sapdeve SD O sapdev Device class Standard printer El Authorization group Model Location Message Lock printer in SAP System Flore REIS Figure 16 Spool Administration Change Output Device Microsoft You may wish to modify the Model Location and Message informational fields as appropriate Host spool access method should be set to L 5 When all the fields have the correct entries save the output device definition by selecting from the menu bar Output device gt Save A quicker way to save is to click on the save button e on the formatting toolbar just below the menu bar of the Spool Administration Change Output Device screen 6 The Spool Administration List of Output Devices screen now displays a list of the output devices for the SAP R 3 system one of which is the one you have just modified to use the Printronix device type The Printronix printer should now be ready for SAP document printing 26 SAP Printing Application Notes 5 rev a PROCEDURE FIVE Test the Printronix SAP Device Type 1 Many SAP transactions generate and display results in a list format at the current window At any given screen a print option can be selected to print the current list to the desired printer To accomplish this first key in nSPAD viinspap
2. s Reference Manual for each type of printer IGP PGL is a robust ASCII based printer emulation that contains many built in mnemonic commands used specifically to generate labels and forms To design a label or form you can use a text editor such as EDIT under DOS or any word processing software to key in the equivalent ASCH IGP PGL code commands Then save the IGP PGL codes program in text format ASCII format See Appendix 3 for a sample label and an accompanying IGP PGL program listing Another method to create an IGP PGL label is to use a Label Design Software product such as Codesoft Label View or LabelMatrix These programs can generate equivalent IGP PGL code for the designed label Most of these software packages come with a dedicated IGP PGL driver that support the Printronix printer family To simplify the process of creating or designing labels all of the available label design software packages provide users with unlimited GUI Graphical User Interface drawing tools with drag and drop capabilities A user simply uses the mouse along with many graphics drawing features to add or define new fonts bar codes with variable data boxes and logos without keying in a single IGP PGL code Once the label design section is complete simply select the Printronix IGP PGL printer driver and print the label with the print to file option The captured output data stream in response to a user s print request is now an IGP PGL p
3. Change Window screen Figure 33 click the NEMS command button under the edit menu or F9 to embed the IGP PGL program or the text element z a 489 6 558 8045 Of OF Fonn Change Windows Z2PTX_PGL_LS Window Meaning Default par MAIN Main window DE Window 1 Standard attributes Window Description Wain window Window type Default paragraph Figure 33 Change Windows screen 41 SAP Printing Application Notes 5 rev a 4 Atthe SAPscript editor in the Window MAIN screen select Include gt Text Standard using the 3 x GUI or Insert gt Text Standard in the 4 x GUI from the main menu bar see Figure 34 or key in Control Shift F5 CC lal E Window MAIN XOA amp amp Formats Characterfomats Bh A oe B o gt a A default paragraph El 4 e Figure 34 Window MAIN screen 42 SAP Printing Application Notes 5 rev a 5 A pop up dialog text box Figure 35 prompts for the name of the Standard Text Key in the text name ZXXXXXXXX that you entered in the Import an existing IGP PGL label to SAP R 3 as Standard Text section of the Appendix 2 above Select Expand immed and click the command button or simply Enter in the 4 x GUI The IGP PGL program will load into the SAPscript editor Figure 35 nclude Text dialog 43 SAP Printing Application Notes 5 rev a Place PGL commands in the layout set 1 The Window Main screen should now appear like Figure 36 The IGP
4. GHB HHO0 AH OR Spool Administration initial Screen Extended admin Full administration Devices servers Eo Figure 14 Spool Administration Initial Screen 24 SAP Printing Application Notes 5 rev a At the Spool Administration List of Output Devices screen shown in Figure 15 below double click on the desired output device from the list of output devices el anqo ecen anna fn om Spool Administration List of Output Devices Change f ent weOGa GTOaB EASs Dev type Spool servers Location or message a 1504 L HPLJ4 sapdevz_5D02_00 MIS area LPBT PLAST Beispieldrucker Mi LE PRI Sapdeve 5D2_00 Development Printer ZPTXLFF Ssapdeve_ 5D2_ 00 ZPTXLFF sapdevz_5D02_00 i ZPTXLFF Sapdeve_5D2_00 ZPTXLPP Sapdeve 502 _ 00 2 Teer sapdeve 502 _ 00 2803 ZR Sapdeve SD2_00 Ss Pion Sapdeve SD _00 SAN Technical Suppo a z Figure 15 Spool Administration List of Output Devices screen SAP Printing Application Notes 5 rev a 4 Atthe Spool Administration Change Output Device screen see Figure 16 click anywhere on the text entry box of the Device type field to get a list of available device types Select the Printronix SAP device from the pick list Use the native LB_ PRI for SAP version 4 6c or higher For prior versions use the ZPTXASC4 Printronix ASCII Printer installed in the previous section The device type name displays inside the Device type text entry box
5. SAP DEVICE TYPES web page Two files named as ZPTX PGL_LS LS and ZPTXASC4 PRI will be required during the installation of the ZPTXASC4 DEVICE TYPE In addition an optional sample IGP PGL program ZSAMPLE PGL 1s provided on the SAP download page Note the path where these files are located because you will be asked to specify the path during the import process of the ZPTXASC4 DEVICE TYPE Start the SAP R 3 front end client GUI Log into the central instance of SAP Server with administrator rights Type in your User name and Password at the appropriate text box Press the lt Enter gt key to continue to the next screen The screen should look very much like Figure 1 below Figure 1 SAP R 3 Login screen Start the Program Execution transaction SA38 by entering nSA38 in the command line text SAJB box located just below the menu bar of the SAP R 3 System screen viinsasa_ H 11 SAP Printing Application Notes 5 rev a 5 Press the lt Enter gt key or click once on the V check box adjacent to the command line text box The screen should look like Figure 2 below G alihiGGeiahe anasihAioe SAP R 3 System Figure 2 SAP R 3 System screen 12 SAP Printing Application Notes 5 rev a 6 Next import the device type definition file ZPTXASC4 PRI to the SAP R 3 printing system First execute the Program Execution transaction SA38 by keying in nSA38 at the command line entry text box located just below the menu bar o
6. Specify the output device name in the Print List screen and the list printing of the test document should take place at the printer Successful implementation of these steps will ensure successful printer integration SAP Printing Application Notes 5 rev a Appendix 1 PROCEDURE ONE Test the printer outside of SAP Print non SAP documents in non SAP environment This procedure allows you to confirm that the host OS printer attachment works properly outside of SAP This is necessary to assure that the host operating system and the printer are correctly configured prior to creating the Printronix printer as an output device to the SAP R 3 internal spool system SAP R 3 documentation strongly advises that the printer should be thoroughly pre tested in printing non SAP documents in the host OS system without SAP Typically the host OS could be any one of these platforms UNIX systems Windows or Windows NT AS 400 or IBM mainframe platforms e The printer emulation should already be set in PGL mode when powered ON If it is not set the printer emulation to PGL from the printer s panel Next print the printer s configuration from the printer s panel to make sure that the firmware is loaded correctly and the Flash RAM and DRAM installed memory satisfies the printer s memory requirement e Save the current printer s configuration as the POWER ON CONFIGURATION so that whenever the printer is turned OFF and ON the same settings wil
7. a10 66 GHB Anan MA OF Spool Administration List of Page Fonnats e a ar GOae Width Height 1008 PT 576 PT IRCRTDP Y 20CH 33 LN TEN W 355 mm 215 MM LETTER X 279 MM 215 MM 65 CH 16 LN 65 CH 16 LN 3H CM 175 CM oH CH fe LN 16 IN 1 IN o IN 11 IN fe 146 FLIG24 X ZLETTER x 132 CH 864 PT Figure 22 Spool Administration List of Page Formats Screen Use the ZANY page format or one like it in your layout sets used for label printing The Sample layout set ZPTX PGL LS discussed in the next section already references this page format 31 SAP Printing Application Notes 5 rev a Import the Layout Set Definition File 1 For those who are not familiar with how to create a layout set Printronix has created one which can be imported uploaded to your R 3 system This section outlines the import procedure of the sample layout set definition file ZPTX PGL_LS available from Printronix First execute the Program Execution transaction SA38 by keying in nSA36 amp at the command aS ats text box eae just below the menu bar of the current screen a so At the ABAP Execute Program screen similar to Figure 23 Below key in RSTXSCRP in the Program text entry box Click the F8 execute button to launch the layout set definition import program GG CHAR SHAS oR ABAP Execute Program Figure 23 ABAP Execute Program Screen The easiest way to acquire
8. device FORMATS This component determines how the output will appear on the paper and primarily specifies paper sizes such as Letter and DINA4 It allows SAPscript forms to construct a portrait or landscape oriented layout in the printable area of the page SAP Printing Application Notes 5 rev a DEVICE INITIALIZATION This component is a group of escape sequences used to configure the OUTPUT DEVICE for the requirements of the specific document in the print request These configuration escape sequences containing information such as cpi lpi and fonts are sent to the printer prior to the initiation of an output data stream for the document SAP is a registered trademark of SAP Aktiengesellschaft Systems Applications and Products in Data Processing Neurottstrasse 16 69190 Walldorf Germany SAP Printing Application Notes 5 rev a How to use a Printronix ASCII SAP DEVICE TYPE Briefly the ASCII SAP DEVICE TYPE integration steps are Test the printer outside SAP R 3 to verify its printing operation Import the Printronix Device Type into the SAP spool system using SA38 utilities USERS NOTE This step can be skipped when integrating on systems 4 6C or higher Create an output device for the SAP spooling system This makes a logical connection between the OUTPUT DEVICE the DEVICE TYPE and the COMMUNICATION PATH to the printer physical device Print a test document selected in a user s SAP application transaction screen
9. name will be displayed in the ASCII file text field Next click on the VY _ Transfer command button to transfer the IGP PGL codes into the Standard Text editor Figure 31 Import ASCH File dialog 7 The content of IGP PGL program should be displayed in the Standard Text editor This indicates the successful upload of the IGP PGL program into SAP R 3 System Save by keying in Control S 39 SAP Printing Application Notes 5 rev a Include a Text Element to ZPTX_PGL_LS layout set 1 The Standard Text ZXXXXXXXX you imported earlier see Import an existing IGP PGL label to SAP R 3 as Standard Text can be the text element embedded in the ZPTX PGL LS layout set you uploaded and which will be used in the following examples or the layout set of your own creation This embedded text 1s your label design Variable data from your SAP tables will be incorporated into the label design at run time 2 At the Layout Set Request screen or in system 4 x the Form Painter Request screen Transaction SE71 Figure 32 key in ZPTX PGL_LS and select the Windows option under the Sub objects section Click on the amp iat ia command button upon completion v O YO Hi Ge E Hmla nng l fA ok Fonn Painter Request DlA CO Header O Pages Windows O Page windows O Paragraph formats O Character formats O Documentation Figure 32 Layout Set Request screen 40 SAP Printing Application Notes 5 rev a 3 At the
10. the ZPTXASC4 DEVICE TYPE to an existing SAP R 3 System eeeeeees 11 PROCEDURE THREE Verify the import of ZPTXASC4 DEVICE TYPE in the SAP R 3 System eee 18 PROCEDURE FOUR Using the Printronix SAP DEVICE TYPE 00 cccccccccccccccccsseseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeceeseeeeeeeees 20 Scenario 1 Create a new Output Device in SAP for the Printronix P5000 LaserLine or ThermaLine printer 20 Scenario 2 Reassign an existing Output Device in SAP for the P5000 LaserLine or ThermaLine printer 24 PROCEDURE FIVE Test the Printronix SAP Device Type ccccccccccccccccccceccccccccccccceccccececcccccccecececccecerecececeees 2i ADDON Zeep ar E O Tn ne aero mic en wee ot 29 How to print an IGP PGL label using SAP R 3 SAPscript 0 0 0 cccccccceceeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseseeeeeeeess 29 Define a generic Page Format ZANY in SPAD of SAP R 3 for any IGP PGL label eeceeeesttteeeees 29 Importing layout Set Dennmiton F ieseam re e A a T 32 Create an GPP GAD ely eree EE OE T eens ea A A O atwess 36 Import an existing IGP PGL label to SAP R 3 as Standard Text ccccccccecceeeeeeeeeeeeeeeeeeeeeeeeeseeeeeeseeeeeeees 37 Include a Text Element to ZP TX POE LS layout Set eiiiai ar aad tart tate eed O ead A 40 Place PaL commandsin the layout Set orreee a i te a e a e a a a i aia 44 Test print the GP POL Tabe Dennisin E T E E T A a 45 Fieure 3S Form Chans N MdOWNS SENO e E E A A E A A R 46 Troubleshootn
11. the sample ZPTX_PGL LS file is to go to www printronix com sapsolutions html The file is included in the zip file with the ZPTXASC4 device type 32 SAP Printing Application Notes 5 rev a 2 At the next window shown in Figure 24 select the Layout set option key in ZPTX PGL_ LS for Object name text box enter IMPORT for the Mode EXPORT IMPORT option select the File system GUI option and key in tmp ZPTX PGL LS in the Dataset name text box When you have made the correct entries for all required fields click on the F8 execute button to start the import process Ignore all other options oH Form C Style O Standard text Text ID ST Language EN O Device Type Object name PTX_PGL_L amp hlode EXPORTAMPORT IMPORT Ctrl parameters for file operation Fromion frontend O Frormfon application server Dataset name CclitmpiwPTs_PGL_LS Binary file format Display dataset contents Control of language versions Language vector Figure 24 SAPscript Import from Dataset screen 33 SAP Printing Application Notes 5 rev a 3 The SAP R 3 system assigns an object a request number so that the system can track its profile as to when who what and how that object was created or changed In this case it is appropriate to request a new number since you are about to create a new layout set definition object To obtain a new request number simply click on the execute command button at the pop up dialog Create Task sc
12. Control area of the Print Screen List Next click on the S command button to print Print Screen List Continue Wserspecific print parameters Humber of pages Print all O Print trom page Spool request Mame SAPMSPAD MOR Title Authorization Print immediately Mew spool request Recipient MORR_ST Print priority 5 Medium Deparment Spool retention per 0 Dayisi D SAP cover page Archiving mode Print only Figure 18 Print Screen List 3 Ifthere is no output from the printer check to make sure that the printer is properly connected and able to print non SAP applications from the host system where the printer is connected otherwise contact your SAP administrator for support 28 SAP Printing Application Notes 5 rev a Appendix 2 How to print an IGP PGL label using SAP R 3 SAPscript Define a generic Page Format ZANY in SPAD of SAP R 3 for any IGP PGL label For successful label printing it is necessary to define a generic page format to be used in your layout sets 1 To create a generic ZANY Page Format in SAP at the current active SAP R 3 system window enter the Spool Administration screen by keying in nSPAD at the command line field located just below the menu bar v MSPAD i 2 At the Spool Administration Initial Screen like Figure 19 select the Page formats option under Full admin to get to the List Of Page Formats screen X O Y OE Hee Sim Hows e al e Spool Administration
13. H JnSPAD H in the command text entry box located just below the menu bar of the current active window of SAP R 3 system Next select Output devices from the Spool Administration Initial screen and a list of available output device types will display The screen should look similar to Figure 17 below Outputdevice Edit Goto Extras Utilities System Help BITE Coe CHR annail fal ee Spool Administration List of Output Devices 10 entries o Ga Oa Dey sey type Spool Servers Location or message a 1504 L HFLJ4 sapdeve S02 00 MIS area NT HP4PLUSMIS f HP4 x LPO gt L HPLJITID Beispieldrucker Mit SPAD anpassen 2 flar L LE_FRI sapdeve S02 06 Development Printer FAG L PTALPP Sapdeve 5D2_ G0 Fhe Ley ee sapdeve 502 G0 L LB_PRI sapdev2_SD2_80 z501 L EPTXLPF sapdeve S02 00 2s L PTXLPP Sapdev SD Ob 2sH3 L ee alee sapdeve S02 00 esi4 5 ZPTXSMTH Sapdeyve _5D2_00 SAN Technical Support dump printer a Figure 17 SPAD List of Output Devices screen 27 SAP Printing Application Notes 5 rev a 2 Next select from the menu bar Output device gt Print this list and a Print Screen List screen similar to the one shown in Figure 18 will display Key in the name for the Output device field which has been defined in section Using the Printronix DEVICE TYPE of this document Check the Print immed and the Delete after print options under the Spool
14. PGL program is now in the editor ready to be saved as part of the layout set Ge Window MAIN vd fax eaa of fele a Select insert Line Format Page Paste Replace NORMAL PAPER INTENSITY 10 SPEED 1440 TEAR 0 CREATE 4204PROM 432 CALE DOT 203 203 ARCODE 3 9 H4 64 5 480 ONT FACE 92250 LPHA POINT 35 45 10 10 FROM POINT 65 145 20 0 PRINTRONIX POINT 95 145 11 11 17500 Cartwright RD POINT 125 1745 11 11 Irvine CA 92623 POINT 133 145 11 11 800 733 1900 Z NORMAL _ PAPER INTENSITY 10 SPEED 1440 TEAR OO 7 CREATE 4204PROMS 432 Je FO K Figure 36 Window MAIN screen 2 Click the button and then click the save button E 44 SAP Printing Application Notes 5 rev a Test print the IGP PGL label Activate the ZPTX PGL_LS layout set before printing the label At the screen shown below Figure 37 select Layout set gt Activate or Form gt Actvate in the 4 x GUI as shown in Figure 38 The Status field displays Active Saved which indicates that the layout set 1s activated Next select Utilities gt Test print Make sure that the printer is working and an OUTPUT DEVICE has been defined for the printer If an error occurrs with this test print refer to the section entitled Troubleshooting Tips i Layout Set Change Header 7PTX_PGL_LS Layoutset Edit Goto Attributes Utilities Environment System Help a v ej x clala slelela 2 Administration inf
15. SAP Application Notes PRINTRONIX SAP Printing Application Notes 5 rev a Table of Contents Printronix ASCISAPDEVICE LTYPE Scusa a a tate nto de tka e chica teased ataadae tes 3 Operation of the SAP R 3 Printine S ystems 2155 06 cadets uekieae sa snaae easedwseashonsataacnndgaresatelnadeesaseadeaiaachmbasereietagoadechaseraies 3 mya egcit a8 i ed BLING s del Be hii Knee ee MERE een ante nee Ue enna ee eaten eRe de serata EE nO Cn ten ete etree eee 5 Panino 10 ai CVO PRT I VC asc scstct o coicctina tes curad cadens Cobbutaasoiactaal ys a N 6 Creation 6 a OUTPUT DENI Cb cenuen las iasah oevientiein cal anand a a E 6 Description of Printronix ASCI SAP DEVICE TYPES cccccceccseceensnenssonennenennsncnssoncssecennsssassensnsensonsetassenenseneees 7 SAPSCRIPEDRIVE R seen e T EEE E E R E E O 7 CTARAC TERS EE ema ce en a O E OA AE A ae ene 7 PRINT CONTROL re a tenures a a A naar eeeeaaee 7 FORMA Threepio a a a a Rte Ae aioe 7 DEVICE TNITIALIZA TON i teeta eat est Suet ace Desi Ne Sea ad et a danse tad as 8 How to use a Printronix ASCII SAP DEVICE TYPE 0 0 22eseeeneeenensesnnsnnnsennscnscnsnnsnssnnesssscsssssssssssssacessnsssesenes 9 758 6 01S 016 L E PE ener eyewear feet Rare Meret weer ete emer ee reece mt AEE IEE tener Tenn tr meres tr het Serer Nee AE A ner ne eae er Ter ere T 10 PROCEDURE ONE Test the printer outside of SAP Print non SAP documents in non SAP environment 10 PROCEDURE TWO Install
16. SAP database data Often an IGP PGL label can be designed before the exact variable names from the ABAP print program are known If this has been done replace the necessary placeholder data of the PGL program with the variable names from the ABAP print program once they are known For example consider sample program 1 in appendix 3 The BARCODE statement creates a bar code the symbology is code 3 9 and the value of the data is SAP APP NOTES If you had a variable in an ABAP print program named say BC DATA then you could replace SAP APP NOTES with amp BC DATA amp The value of BC DATA will now be substituted into the statement by SAP at run time 49 SAP Printing Application Notes 5 rev a Appendix 3 Sample PGL PROGRAMS The following PGL program is available from the Printronix web site and should have been bundled with these application notes Sample IGP PGL label program 1 NORMAL CREATE LAB 432 SCALE DOT 203 203 FONT FACE 92250 BOLD ON SLANT OFF ALPHA POINT 237 97 25 26 SAP Application Notes n POINT 391 266 25 26 Test Page SAP A ppl ication Notes STOP BARCODE C3 9 XRD3 3 6 6 H4 64 607 98 SAP APP NOTES Te st P age PDF B STOP BOX 2 103 50 1115 759 STOP BOX 2 170 84 419 710 STOP END EXECUTE LAB NORMAL SAP APF NOTES 50 SAP Printing Application Notes 5 rev a Sample IGP PGL label program 2 More complex labels like the one below can also easily be created A Prin
17. as other tips and updates 47 SAP Printing Application Notes 5 rev a Using Multiple Layout Sets Sometimes you may wish to have multiple layout sets each with a separate PGL label design To do so follow the procedure below 1 Copy the original ZPTX PGL LS Layout set At the SAP R 3 System screen select Tools gt Word processing Layout set The Layout Set Request screen will display Next select Utilities gt Copy From Client to get to the Copy Layout Sets Between Clients screen Type ZPTX PGL LS in the Layout set name field In the Target layout set field enter a name of your choice for the new layout set ZCUSTOM LS for example 2 Clear contents of the new layout set if necessary At the Layout Set Request screen select the name of the new layout set and click on the Change command button Next select the text element of the new layout set exactly as in steps 1 3 of the section entitled Include a Text Element to ZPTX _PGL_LS layout set With the cursor at the first line of text if any click the Select button Then move the cursor to the last line of text and hit the Select button again followed by the Delete button 3 Include a new text element representing a new PGL program into the new layout set using the same steps as in Import an existing IGP PGL label to SAP R3 as Standard Text 48 SAP Printing Application Notes 5 rev a Replace the IGP PGL label variable fields with the
18. e 11 Spool Administration Initial Screen 20 SAP Printing Application Notes 5 rev a 3 Atthe Spool Administration List of Output Devices screen like Figure 12 below key in Shift F1 to enter the Create Output Device screen Spool Administration List of Output Devices Change f 9 ent eo Oa a GDS e as bew s type Spool servers Location or message L HPLJ4 sapdevz_5D2_00 MIS area NT HP4PLUSMIS HP4 PTXLPP Sapdeye 6D2 68 PTXLPP sapdeye 6D2 68 PTXLPP sapdeye 6D2 G8 PTXLPP sapdev 6D2_ PTXLPP Sapdeye SD2_ 00 amp PTXLPP Sapdeye SD2 60 fPTXSMTH Sapdey S02 Ob oA Technical Support dump printer wa r fi Toi C fie a St Figure 12 Spool Administration List of Output Devices screen 21 SAP Printing Application Notes 5 rev a 4 Atthe Spool Administration Create Output Device screen see figure 13 you will create the printer as an output device in SAP by inputting information in several fields The Output Device field specifies the printer within the SAP system Enter four alphanumeric characters into this field The Device Type field specifies the internal SAP driver and other properties of the printer within the SAP system Click within the field to display a list of available device types Select the Printronix SAP device from the list Use the native LB PRI for SAP version 4 6c or higher For all other versions use the ZPTXASC4 Printronix ASCII Printer installed in the previou
19. e TIDS raira ee ee oe ie A RS 47 Problems with the Layout Set test primts 0 0 0 0 ccccccccccccccccceeeeeeeeeaaeeeeeeseeeeeeeeeeeeeeeeeeaaaaeeeesseeeeeeeeeeeeeeeeaaaas 47 Problems with printing Layout Set from the ABAP print program 0 0 cc ccceccccsceeceeeeeeeeeeeeaaaeeeeeees 47 Using Multiple Tayo Se heen ene a noe mee re e a ne ee ee er ee nee ee eee eee 48 Replace the IGP PGL label variable fields with the SAP database data 0 0 0 ceecesesesssseseeseesseeseesseeeeeeeeeeeeeeaaas 49 Appendix o sample PGE PROGRAMS sieua aa a ote yore PraGethadeeldetawhat as eowbdarenaadaaradvndaed 50 Simple IQP POL label pro srani i cs ces iascses canes ests aap Sue NE Sag aesdoeencan ou des ales a ase aed 50 Sample IGP POE label pro er aii Zna ie oasdeg anal ieee eae ee A 51 SAP Printing Application Notes 5 rev a Printronix ASCII SAP DEVICE TYPES Application Notes This document describes the SAP Compatible Printronix device types for direct ASCII integration The Printronix ASCII SAP device types are designed for use on the SAP R 3 The procedures outlined below pertain specifically to SAP version 3 1H or higher e Appendix provides step by step instructions for printer integration using Printronix device types The LB PTN device type has been developed by SAP for Printronix and comes standard with SAP versions 4 6c and higher Prior versions of SAP can use the ZPTXASC4 device type developed by Printronix in conjunction with SAP e Appendi
20. e field and click the Createfchange button This is the name SAP will use to reference your program You will browse for the actual file in a subsequent step To use the sample program you may wish to key in ZSAMPLEPGL C Standard text Edit Goto Utilities Settings Environment System Help Ha IB Cog GHB StH SE er standard text Text name ZSAMPLEPGL Text ID ST Standard text Language EN e Figure 28 Standard Text Request screen 37 SAP Printing Application Notes 5 rev a 4 At the next screen Figure 29 select Text gt Upload option from the menu toolbar 2 KOA amp Formats Characterformats Bb 2 amp o B El o gt A Paragraph lett aligned H Character string highlighted 4 ga Text ZSAMPLEPGL in language EN is new lt Figure 29 Change Standard Text screen 5 A pop up dialog text box labeled Upload Figure 30 prompts you for the format type of the standard text file Select ASCII and click the Vv Transfer command button O Rich Text Format RTF ASCII Figure 30 Upload dialog 38 SAP Printing Application Notes 5 rev a 6 A pop up dialog text box Figure 31 prompts you for the name of the IGP PGL filename Click on the browse I button to locate the IGP PGL file that you created earlier in the Create an IGP PGL label section of the Appendix 2 To use the sample PGL file look for ZSAMPLE PGL in the directory where it was un zipped The file
21. es are designed to assist in troubleshooting most problems that may arise Problems with the Layout Set test print If the Layout set does not print or prints with error messages then follow the steps below 1 Ensure that the output device is using the ZPTXASC4 or LB_ PRI device type 2 Because some editors can introduce unwanted escape codes into the PGL layout set it is necessary to rule out the possibility of a corrupted file or incorrect syntax Upload the sample PGL program provided and ensure that it has not been modified before importing into a layout set then try another test print If it fixes the problem try another editor or else double check your PGL syntax or call Printronix technical support 3 If the above step does not fix the problem it is possible the target SAP system is configured to generate one less Carriage Return Line Feed than expected If this is the case download ZPTXASC3 from the Printronix web site www printronix com and install it using these same application notes Problems with printing Layout Set from the ABAP print program First ensure that the layout set test print was successful If so and the ABAP print program is using the correct layout set and supplying the correct variables there should not be any problems Details of ABAP programming are beyond the scope of this document but check the Printronix web site for availability of a sample ABAP print program using the sample PGL program as well
22. f the current screen _ wvinsase At the ABAP Execute Program screen like Figure 3 below key in RSTXSCRP in the Program text entry box then click the device type definition import program execute button to launch the anna Af OF ABAP Execute Program nsee O OE Figure 3 ABAP 4 Execute Program screen 13 SAP Printing Application Notes 5 rev a 7 Next at the SAPscript Export to Dataset SAPscript Import from Dataset screen displayed in Figure 4 below select the Device type option key in ZPTXASC4 for the Object name field enter IMPORT for the Mode EXPORT IMPORT option select File system GUI option and key in tmp ZPTXASC4 PRI in the Dataset name field When the entries for all the requirement fields are entered correctly click on the execute button to start the import process Ignore all other options Z IN BIOBS OMB HUE SAPscript Export to Dataset SAPscript Import from Dataset Pa a r a oOo 0 a 4 on cl cn oo ac 5 F tmpfzptxasch pri Figure 4 SAPscript Import from Dataset Screen 14 SAP Printing Application Notes 5 rev a 8 When making changes or defining new objects in the SAP R 3 system an object is assigned a request number so that the SAP R 3 system can track its profile information such as when who what and how that object was created In this case it is appropriate to request a new number since you are about to create a new printer defin
23. ie oAP script Export to Dataset SAPscript Import from Dataset Iof x v3 ele eme elelee T Figure 8 SAPscript Export to Dataset screen 17 SAP Printing Application Notes 5 rev a PROCEDURE THREE Verify the import of ZPTXASC4 DEVICE TYPE in the SAP R 3 System 1 Start the Spool Administration transaction program SPAD by entering nSPAD in the command line text box located just below the menu bar of the current active window of the SAP R 3 system Press the lt Enter gt key or click on the check box adjacent to the command line text box entry CA MSPAD gt 2 At the Spool Administration Initial Screen like Figure 9 below select the Full admin menu and then click the Device types button under the Device Types tab to generate a list of device types Z oHi Cae SHH Banas AH of Spool Administration Initial Screen Simple admin Extended admin DeviceTypes Figure 9 Spool Administration Initial Screen 18 SAP Printing Application Notes 5 rev a 3 The Printronix device type should be listed as ZPTXASC4 Printronix ASCII Printer PGL on the List of Device Type screen shown in Figure 10 below Scroll down if you do not see ZPTXASC4 on the list If the device type 1s not listed repeat PROCEDURE TWO again goH ecce CHE aS A OR Spool Administration List of Device Types f 4Ooaa P fH Formats fiii PrintContrals Name ePT AALS Printron x i AN Printronix ZPTXJP Printr
24. initial Screen Simple admin Extended admin DeviceTypes Figure 19 Spool Administration Initial Screen 29 SAP Printing Application Notes 5 rev a 3 From the Spool Administration List Of Page Formats screen switch to change mode F8 if you are not already in it and bring up the Create Page Formats screen by keying in Shift F1 Enter ZANY for the page format select the Portrait orientation a paper Width of 999 MM and a paper Height of 999MM as shown in Figure 20 Portrait Landscape Faper size Width f Unit Height l Unit Figure 20 Spool Administration Create Page Formats screen 4 Press Save Control S and fill out the Development class field of the Create Object Directory Entry pop up screen as shown in Figure 21 R3TR SEER Z222 P Attribute s Development class Person responsible Original system Original language Local object Lock overview 3 Figure 21 Create Object Directory Entry 30 SAP Printing Application Notes 5 rev a 5 Press save again and you will be presented with a transport request prompt Press the lt Enter gt key or click on the check box 6 Return to the List of Page Formats screen as shown in Figure 22 This can be done via the Back F3 key A list of available page formats will display Verify that the ZANY page format is listed along with the other page formats by scrolling up or down the screen SAP LU a i A VOTO A
25. ition object To obtain a new request number simply click on the anand command button at the pop up dialog Enter Change Request screen shown below in Figure 5 V BA om requests Create request 36 Figure 5 Enter Change Request screen 9 Next type in the description for the newly created request at the Create Request screen as shown in Figure 6 below Next click the save button Import Printronix PITX device type SMORRIS aig user oa E o A O e E E Attributes 3 Figure 6 Create Request screen 15 SAP Printing Application Notes 5 rev a 10 Notice that a new request number is displayed in the Number field entry text box and the description of the request you entered at the Create Request screen displays just below the request number Next click the enter button v located at the lower left corner of the current active window 11 A pop up screen labeled mport from a Local File prompts for the device type definition file and its location Use the browse button l to locate the ZPTXASC4 PRI in the File name entry text box and then click the o command button to start the upload process The screen should look like Figure 7 below Transfer A x Figure 7 Import from a Local File dialog 16 SAP Printing Application Notes 5 rev a 12 When the import process is finished update messages display in the current active window as shown in Figure 8 below f
26. l be loaded into the memory Refer to the Printronix User s Manual for a complete procedure on how to accomplish steps 1 and 2 e Generate a few printouts to the Printronix printers from any non SAP applications such as MS Word or any ASCII text editor If no printouts were generated check all connections to and from the printer If all else fails contact the Printronix Support Group to resolve it and do not proceed any further If printouts are successfully generated then check your SAP system for the Printronix LB PRI device type which should be available with all SAP systems 4 6c or higher If it 1s available in the device type list go directly to Procedure Four Using the Printronix Device Type Otherwise go to Procedure Two Install the ZPTXASC4 device type into an existing SAP R 3 System 10 SAP Printing Application Notes 5 rev a PROCEDURE TWO Install the ZPTXASC4 DEVICE TYPE to an existing SAP R 3 System l Printronix wrote the ZPTXASC4 ascii device type to facilitate label printing from within SAP The ZPTXASC4 device type can be downloaded from Printronix at www printronix com solutions htm If your R 3 system is 4 6c or higher you can use the Printronix Label Printer device type LB PRI designed by SAP for Printronix It should already be on your R 3 system and you can skip to Procedure Four Double click the self extracting ZPTXASC4 DEVICE TYPE file 355364 exe you have just downloaded from the Printronix DOWNLOAD
27. ly SAP system users working on data within a SAP application module can request the printing of a displayed document in one of two ways 1 by clicking on the print button in any SAP transaction screen that presents a standard toolbar or 2 by choosing the Print function from the transaction s List menu The user 1s then presented with a Print Screen List which allows the user to enter an output device name and results in the transaction generating a spool request SAP Printing Application Notes 5 rev a The spool request starts a SAP spool work process to handle the spool request for the user named output device which is a printer in this case To do that the output device works with a System Admiunistrator assigned device type which is available in a list of device types within the SAP spooling system The device type provides all necessary spool processing information via a command translation table for the output device As a result the spool work process 1s able to translate the SAP native output control commands contained in the SAP application s print controls into the command language of the named output device SAP R 3 LIST OF DEVICE TYPES In SAP a DEVICE TYPE is a printer parameter interface between an OUTPUT DEVICE and set of logical information components that define how that printer prints documents These logical information components are a collection of printer specific control properties The standard SAP system ou
28. on x Flo Printronix ESO Printron x PTALPPE Printronix Printron x H Printronix Printron x Printron x Printron x Printronix L56000 POLY Printron x Printronix Printron x Printronix ASCII Printer FGL ASCII Printer FGL LP emulation 1 806 Proline Series 5 LP emulation 1 808 LP emulation 1 004 LP emulation 1 806 LP emulation 1 004 LP emulation 1 00B LP Thai 1 004 PCLS 1 084 LP Thai 5M 1 004 LP emulation 1 004 LP emulation 1 004 PF50090 Series IBM 6408 400 PROPRINTER III amp L LP emulation 1 806 TEST DEVICE TYPE LP Test van vester FP5000H Series 1 004 LP emulation 1 808 LP emulation 1 806 192 Entries Figure 10 Spool Administration List of Device Types screen 19 SAP Printing Application Notes 5 rev a PROCEDURE FOUR Using the Printronix SAP DEVICE TYPE Scenario 1 Create a new Output Device in SAP for the Printronix P5000 LaserLine or ThermaLine printer 1 From the current active SAP R 3 system window enter the Spool Administration screen by keying in nSPAD at the command line text box entry located just below the menu bar 2 Atthe Spool Administration Initial Screen like Figure 11 below click the Change _ command button and then select the Output devices option to generate the List of Output Devices screen vI a4 O68 CHR BRL fhiof Spool Administration initial Screen Extended admin Full administration Devices f servers Figur
29. ormation Layout set Z2PTX_PGL_LS Client number 300 Lanquage Layout set class Original language Development class ZENG Development class for Engineering us Relevant for transl Status Active Saved Created on los 26 1999 lio 11 58 by TRAN_DU Release Changed on los 27 1 999 lo7 shies by TRAN_DU Release Standard attributes Font attributes Description a Generic Printronix LayoutSet Font family COURIER Font size leo Point 10 On Off Default paragr DE E Tab stop 1 00 cm Bold e First page FIRST Italic C s Page format ZANY Underlined Orientation IP Spacing Lines per inch 6 00 Thickness Charactersiinch 10 00 Intensity SD 1 300 sapdev2 OVR 11 244M Figure 37 Layout Set Change Header screen 45 SAP Printing Application Notes 5 rev a Z UU OBR SHS AAA AM OF Fonn Change Windows 7ZPTX_PGL_LS Paragraph formats Character formats Window Meaning Default par MAIN Main window DE Window 1 of Standard attributes Window Description Main window Window type Default paragraph Form ZPTX_PGL_LS activated Figure 38 Form Change Windows screen 46 SAP Printing Application Notes 5 rev a Troubleshooting Tips This set of application notes has been successfully used at many SAP installations worldwide Sometimes however problems can arise due to site specific configurations or other factors While it is not possible to anticipate every scenario the following not
30. os and drawing tools are defined in the layout of the form or label within SAPscript These ASCII printer commands are passed directly to the output device by the SAP Spool System The output device in this case the Printronix printer will intercept interpret and execute the commands received from the SAP Spool System Refer to Appendix 2 for a detailed example of creating a PGL label using the SAP R 3 SAPscript editor Any one of the Printronix ASCII SAP device types has the following logical components SAPSCRIPT DRIVER This component contains the SAPscript printer driver which converts the output format of SAPscript to the print format of the device type assigned to the output device This driver uses the properties and attributes resident in the device type definition to translate SAPscript forms into an output data stream that can be printed by the physical printer CHARACTER SETS This component is a collection of character sets or code pages that are available in the output device The SAP spooling system uses this collection of character sets to translate SAP code values in its own system character set into an output data stream of code values understood by the output device PRINT CONTROLS This component contains the command set of the output device and makes it possible for the SAP spooling system to translate its system print controls used in ABAP 4 programs and SAPscript forms into the escape sequences required by the output
31. re assigned to various DEVICE TYPES in the SAP list of available DEVICE TYPES The purpose of these SAPscript printer drivers is to make the conversion from the output format of SAPscript to the print format of the DEVICE TYPE assigned with the OUTPUT DEVICE The list below identifies five of the most common of the SAPscript printer drivers Each of these SAPscript printer drivers is named in the SAP system with a unique four character code such as STN2 HPL2 HP PCL4 PCLS LJ 3 4 5 6 POST PostScript Adobe PRES Prescribe Kyocera SWIN Windows SAPIpd SAPWIN STN2 SAP Standard Line Printer Driver oo eee ee System Administrators who create DEVICE TYPES specify one of these SAPscript printer drivers in the Driver field of the SPAD Create Device Type screen Note The ZPTXASC4 Device type is intended to be used with the STN2 Printer Driver SAP Printing Application Notes 5 rev a Printing to an OUTPUT DEVICE For an SAP transaction to print a document it must deliver an output data stream to an output device connected to the R 3 system To prepare the data for that output stream the SAP spooling system needs a substantial amount of information about the physical device represented by the output device In SAP R 3 each output device is assigned a specific device type that provides for the storage of the details about the physical device and other required data within the spooling system The information contained in each device
32. reen shown in Figure 25 SD2E IEGOE 4 Import device types from 3 1H system Figure 25 Change Task screen 4 A pop up dialog text box labeled Import from a Local File prompts for the layout set definition file and its location Use the browse button to locate ZPTX PGL_LS LS in the File name field and then click the OK command button to start the upload process The screen should look like Figure 26 below Traster A 3 Figure 26 Import from a Local File dialog SAP Printing Application Notes 5 rev a 5 When the import process is finished update messages will display in the current active window similar to Figure 27 SAPscript Export to Dataset SAPscnpt import from Dataset S4Pscript Export to Dataset SAPscript Import from Dataset 1 S A Figure 27 SAPscript Export to Dataset Import from Dataset screen SAP Printing Application Notes 5 rev a Create an IGP PGL label IGP PGL Intelligent Graphics Printing firmware for the Printronix Graphics Language is an ASCII based output language designed for P5000 Line Matrix LaserLine and ThermaLine printers Some of the IGP PGL graphics processing features include On Line Form and Label Generation Selectable Bar Codes Expanded and Compressed Character Print Rotated Alphanumerics Logos Reversed Print Automatic Increment Decrement Capability TIFF and PCX Raster Data File Support Additional features are listed in the JGP PGL Programmer
33. rogram just like the IGP PGL program shown in Appendix 3 All that is required is a soft copy of the IGP PGL program file in ASCII format Whether the IGP PGL program file is generated directly by keying in the IGP PGL ASCII commands obtained from existing legacy IGP PGL programs or captured from one of the Label Design Software products the label program can be imported directly into the SAP system and printed to the Printronix printer 36 SAP Printing Application Notes 5 rev a Import an existing IGP PGL label to SAP R 3 as Standard Text 1 The SAP R 3 system allows you to import upload text files into its own Text Management System called the Standard Text The Standard Text 1s a text editor that allows SAP front end users to create and edit text With an existing IGP PGL program created either by entering the IGP PGL codes directly or by capturing the IGP PGL output from one of the Label Design Software packages log into the SAP R 3 system The logging procedure is identical to PROCEDURE ONE steps 1 through 4 of Appendix 1 above A sample label ZSAMPLE PGL was provided within the self extracting downloaded file The following examples will use this file If this is your first time importing a PGL label use the sample label provided for you for your first test print 2 Access the Standard Text screen by entering SO10 3 At the Standard Text Request screen Figure 28 key in the name for the IGP PGL program in the Text nam
34. s section The device type name you select will display in the Device Type field Spool server is the server which contains the spool process it is normally selectable via a pull down menu In the HostSpoolAccessMethod tab you will need to fill out the Host printer field Host printer is the name of the printer as defined at the operating system level of the print server Spool Administration Create Output Device amp DeviceAttributes y HostSpoolAccMethod y Output attributes p Tray info Device type LA PRI Printronix printer Latin 1 Spool server Sapdeve 6D2 O sapdev Device class Standard printer Authorization group Model T5308 Location Building A Message Development Printer C Lock printer in SAP System Figure 13 Spool Administration Create Output Device screen 22 SAP Printing Application Notes 5 rev a The remaining screen fields are described below For complete field descriptions and their available options refer to the BC Printing Guide online help in the SAP R 3 system Spool Server The name of the SAP Spooler Server Host The host operating system where the SAP Spooler Server is configured and installed Host Printer The name of the printer where it is defined in the host operating system Device class Do not change Access method Enter the following entries depending on the access method connection method either local or remote illustrated below is a local connection between
35. t of the box supplies an extensive list of resident DEVICE TYPES to enable printing with a variety of commercially available OUTPUT DEVICES SAP assures that these resident DEVICE TYPES will work properly with SAP R 3 The LB_ PRI device type has been designed by SAP to work with Printronix printers and comes with SAP version 4 6c and higher In the SAP SPOOL ADMINISTRATION SPAD screens SAP provides System Administrators the capability to define new DEVICE TYPES and append them to the resident list of available DEVICE TYPES However the creator of such a new DEVICE TYPE is responsible for its accuracy performance and support not SAP Note Any of the resident DEVICE TYPES regardless of origin can be used as is or modified by the System Administrator Depending on the specific SAP system environment a DEVICE TYPE such as ZPTXASC4 may be customized to meet OUTPUT DEVICE specific requirements Typically the list of resident DEVICE TYPES provides a good starting set of templates to create custom DEVICE TYPES A simple way to create a custom DEVICE TYPE is to copy the definition and then change it as necessary to meet system OUTPUT DEVICE requirements Modifications to the DEVICE TYPES can be made easily by using the fill in the box tables in the SAP SPOOL ADMINISTRATION screens SAP Printing Application Notes 5 rev a SAPscript Printer Drivers The SAP system provides a list of out of the box SAPscript printer drivers which a
36. the SAP Server Spooler and the host operating system spool LPQ format Enter B in the entry text box Location Administrative information field to describe the physical location of the printer Message Administrative information field for SAP administrator to display the message to users 5 When all the fields have the correct entries save the output device definition by selecting from the menu bar Output device gt Save Note A quicker way to save is to click on the save button on the formatting toolbar just below the menu bar of the Spool Administration Create Output Device screen 6 The Spool Administration List of Output Devices screen now displays a list of the output devices for the SAP R 3 system Use the scroll keys to find the output device created in step four The P5000 LaserLine or ThermaLine printer should now be ready for SAP document printing 23 SAP Printing Application Notes 5 rev a Scenario 2 Reassign an existing Output Device in SAP for the P5000 LaserLine or ThermaLine printer 1 From the current active SAP R 3 system window enter the System Administration Initial Screen by keying in nSPAD at the command line text box entry located just below the menu bar vifnsrad 2 Atthe Spool Administration Initial Screen like Figure 14 below click the aa command button and then select the Output devices option to generate the List of Output Devices screen al e aa OOS
37. tronix SAP label printing specialist can show you how Irvine Ca 92696 f 114 360 2300 ThermaLine Label Printers work the way YOU need to work 2D Barcodes Thermaline T4204 SIGNATURE PDF 417 l I l l Label Tear Off Rewind Label Peel and Present PrintnNet Cut Between Labels IBM Connect This label was printed on the PRINTRONIX T5204 Label Printer 51
38. type is organized as a collection of tables that define the attributes of a specific output device A printer is a common example of an output device When R 3 has multiple printers connected it requires separate output device printer definitions each of which has been assigned the proper printer specific device type definition Creation of an OUTPUT DEVICE In SAP an output device is a unique four character system name for the physical device This name is registered in the SAP spooling system and is specified each time a print request 1s made to print a document to the device The SPAD Create Output Device screen 1s used to specify the output device definition which includes the four character output device name the device type and other essential system information about the physical device SAP Printing Application Notes 5 rev a Description of Printronix ASCII SAP DEVICE TYPES Printronix ASCH SAP DEVICE TYPES provide SAP system users the ability to print reports forms and labels utilizing the bar codes fonts and graphics drawing that are resident in Printronix Graphics Language PGL firmware PGL 1s available for every Printronix printer Printronix ASCH SAP DEVICE TYPES are registered and loaded in the Device Type Management component of the SAP Spool System as pass through DEVICE TYPES that contain printer commands such as line feed carriage return and form feed Other features of the printer such as bar codes fonts log
39. x 2 provides step by step instructions for creating formatting and printing a sample label by utilizing the printer s software the Printronix Graphics Language PGL to create and embed Printronix defined ASCII printer commands into SAP e Appendix 3 provides two IGP PGL sample label programs and the printed labels using the Printronix ThermaLine printer Printronix ASCII SAP device types function entirely within the host s SAP R 3 software system They allow SAP system users to conveniently print SAP application documents forms and labels directly from their SAPscript text processing system by using Printronix Graphics Language PGL bar codes and its set of fixed and scalable fonts Familiarity with the SAP System Administration screens SPAD will be needed We recommend reading the SAP Basis Component Printing Guide on the online SAP Help System as well as the The SAP R 3 Handbook J A Hernandez McGraw Hill 1997 Operation of the SAP R 3 Printing System The SAP R 3 Printing System has a proprietary spooling system to receive process schedule print and distribute documents requested for printing by SAP users The SAP spooling system performs two major functions 1 formats the document according to the parameters of the DEVICE TYPE assigned to the OUTPUT DEVICE printer and 2 communicates the formatted output data to the spooling system of the host computer system where the OUTPUT DEVICE 1s physically connected Basical

Download Pdf Manuals

image

Related Search

Related Contents

Installation - Blodgett Oven  Wolf 30" E SERIES User's Manual  Herbert Richter T5-94800 holder  

Copyright © All rights reserved.
Failed to retrieve file