cancel
Showing results for 
Search instead for 
Did you mean: 

Weekly rolling of Variant

Former Member
0 Kudos

Hi

We are currently using customized table to roll variants date weekly (Cant use dynamic values as it is per date and we need weekly change).

Problem with this method is, if someone changes variant w/o clearing variant dates then rolling fails as variant is not able to pick the values from table and date range never gets updated.

Is there any know solution for this issue or can we use user exit to clear out date before variant is saved ?

Thanking You,

RP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pawar,

Check whether one of the function modules in the below link can be used

http://help.sap.com/saphelp_scm70/helpdata/EN/c0/980374e58611d194cc00a0c94260a5/frameset.htm

Regards

R. Senthil Mareeswaran.

Answers (2)

Answers (2)

former_member721730
Active Participant
0 Kudos

Hi Ratnakar,

Table TVARVC will helpful fo the rolling variant. It is only used for date range.

1. First created a variant in TVARVC with date range which variant is used in your program.

2. Create same variant for the program. When save the variant, in the variant attribute you can see the "Selection variable" option.

In that select "T" and in the "Name of the variable" select the variant from the TVARVC Table.

3. Create a custom program to modify the rolling period to update in the TVARVC table and schedule it as background job.

This program will change the variant period whenever the period changes.

Even you have the custom table it wouldn't helpful to keep the data range the table. However TVARVC variant will change the period automatically whenever the program variant used even some clear the period values.

Regards,

Saravanan V

Former Member
0 Kudos

Hi Ratnakar,

You can also lock the input parameters when saving a variant. In this process you will have lesser chance of manual error. If I have not understood your requirement correctly, kindly elaborate.

regards,

biplab