‎2005 May 05 2:56 PM
Hello ,
I have store a group email address which would be used in several programs.. There are 2 options..
1. Create a custom/bespoke table to store it
2. Creating an entry in TVARV table...
Which of this could fall under "Best Practice"
Regards,
Samir
‎2005 May 05 3:46 PM
Hi Samir,
Is this just one constant group email address? Then I would suggest putting it on your selection screen as a parameter, default its value and leave it. That way when you schedule a job for the program in production, you can save it as a variant. Whenever there is a change to the email address, then you can just change the variant. Maintaining TVARV will need SM30 access in production which basis people would not find comfortable.
Also, the purpose TVARV is to have variant variables, by which I mean, you define(or use standard ones) a variable in TVARV whose value changes everytime you run your program like a date parameter that should always default to today + 10 days.
Using this table to store a constant value like your email address is not the suggested use of it.
Srinivas
‎2005 May 05 3:22 PM
‎2005 May 05 3:26 PM
http://help.sap.com/saphelp_47x200/helpdata/en/c0/98037ae58611d194cc00a0c94260a5/frameset.htm
This link explains it , basically I will define a variable in the table TVARVC..
SM31 --> TVARV
Create a new variable and assign a value to it..
Read the entry from using a select query..
Rgds,
Samir
‎2005 May 05 3:46 PM
Hi Samir,
Is this just one constant group email address? Then I would suggest putting it on your selection screen as a parameter, default its value and leave it. That way when you schedule a job for the program in production, you can save it as a variant. Whenever there is a change to the email address, then you can just change the variant. Maintaining TVARV will need SM30 access in production which basis people would not find comfortable.
Also, the purpose TVARV is to have variant variables, by which I mean, you define(or use standard ones) a variable in TVARV whose value changes everytime you run your program like a date parameter that should always default to today + 10 days.
Using this table to store a constant value like your email address is not the suggested use of it.
Srinivas
‎2005 May 05 4:02 PM
Hello Srini,
I went through this link,,
http://help.sap.com/saphelp_47x200/helpdata/en/c0/98037ae58611d194cc00a0c94260a5/frameset.htm
Please note that all are not report programs, some are print programs as well.. And trigerring is through message control..
Regards,
Samir.
‎2005 May 05 5:08 PM
You could also maintain your group as a distribution list in SAP Office.
Cheers,
Ramki Maley
‎2005 May 05 5:08 PM
Hi Samir,
TVARV is meant for variants and variants are meant for report programs. So if you are using it for print programs, then that means you are just using it as a table that stores a value rather than the intended purpose of this table.
You can as well create a Z table and store it there. This way, in future, if there is a requirement for additional email addresses, you can easily add to this table. But if it is in TVARV, you need to create that many entries as you have the email addresses.
Hope this clarifies the use of TVARV.
Regards,
Srinivas
‎2007 Sep 13 8:32 AM
Hi guys,
I have a requirment to change the variant value whenever fiscal period changes.
I have gone through this thread and came to kbow abt table TVARV.
how can i use it to change a field in variant dynamically (eg date = first day of fiscal period)..