Show TOC

 Variables for Formulas

If you want use variables in the formulas of a form, you need to use formula variables. You can use formula variables only in form reports, and must define them in the form itself. They can be replaced in the same ways as text variables when you execute the report.

Note Note

Formula variables make it easy for you to simulate and project data.

End of the note.

Using variables for formulas

To use a formula variable in a form, call up the formula editor when you define the relevant element, and enter the variable there.

Global variables need to be defined in Customizing before you can use them in formulas. Using the pushbutton Switch text , you can display all the possible components of a formula. To maintain global variables, see Overview: Variables .

For local variables, you need to enter &$ followed by a suitable name.

To define the properties of a variable, click on or choose Start of the navigation path Extras Next navigation step Variables Next navigation step Variable definition Next navigation step . The system then displays a dialog box containing a list of the local and global variables used in the form. End of the navigation path

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