With this API method, you can define values for input-ready variables of planning objects.
To call the method, use Application.Run and specify the following input parameters:
Enter the formula alias for the planning object. You can set the alias when configuring the planning object on the Components tab in the design panel.
Name or technical name of the variable to be filtered.
String that represents the value for the variable, for example the key. Note the syntax rules for entering values.
Single member as text.
Single member as key.
Single member with its internal key.
Complex selection of members.
Single member with its internal key.
With this value format, no immediate validation with the back-end system is executed. This improves the performance.
This format is only valid if you set the prompt value with its internal key and you use the syntax rule Equal To.
If the entered member is not valid, a message is displayed.
This parameter is optional. The default value is INPUT_STRING.
Dim lResult as long
lResult= Application.Run("SAPSetPlanParameter", "PF_1", "0TARGET_YEAR", "2013", "INPUT_STRING")
With this example, you set the variable 0TARGET_YEAR in planning function PF_1 to the year 2013.