Creating Formula Variables On the
Create Formula Variable: Basic Data
screen, enter the following data:
– Description of the variable
The name of the field used for the variable is defaulted as the variable description. You can change this description as required.
– A formula for the variable in the
Formula
field.
This field appears if the field name for which you are defining the formula variable is a numeric field. The formula determines the default value for the variable. See the table in Formulas for the operators that you can use in a variable formula.
You create a formula variable called YEAR (current year), which uses the user exit S001 to determine the current year. You enter this user exit as
‘#S001’
in the
Formula
field. You then refer to this formula in another formula variable called PR-YEAR (previous year). You enter this formula as:
‘&YEAR’ - 1
The system determines the current year using the value determined by formula variable YEAR, and then subtracts one year for the value of the formula variable PR-YEAR.
– An SAP standard or user-defined exit for the formula variable in the
Formula exit
field.
This field appears if the field name for which you are defining the formula variable is a
non-numeric
field. If you enter a user-defined exit, this user exit must be defined in a user exit form pool. You can specify the name of this form pool in Customizing for
Special Purpose Ledger
by choosing
Basic Settings
→
User Exits
→
Maintain Client-Independent User Exits
. Example user exits are defined in form pool RGSVU000.
The dimension Account (field name RACCT) is a non-numeric field. You cannot enter a formula; you must enter a formula exit name.
– Indicator that determines if the variable is an internal variable.
If you set this indicator, the default value of the variable cannot be changed when a report is run that uses the variable. If you do not set this indicator, the default value of the variable is displayed, and you can change it when a report is run that uses the variable.
– Authorization group for the variable, if required
You can use the following additional functions on this screen.
Additional Processing Functions - Create Formula Variable: Basic Data Screen
Choose |
To |
|
Change the variable type from a formula variable to a value variable. |
|
Display a list of existing user exits defined for formulas. |
|
Display a directory of variables. |
|
Display a directory of variables that are not used in the system. You can then delete these variables if required. |
|
Export variables to an external file. |
|
Import variables from an external file. |
|
Copy variables from client 000 (or another client) to the client in which you are working. |
|
Include a variable in a Customizing transport request and transport the variable. For more information, see the
|
To save the variable, choose
Variable
→
Save
.