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

Table for storing variant data

surya_gupta3
Explorer
0 Likes
1,134

Hi,

Could anybody tel me that which database table is used by SAP to store variant data?

I want to change the variant details of a particular variant each time I run the program. I do not want to change the variant rather I want to change the data of the variant. So I need to know, which database should I try to modify to change my saved data in Variant.

Thanks & regards,

Surya

7 REPLIES 7
Read only

Former Member
0 Likes
983

Please chec VARID.

Kind Regards

Eswar

Read only

0 Likes
983

Eswar, VARID stores information about variant itself and does not stores data saved by user while creating variant. Could you please help me finding the exact table where the data is getting stored.

Regards,

Surya

Read only

Former Member
0 Likes
983

Hi,

you can try

VARI

VARID

VARIT

VARICON

VARICONCI

VARIDESC

Regards,

pankaj singh

        • mark all helpful answers

Read only

Former Member
0 Likes
983

Hi Surya,

The variant information is stored in the table VARID(Variant directory).

But the variant detials can be changed by you everytime you run the program by just modifying the values on the selection screen itself. You don't need to modify the variant table for the same.

Regards,

Chetan.

PS:Reward points if this helps.

Read only

0 Likes
983

I didn't tell what exactly I want to do.

I want to run a t-code with a fixed variant name. Now the program requirement is to get the time and date when the t-code/program was last run. I have taken parameters for both time and date on selection screen. I will save variant specifying some initial value for this date and time. Now each time the program runs, I will update the data in database to change the date and time so that I can find out the last date and time the program/t-code was run.

This is the best way i think to know the last date and time a program was run. My intension is to avoids creating a Z table to store this information.

I hope you can understand the intension for finding out the table name where the data is getting stored for a particular variant. I you have some idea, where can this data would be, please help me.

Thanks & Regards,

Surya

Read only

Former Member
0 Likes
983

Hi Surya

Please try using FM: <b>RS_VARIANT_VALUES_TECH_DATA</b>. I guess this should help you.

Just checked your reply, a combination of above FM and <b>RS_CHANGE_CREATED_VARIANT</b> should do the task. Please check.

Kind Regards

Eswar

Read only

Former Member
0 Likes
983

You can also use FM RS_VARIANT_SCREEN to create, change and delete the values in a variant.

Thanks,

Santosh