Application Development 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: 

TVARVC table

Former Member
0 Kudos

Hi All,

Can anyone provide me some information regarding the table TVARVC.

Thnx

5 REPLIES 5

Former Member

Aman,

SAP has a table TVARV for storing the variants.

A record may be created in TVARV for all the programs that require this kind of incremental records.

For Ex: the record could be 100Zmm10001 MM sequence rec where first part consists of client code and the program being run. Client code is required because TVARV does not has a field for client code. The second part is the description indicating the purpose what the record is created. This entire string may be posted in the Name field (char - 30).

The Type field ( char- 1) may be populated with P or S (Parameter or Selection)

Low field (char- 45) may be populated with '0001' when run first time and increment it by one in your program for downloading of the internal table

Don't forget to Reward points if found helpfull...

Former Member

[Maintaining Entries in Table TVARVC|http://help.sap.com/saphelp_nw70/helpdata/en/c0/9803ade58611d194cc00a0c94260a5/content.htm]

Reward Points if useful.

Former Member

Hi,

The table is used to store your program variants.

If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant.

You can create any number of variants for any program in which selection screens are defined. Variants are assigned exclusively to the program for which they were created.

You can also use variants to change the appearance of the selection screen by hiding selection criteria. This is particularly useful when you are working with large selection screens on which not all of the fields are relevant.

Reports, module pools, and function groups may have several selection screens. It is therefore possible to create a variant for more than one selection screen.

Variants are an interface between the user and the selection screen. They can be used both in dialog and in background mode, although their uses are slightly different.

For information on variants, pls refer:

http://help.sap.com/saphelp_nw70/helpdata/en/c0/980386e58611d194cc00a0c94260a5/frameset.htm

Regards,

Renjith Michael.

Edited by: Renjith Michael on Feb 7, 2008 9:39 AM

Former Member
0 Kudos

This should give you an idea of how to go about updating values in TVARC:

 TABLES: TVARVC, MARV. 

DATA: I_TVARVC LIKE TVARVC OCCURS 0 WITH HEADER LINE, 

* Get the fiscal year of the previous month 
SELECT VMGJA INTO (FISCAL_YEAR_LAST_MONTH) FROM MARV 
WHERE BUKRS = 'ABC'. 
ENDSELECT. 
I_TVARVC-NAME = 'ZFISCAL_YEAR_FOR_LAST_MONTH'. 
I_TVARVC-TYPE = 'P'. 
I_TVARVC-NUMB = '0000'. 
I_TVARVC-LOW = FISCAL_YEAR_LAST_MONTH. 
APPEND I_TVARVC. 
CLEAR I_TVARVC. 

MODIFY TVARVC FROM TABLE I_TVARVC. 

Reward if useful.