Setting Parameters 

This section provides summaries of profile parameters used by the spool system for access method L, local printing. See the profile parameter documentation, available online in transaction RZ11, for more information. Note that you need no longer set commands for access mode L in system profile parameters. Instead, you can define command sets in device definitions that use access method L.

You can configure the R/3 formatting programs with the system profile parameters shown in the list below. You may have to change default values in some UNIX systems in order to accommodate manufacturer-specific print commands. In other operating systems, no change from the default values of these parameters is necessary.

In Windows systems, the SAP spool system uses the Windows application interface for printing. You therefore do not need to set any spool parameter that specifies a print command or response format. No harm is done if the parameters are set, however.

The spool system itself is internally configured.

For more information, see the Computing Center Management System documentation.

Not required for Windows systems.

To have the formatting program pass spool request attributes to the host spool, you can enter the following variables in the command text:

&P

The host-system name of the output device

&F

The name of the file to be printed. The name is supplied in the rspo/to_host/data_file parameter, described below.

&C

The number of copies to print.

&& :

A single '&'

&I :

Job name of the SAP spool

&J :

Job name of the SAP spool, with database name

&L:

Format (layout)

&M :

Client of the owner

&O :

Owner

&m :

Client of the user printing

&o :

User printing

&t :

Telephone number (FAX)

&T :

Title

&R :

Recipient (cover sheet)

&D :

Department (cover sheet)

&S :

R/3 name of the output device

&Y :

Priority

&U :

UNIX cover sheet required? ('N'=no, 'X'=yes, 'D'=default)

&N

Spool request number

&n

Output request number

To pass this information to a shell script or UNIX command, replace the profile value of rspo/host_spool/print, with a statement similar to:
/usr/local/bin/print &P &F &C &L &R &D

The value of rspo/host_spool/print is usually set to:
/usr/bin/lpr -P&P -J&F -h -#&C &F 2>&&1; /bin/rm &F

To determine the print command for your host system, consult the system documentation. Some sample commands include the following:

Host system

Print command

HP-UX

/usr/bin/lp -d&P -n&C -onb -or &F; rm &F

AIX

qprt -dp -P&P -Bnn -N&C -r -R14 -X850 &F

OSF/1

/usr/ucb/lpr -P&P -J&F -h -#&C &F 2>&&1;/bin/rm &F

SINIX and Spool 4.x

/var/spool/Spool/config/cmd/xpadd -job -dr &F -de &P -fc &C -rw -rm

Other UNIX

/usr/bin/lp -d&P -n&C -c &F; rm &F

Solaris (see SAP Note 16149)

saplp &P &C &F where saplp is a shell script containing the following lines:
/usr/bin/lp -d"$1" -n"$2" -onb -or -c "$3"
/bin/rm "$3"

Windows NT

print /d:&P &F (default command), where &P is a printer port in the Windows NT System.

Not required for Windows systems.

You can enter the variables shown above in the description of the rspo/host_spool/print parameter in the command text.

A sample command is shown below:

Host System

Query Command

SINIX with Spool 4.x

/var/spool/Spool/config/cmd/xpstat

OSF/1

/usr/ucb/lpq -P&P

You should also set rspo/host_spool/print_answer_ignore1 to "Job Number is" to allow the spool system to recognize the query answer.

HP-UX, other UNIX

/usr/bin/lpstat -o&P

The name that you select must meet the following requirements:

The formatting program replaces these characters to create a unique file name.

In normal operation, these files are deleted almost immediately. Should you want to check the contents of these files, change the print command in rspo/host_spool/print so that the files are not deleted.

Default: 1K blocks. In some network environments, larger block sizes, such as 8K, cause communications problems.

Default: 60K. If it overflows, the buffer is automatically reorganized. The buffer is also reorganized if any character set is invalidated. Creation and reorganization of the buffer result in system log messages with the reference "Buffer RSTSCCC".

You should enlarge the buffer if automatic reorganizations occur repeatedly. Before enlarging the buffer, you must invalidate all entries as described under "Activating a Character Set" in Defining a Character Set.

 

  First Page of SAP Printing Guide