2007 Jul 04 9:13 AM
Dear All,
I have a report with two parameters, fiscal year and fiscal period.
Everytime the user executes the report, we should update this variant value in the report
program. For example, if the user runs the report for jan 2007, we update the variant with this
value. Next time the user tries to run the report for the same values, we should validate
the parameters with the variant value, and provide error message.
For this purpose, manually, Iam creating a variant for the report, and in the program,
Iam updating this using RS_VARIANT_CHANGE. Is this the right approach?
I was suggested to uset TVARVC. Can you let me know the purpose of it?
Thanks,
nsp.
Dear All,
I have a report with two parameters, fiscal year and fiscal period.
Everytime the user executes the report, we should update this variant value in the report
program. For example, if the user runs the report for jan 2007, we update the variant with this
value. Next time the user tries to run the report for the same values, we should validate
the parameters with the variant value, and provide error message.
For this purpose, manually, Iam creating a variant for the report, and in the program,
Iam updating this using RS_VARIANT_CHANGE. Is this the right approach?
I was suggested to uset TVARVC. Can you let me know the purpose of it?
Thanks,
nsp.
2007 Jul 04 9:27 AM
Hi,
The table TVARVC holds the client specific Variant variables.
Regards,
Sridevi
<i>* Pls. assign points, if useful</i>
2007 Jul 04 9:29 AM
Hi,
YES ur rite.
In case of any changes no need to change the prog..they can change
it directly in TVARVC.
Kishi.
2007 Jul 04 9:35 AM
So, now in this specific requirement, I will create two variants (one for fiscal year and another for fiscal period). In my report program, I will update the variant values with the selection parameters. Next time user runs the report, I will validate the parameters with the variant values. But how do I update TVARVC, If i can avoid direct update, which FM should I use?
2007 Jul 04 9:41 AM
you will find variants and program names in TVARV and TVARC. Here u will not get the data for variants.
If you want data for particular variant go for FM:
RS_VARIANT_VALUES_TECH_DATA
REPORT = your programe name
VARIANT = variant name
In TECHN_DATA u will get the data for that variant.
hope this is helpful.
Regards,
Sridevi
<i><b>* Pls. reward points</b></i>
2007 Jul 04 10:51 AM
Thanks for the reply.
Iam confused. This FM you specified, gives the report variant value.
Then, why do we need to create variant in TVARV? We may as well create a variant directly for the report, and use RS_VARIANT_CHANGE? Does it have any effect on multiple users running the report?
When do we create variant in TVARV?
When the variants are used across reports?
2007 Jul 04 10:55 AM
Hi nsp,
We create an entry in table TVARV or TVARVC whenever the program has to run based on the last run date. Here in your case it is fiscal year and another field.
You can directly update TVARVC table for a specific parameter. You can do this in your report after completing all the processing steps, you can extract data for the required parameters in INITIALIZATION event and can display them as default values on selection-screen. If user changes these values then you can validate for these entries in AT SELECTION-SCREEN event and provide the appropriate error message.
Hope it helps.
Regards,
Phani.
2007 Jul 04 12:20 PM
Thanks, but directly update TVARV or use any FM for that?
And, how abt using report variant instead of TVARV.
2007 Jul 05 4:50 AM
Any response on this?
Can I use direct select and update on TVARV, or any function modules for that?