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

Transactoin Code for Variant Variables

Former Member
0 Likes
1,190

Hi Experts:

What is the Tcode to maintain Variant Variables in R/3.

Thanks

Aaon

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,104

Hi:

The resaon I need it is because whenever the program is executed weekly or monthly, I would like the lower limit to remain fixed (that is no problem), and the upper limit to be the current date.

Thanks for your input

Aaon

8 REPLIES 8
Read only

ferry_lianto
Active Contributor
0 Likes
1,104

Hi,

Please try transaction SM30 with table TVARV.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,104

I think it is STVARV..

If not check for tvarv in SE93 , you will find it.

Thanks,

Srihari

Read only

Former Member
0 Likes
1,104

Thanks a lot for the quick response; I used SM30, table TVARVC.

In the Selection Options, I am trying to have the upper limit to be the present date or sy-date

Thanks again

Read only

0 Likes
1,104

Hey Aaon,

Good to know you were able create the variant parameter successfully.

Please close the thread by marking it 'Question answered'.

Regards,

Srihari

Read only

Former Member
0 Likes
1,104

Hi:

In the Selection Options, I am trying to have the upper limit to be the present date or sy-date, is there a way to do this?

Thanks again

Aaon

Read only

0 Likes
1,104

I am not too sure if you can do that.

But if you do need current date, why do we need a variant parameter ?

Just create a parameter in TVARVC table (for the lower limit), you can use that value and convert it into a range in your program.

Read only

Former Member
0 Likes
1,105

Hi:

The resaon I need it is because whenever the program is executed weekly or monthly, I would like the lower limit to remain fixed (that is no problem), and the upper limit to be the current date.

Thanks for your input

Aaon

Read only

0 Likes
1,104

How about doing this :

DATA : r_date type range of sy-datum.

r_date-sign = 'I'.

r_date-option = 'BT'

r_date-low = <lower limit date value> (either from TVARVC or anywhere else)

r_date-high = sy-datum.

Append r_date.

Now use this range r_date wherever you need it.