‎2007 Mar 05 9:56 PM
Hi,
On a Std program, I have two parameter Settlement Period and Settlement Year.
I want to run this std program in the background with VAriant.
The values in these variable should change automatically for every new period/fiscal year.
I tried to user Selection variable. But no success. May be I am doing something wrong.
Can anyone suggest any solution??
- Harshad
‎2007 Mar 05 10:10 PM
Hi Harshad,
Once u enter the values you require on the selection screen and click on the SAVE button to save a variant, the Variant attributes screen comes up where you can provide a variant name and description.
On this screen there is a column called "Save field wthout values". If you check this option then the values to which the selection screen variables are defaulted will change dynamically.
So basically you have to default the selection screen new period/fiscal year in your program to the present values using a function module which im sure your using(if you need it ask me). Once you default them while saving the variant check the "Save field without values" check box against those fields.
Hope this helps you. Please award points if it does.
Regards,
Ganesh
Message was edited by:
Ganesh Chilakapati
‎2007 Mar 05 10:18 PM
Hi Ganesh,
Do you have any Idea which Values I should use in the "Selection VAriable" and "Name of the Variable Column"??
Also, maintaining these varible in TVARV Tables means we have to set some global value or We can give some formula also.
I have to do some calculation based on Sy-datum and then I have to assign those to those parameters.
- HArshad
‎2011 May 20 6:27 PM
Hi Harshad,
You can use the table update VARID, its containing the variant parameter.
If you are using any job just make report before to update this table with dynamic variant value details and your job will run with new variant parameter.
For changing variant parameter you can use function module FASU_RS_CHANGE_CREATED_VARIANT.
Regards
Dhirendra Pandit
‎2011 May 21 11:45 PM