Start of Content Area

Function documentation Variables for Printing Data on Cover Sheets  Locate the document in its SAP Library structure

There are two types of texts on cover sheets:

·        Static texts. These are texts that structure the cover sheet, such as field names like User Name, User Address, and so on.

The SAP R/3 cover sheet actions use the "TP_" variables of the spool system to print these texts. The “TP_” variables are translatable and are output in the language specified in the output device definition in the SAP R/3 spool system.

·        Dynamic texts. These are texts that output variable information such as the user’s name, number of pages, and so on.

The SAP R/3 cover sheet actions use three types of variable to output dynamic texts. These are spool, user address, and profile variables.

"TP_" Translatable Variables for Static Texts

The TP_ variables let you insert static texts, such as field names, in a cover sheet.

The standard set of TP_ variables with their default English translations is shown in the table below. However, you can add your own TP_ variables and your own translations of these variables. For more information, see Working with the  “TP_” Cover Sheet Variables.

"TP_" Variables: Static Texts on Cover Sheets

Predefined Variable Name


Default Value (English)

TP_CLIENT

C l i e n t

TP_COUNT

Number

TP_CREATE

created

TP_DEPART

D e p a r t m e n t

TP_DEVICE

Device

TP_DEVTYP

Device Type

TP_DTABSE

Database

TP_FORM

Format Type

TP_FROM

from

TP_HOST

host

TP_OUTREQ

Output request

TP_OWNER

Owner

Dynamic Variables: Spool, User Address, and Profile Variables

You can use any of the variables shown in the following tables in your cover sheet.

Enter the variables in the following format: $(<Variable>).

Each set of dynamic variables derives its values from a different source:

·        The "User" variables are replaced with the User address information in the user master record. These variables are listed in the "User variables" table below.

You can display the content of the user address variables. To do this, choose:

         System User Profile Own Data (displays your own address data)

         Tools Administration User Maintenance Users and then Goto Address (display address data for any user).

If you have maintained the address data in your user master records, then you can output these values on cover sheets by using the user address variables. For example, you can print a user’s name, room number, and telephone number as they are recorded in the user master record on a cover sheet.

·        The spool system variables are replaced by values that the spool system specifies during the generation of a spool request. These variables are listed in the second table below.

·        The profile variable in the third table is replaced with the value of the rspo/layout system profile parameter. The profile of the SAP R/3 server where the spool request was generated provides the value.

User Variables: Values for the Cover Sheet from the User Address Data

Variable

Meaning

$(USR_SALUT)

Salutation or form of address from the Form of address field

$(USR_NAME1)

First line of Name field

$(USR_NAME2)

Second line of Name field

$(USR_NAME3)

Third line of Name field

$(USR_NAME4)

Fourth line of Name field

$(USR_ABTLG)

Department field

$(USR_KOSTL)

Cost center field

$(USR_BUINR)

Building number field

$(USR_ROONR)

Room number field

$(USR_STRAS)

Street field

$(USR_PFACH)

PO Box field

$(USR_PSTLZ)

Postal code field

$(USR_PSTL2)

Zip Code extension field (neighborhood-level codes)

$(USR_ORT01)

First Location field

$(USR_ORT02)

Second Location field

$(USR_REGIO)

Region field

$(USR_LAND1)

Country key field

$(USR_TELNR)

Telephone no. field

$(USR_TEL01)

Extension field (first part)

$(USR_TEL02)

Extension field (second part)

$(USR_TELPR)

Private telephone number. (Not a data entry field in the user address screen. Value provided only if users’ private numbers are inserted directly in the USR03 table with an ABAP program.)

$(USR_TELX1)

Telex number field

$(USR_TELFX)

Telefax number field

$(USR_TELTX)

Teletex number field

 

Spool System Variables: Values Provided by the Spool System for the Cover Sheet

Variable

Meaning

$(ANZAHL)

Number of copies to be printed.

$(ABTEILUNG)

Department of the user who created the spool request.

$(ANGELEGT)

Date and time when the spool request was generated.

$(BENUTZER)

User who requested the print out.

$(DB)

Storage location of the output request.

$(DRUCKAUFTRAG)

ID number of the output request (sequential number starting with 1 and referring only to the output requests generated from a particular spool request).

$(DRUCKER)

Name of the destination output device, as defined in the SAP R/3 spool system.

$(DRUCKERTYP)

Type of output device, as defined in the SAP R/3 spool system.

$(DSN)

First part of the three-part name generated by the SAP R/3 System for spool requests. (See also the SUFFIX1, SUFFIX2, and TITLE variables.)

$(ERZEUGT)

Date and time when the output request was generated.

$(EIGNER)

User who generated the spool request. (This may be a different user than the creator of the output request in the BENUTZER variable).

$(EMPFAENGER)

The user to whom the print out should be delivered.

$(FORMULAR)

The spool format used for an output request. If the document is a SAPscript document, then this is also the name of the SAPscript form used to format the document.

$(GEDRUCKT)

Date and time when an output request was processed by the SAP R/3 spool system.

$(MANDANT)

Client in which an output request was generated.

$(PRIO)

Priority within the SAP R/3 spool system.

$(RECHNER)

The name of the host system in which an output was processed.

$(SPOOLID)

ID number of the spool request in the SAP R/3 spool system.

$(SUFFIX1)

Second part of the three-part name generated by the SAP R/3 System for a spool request. (See also the DSN, SUFFIX2, and TITLE variables.)

$(SUFFIX2)

Third part of the three-part name generated by the SAP R/3 System for a spool request. (See also the DSN, SUFFIX1, and TITLE variables.)

$(TITEL)

Name given to a spool request by a user. Shown instead of the spool name (variables DSN, SUFFIX1, and SUFFIX2) if defined.

 

Profile Variables: Values Supplied by the System Profile

Variable

Meaning

$(PARAM_)

The value of the system profile parameter rspo/layout.

This graphic is explained in the accompanying text SAP Printing Guide Start Page

 

 

End of Content Area