Show TOC

Report Writer: Text Variables in Column Headings and in the Lead Column

Scope of Functions

From this Release you can use all the text variables offered in the report texts (e.g. in the headers) in column headings and in the lead column. There is no input help yet available for the insertion of a variable in a column or row text. You must use the following syntax:

The following key words may be used for the general text variables:

Key word Description
AUTH_RECORDS Number of database records without authorization
CLIENT Client number
CLIENT_TEXT Client name
COL_PAGE Number of page column
COL_TEXT Column text
CRE_DATE Date of report creation
CRE_TIME Time of report creation
CRE_USER Author of report
DATE Date of output
DOUBLE_HLINE Horizontal double line in report width
FACTOR0 Scaling for format group 0
FACTOR1 Scaling for format group 1
FACTOR2 Scaling for format group 2
FACTOR3 Scaling for format group 3
FACTOR4 Scaling for format group 4
FACTOR5 Scaling for format group 5
GEN_DATE Date of generation
GEN_TIME Time of generation
GEN_USER User name in the generation
HLINE Horizontal line in report width
INDX_NAME Name of the stored data set
LIBRARY Library
LIBRARY_TITLE Description of library
LOCAL_DATE Local date
LOCAL_TIME Local time
LOCAL_TIME_ZONE Local time zone
MT_DATE Master data date
NO_OF_COL_PAGES Total number of page columns
NO_OF_PAGES Total number of pages
NO_OF_PRI_PAGES Total number of printed pages
NO_VAR_REPORTS Number of variation reports
PAGE Page number
PRI_PAGE Number of printed page
REPORT Report name
REPORT_INDEX Index of report in the report group
REPORT_TITLE Report description
RGROUP Report group
RGROUP_TITLE Report group description
ROW_TEXT Row text
SECTION_TITLE Section description
SEL_DATE Date of selection
SEL_TIME Time of selection
SEL_USER User name in the selection
TIME Time of output
TOTAL_RECORDS Number of selected database records
UNIT Unit of current area (if unique)
UPD_DATE Date of last change to report
UPD_TIME Time of last change to report
UPD_USER User who last changed report
USER Name of user in the output
VAR_REPORT_INDEX Index of the variation report

Entering a text type is optional, for which you can choose from the following alternatives:

Text type Description
DESCRIPTION Description
VALUE Value (default)
TEXT or SHORT_TEXT Short text
LONG_TEXT Long text

Here it is the first letter of the key word that is significant. For the short text to a cost center you can therefore enter <KOSTL[S]>. If you do not enter a text type, the variable value is output.

Entering a value type is also optional and you can choose from the following alternatives:

Value type Description
GROUP/VALUE Value/Group (default)
SINGLE_VALUE or
REPRESENTATIVE_VALUE Single value
FROM_VALUE From value
TO_VALUE To value

It also suffices to use the first letter of the key word to select the value type (e.g. <KSTAR[L,F]> for the long text to the cost center from value).

You also have the option for all four types of text variable of entering an offset and a length for the replacement of the variable. Enter, for example, <GJAHR+2(2)> to output the last two digits of the fiscal year characteristic value.

To output the '<' character, use '<<>' in the text.

The old syntax for text variables to the selection parameters (name of the selection parameters with preceding '&' ) will be supported until further notice.

Examples

The following examples serve to clarify the use of the text variables. The examples refer to CO reports (table CCSS).

Example is replaced by the
<$FACTOR0> scaling of columns for
format group 0
<$UNIT> unit of current column or row
(if unique)
<&1GJAHR+2(2)> last two digits of
selection parameter 1GJAHR
(value variable) for current
fiscal year
<&1VERP[T]> text for selected plan version
<KOSTL[S,D]> 'cost center/group'
<KOSTL> cost center or cost center group
<KOSTL[S,T]> short text to cost center
or cost center group
<CSKS-VERAK> person responsible for the cost center