1. Procedure to load the device type ZTALLY and the chacter set 9130:
	   Please copy the files ZTALLY.PRI and S9130.CPA to a directory on your PC    

2. Import:
   
      Login and start SE38 (ABAP Editor)

    Run report RSTXCPAG to load S9130.CPA

      Upload/Download of Character Set Definitions (Code Pages)
      Character set number              : 9130
      File name                               : /tmp/S9130.CPA
       Download (R/3 -> Dataset) :
       Upload (File -> R/3)     : X
       Update/delete when uploading. : X

     
     Run report RSTXSCRP to load the device types ZTALLY.PRI
 
       SAPscript Export to Dataset / SAPscript Import from Dataset
       Device type                  X
       Layout set
       Style
       Standard text
       Object name                  ZTALLY
       Mode  (EXPORT,IMPORT)       	IMPORT
     Ctrl parameters for file operation
        File system:  Server        
        File system:  GUI		X
        Dataset name                /tmp/********&&&&
          Binary file format
          Display dataset contents
     Control of language versions
       Language vector
          Only export original language
 

   up from Rel. 4.5
                                                                        
   call transaction SPAD / Utilities / device types / import
   following screen appears:

 Object selection and session ctrl                                                                                   
    Form                                                                            
    Style                                                                           
    Standard text                                                                   
    Text ID    ST                                                                   
    Language   EN                                                                   
  X Device Type                                                                     
  Object name                     ZTALLY                                            
  Mode (EXPORT/IMPORT)            IMPORT                                            
                                                                                    
 Ctrl parameters for file operation                                                                                  
  X From/on frontend                                                                
    From/on application server                                                      
  Dataset name                    C:\temp\********&&&&                              
    Binary file format                                                                                
    Display dataset contents                                                                                
 
 Control of language versions                                                                                 
  Language vector                                                                   
                                                                                    
                                                                                   
3. The file locations of ZTALLY.PRI and S9130.CPA will be prompted

up from Rel. 4.7 / 6.20
To convert the codepage 9130 to unicode, the report RSCP0126 has to be started.
The action below may be accomplished by starting the transaction SPAD / Full Admin. / Goto / Cache Control
(Output Device=ZTALLY, Codepage=9130).
                                                                        

  
  And, after installation / IN CASE OF PROBLEMS:
  a) Reset the Cache of SAPscript.
     Report RSTXDELL. (client = '*')
  b) Reset the character code cache     
      Transaction SP12.
      ->character sets->Conf. buffer(CCC) ->Invalidate CCC
     The reset is only valid on the actual instance. Therefore you have to 
     connect on the instance on which the spool work process is running
  c) Restart of the spoo work process
     Transaction SM50.
     Cursor an type "SPO"
     ->Process ->cancel without core


                                                              
Possible modifications and default sets:

Create a copy of the ZTALLY device type 
(transaction SPAD, Utilities, For device types, Copy device type)

(removing the #-sign will enable the function)

at the device formats in Printer initialization


Setting of the print quality:
# normal print quality (Draft)                                 
\e\0x5B\0x30\0x79                                              
# set print quality (Fast Draft)                               
# \e\0x5B\0x31\0x31\0x79                                       
# set print quality (NLQ)                                      
# \e\0x5B\0x31\0x79                                            
# set print quality (LQ)                                       
# \e\0x5B\0x31\0x32\0x79             
                          
cut / move paper in tear-off position
# cut / move paper in tear-off position (optional)             
# \e\0x5B\0x35\0x31\0x7B    

printhead lift off at fold                               
# printhead lift off at fold (optional)                        
# \e\0x5B\0x31\0x2B\0x76    


Input bins:
# Set Input Bin (Fanfold)
# \e\0x5B\0x35\0x7B
# \e\0x5B\0x36\0x7B
# \e\0x5B\0x37\0x7B

# Set Input Bin (Sheet)
# Front
# \e\0x5B\0x32\0x31\0x7B
# Rear
# \e\0x5B\0x32\0x32\0x7B
# Optional Bin 3
# \e\0x5B\0x32\0x33\0x7B
  

In SAPSCRIPT:

Set the Print quality using PRINT-CONTROL commands

\: PRINT-CONTROL SF900	(Draft)                                                                      
\: PRINT-CONTROL SF901	(Fast Draft)                              
\: PRINT-CONTROL SF902	(NLQ)                                
\: PRINT-CONTROL SF903	(LQ)

Set input bins using the print controls (Ressource)
for Fanfold:
TRY01 	        tractor 1
TRY02		tractor 2
TRY03		tractor 3

for Sheet:
TRY04		feeder 1
TRY05		feeder 2
TRY06		feeder 3

LCP-Font:
Useable as barcode 
Z_LCP_00
should be defined as standard barcode and will be useable afterwards (SAP note 5996)
The princontrols are SBP25 (Prefix)und SBS25 (Suffix)
SBP25: 1B5B3F31317E1B505343311B5C1035190F
SBS25: 0F1B5B3F31307E
Attention, the characters 35 (hex.) at the end of the sequence is the scaling factor (=5) and should be modified..

