Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help required: TVARVC

Former Member
0 Likes
1,460

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.

8 REPLIES 8
Read only

sridevi_p
Active Contributor
0 Likes
1,227

Hi,

The table TVARVC holds the client specific Variant variables.

Regards,

Sridevi

<i>* Pls. assign points, if useful</i>

Read only

Former Member
0 Likes
1,227

Hi,

YES ur rite.

In case of any changes no need to change the prog..they can change

it directly in TVARVC.

Kishi.

Read only

0 Likes
1,227

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?

Read only

0 Likes
1,227

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>

Read only

0 Likes
1,227

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?

Read only

0 Likes
1,227

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.

Read only

0 Likes
1,227

Thanks, but directly update TVARV or use any FM for that?

And, how abt using report variant instead of TVARV.

Read only

0 Likes
1,227

Any response on this?

Can I use direct select and update on TVARV, or any function modules for that?