Inicio del área de contenido

Procedimiento Variables for Texts Localizar documento en árbol de navegación

If you want to use variables to define the texts in the headers of columns or rows, you need to use text variables. For example, if you use a variable for a characteristic value when defining a report, the system does not yet know the text for this value. Here you can use a text variable.

Text variables can only be used in form reports. They are defined in the form itself and replaced when you execute the report.

Certain text variables, such as &0RESULT (text for the totals row in a report), are delivered with the standard R/3 system. You can which standard text variables exist in your application in the transaction for variable maintenance.

Using variables for texts

You can enter a text variable anywhere where you can enter texts in a form.

Global variables need to be defined in Customizing before you can enter them in a text field of a form. To maintain global variables, see Overview: Variables.

For local variables, you need to enter $ followed by a name for the variable. You can enter the local variable in the row or column text itself, or in the dialog box where you enter short, medium and long texts. Once you have entered a local variable, you need to maintain it.

Maintaining local variables for texts

Like variables for characteristic values, you can maintain local text variables under the menu option Extras   ® Variables   ® Characteristic value ® Maintain variable . To edit local variables, click on Este gráfico es explicado en el texto respectivo or choose Extras ® Variables ® Variable definition. The system then displays a dialog box containing a list of the local and global variables used in the form. You can specify for each local variable whether or not it must be replaced with a fixed value in the report. If you do not maintain this, the system will assume that it is a mandatory entry. You can also maintain texts for local variables here.

For variables for texts, the replacement type determines how you need to proceed. In most cases you will probably choose to store a replacement path so that the system can determine the text automatically from the master data. Note that the system can only automatically replace those variables which refer to an element with characteristics, and only if you selected the desired characteristic when you defined the element.

You need to specify the text length when you define the variable. The name of a local variable can have up to 8 characters. If you choose, replacement by manual entry, the text length is identical with the length of the variable name.

Nota

Note that in the characteristic field Period/year , the period is at the end of the field. If you want to replace a text variable with the current period, you need to enter the following in the Chosen field group in the Detail dialog box: value 6, length 3.

For a detailed example of how to use variables for texts, see Example: Use of Variables.

 

 

Fin del área de contenido