Using Standard Text Variables in Report Texts 

Use

A standard text variable is an SAP-delivered variable, which you can enter directly into a report when defining report text. The system calculates the value for the variable based on current system records.

Author of report

Date of report creation

Time of report creation

Page number

The standard text variables Horizontal double line in report width and Horizontal line in the report width replace the %FILL- and %FILL= variables for filling a line with the non-alphabetic characters - and =.

Procedure

To enter standard text variables when defining report text on the Change <Text Position> <Report Name> in Language <Language Code> screen:

  1. Position the cursor at the point where you want to insert the variable and choose Insert ® Standard variables.
  2. The Standard Text Variables dialog box appears. A list of the standard text variables that can be used is displayed.

  3. Move the cursor to the standard text variable that you want to include in your report text and choose Choose.
  4. The text variable is inserted at the point where you positioned the cursor on the Change <Text Position> <Report Name> in Language <Language code> screen.

  5. If you want to change the parameters controlling the display of the text variable in the report output:
  6. a) Choose Edit ® Attributes.

    The Change Attributes dialog box appears.

    b) Enter the display attributes for the text variable:

    – Define whether the color used for the text variable is intense or the standard color.

    – Enter a color code if you want to display the variable in color.

    – Define the width of the text variable.

    – Define the offset for the text variable.

    For example, if you define a width of 20 and an offset of 5, characters 6 to 25 will be printed.

  7. You can use the following additional processing functions on this screen.
  8. Additional Processing Functions Change <Text Position> <Report Name> in Language <Language Code> Screen

    Choose

    Function

    Text ® Template

    Copy existing text as your report text (for example, header text from a different report or in a different language). You can then overwrite this text and save it.

    Text ® Save

    Save the report text.

    Text ® Delete

    Delete report text in all languages.

    Edit ® Cut

    Cut the selected variable and place it in the clipboard.

    Edit ® Copy

    Copy the selected variable and place it in the clipboard.

    Edit ® Paste

    Insert the contents of the clipboard at a selected position in the report text.

    Edit ® Insert row

    Insert a line for entering report text.

    Edit ® Attributes

    Change the parameters controlling the display of the text variable in the report output.

    Edit ® Page width

    Change the page width for entering report text.

    Edit ® Delete row

    Delete the text line.

    Edit ® Delete variable

    Delete the selected text variable.

    Insert ® Standard variables

    Insert standard text variables in the report text.

    Insert ® Selctn parameters

    Insert text variables for selection parameters in the report text.

    Insert ® Special variables

    Insert special text variables in the report text.

    Insert ® Characteristics

    Insert text variables for characteristics in the report text.

    Insert ® Frame

    Draw a frame around the report text.

    Insert ® Insert row

    Insert a line for entering report text.

    Extras ® Master language...

    Change the master language in which you want to enter the report text. (The logon language is automatically defaulted as the master language.)

     

  9. Choose Text ® Save.
  10. Choose Text ® Exit.

The variable appears on the Create Report: Texts screen.