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.

Example Example

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 = .

End of the example.

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 Start of the navigation path Insert Next navigation step Standard variables. End of the navigation path

  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 Start of the navigation path Edit Next navigation step Attributes End of the navigation path .

    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

    Start of the navigation path Text Next navigation step Template End of the navigation path

    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.

    Start of the navigation path Text Next navigation step Save End of the navigation path

    Save the report text.

    Start of the navigation path Text Next navigation step Delete End of the navigation path

    Delete report text in all languages.

    Start of the navigation path Edit Next navigation step Cut End of the navigation path

    Cut the selected variable and place it in the clipboard.

    Start of the navigation path Edit Next navigation step Copy End of the navigation path

    Copy the selected variable and place it in the clipboard.

    Start of the navigation path Edit Next navigation step Paste End of the navigation path

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

    Start of the navigation path Edit Next navigation step Insert row End of the navigation path

    Insert a line for entering report text.

    Start of the navigation path Edit Next navigation step Attributes End of the navigation path

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

    Start of the navigation path Edit Next navigation step Page width End of the navigation path

    Change the page width for entering report text.

    Start of the navigation path Edit Next navigation step Delete row End of the navigation path

    Delete the text line.

    Start of the navigation path Edit Next navigation step Delete variable End of the navigation path

    Delete the selected text variable.

    Start of the navigation path Insert Next navigation step Standard variables End of the navigation path

    Insert standard text variables in the report text.

    Start of the navigation path Insert Next navigation step Selctn parameters End of the navigation path

    Insert text variables for selection parameters in the report text.

    Start of the navigation path Insert Next navigation step Special variables End of the navigation path

    Insert special text variables in the report text.

    Start of the navigation path Insert Next navigation step Characteristics End of the navigation path

    Insert text variables for characteristics in the report text.

    Start of the navigation path Insert Next navigation step Frame End of the navigation path

    Draw a frame around the report text.

    Start of the navigation path Insert Next navigation step Insert row End of the navigation path

    Insert a line for entering report text.

    Start of the navigation path Extras Next navigation step Master language... End of the navigation path

    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 Start of the navigation path Text Next navigation step Save End of the navigation path .

  10. Choose Start of the navigation path Text Next navigation step Exit End of the navigation path .

The variable appears on the Create Report: Texts screen.