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

About TVARV table

Former Member
0 Likes
3,390

Hi Experts,

Can anybody help me out TVARV table.

Thanks in advance,

Nirmala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,787

Hi

SAP has provided this table to avoid hard coding of constant values in programs. TVARV table entries are transportable.

Rules to keep in mind:

- We don want to insert TVARV entries if the data elements / values already exist in SAP. We should build the logic to extract the necessary information from SAP. Some developers try to put such entries into TVARV table to simplify their coding efforts. But, that is not a recommended approach.

- We don want to insert if you have several records of similar type. Custom ?table is an option in such case. Eg: Activity Types & Descriptions.

- Good for all Constant values. E.g: Please check TVARV table entries (with Z* on name) in your dev. system.

reward me if it is useful to you.

Thanks,

Raghava Vakada.

Hi Experts,

Can anybody help me out TVARV table.

Thanks in advance,

Nirmala.

5 REPLIES 5
Read only

Former Member
0 Likes
1,788

Hi

SAP has provided this table to avoid hard coding of constant values in programs. TVARV table entries are transportable.

Rules to keep in mind:

- We don want to insert TVARV entries if the data elements / values already exist in SAP. We should build the logic to extract the necessary information from SAP. Some developers try to put such entries into TVARV table to simplify their coding efforts. But, that is not a recommended approach.

- We don want to insert if you have several records of similar type. Custom ?table is an option in such case. Eg: Activity Types & Descriptions.

- Good for all Constant values. E.g: Please check TVARV table entries (with Z* on name) in your dev. system.

reward me if it is useful to you.

Thanks,

Raghava Vakada.

Read only

SantoshKallem
Active Contributor
0 Likes
1,787

all the variants are stored here.

creation of variants is...

execute the program, give the values in selection screen and press save..

these values will store in this table..

regards.

santhosh reddy

Read only

0 Likes
1,787

Hi,

One more important aspect is that the table is client-indepandant(4.6 c). If you have multiple clients in your landscape, the same data exists in all clients.

Most of the times we can use create variables for which we can assign the date and timestamp(last run time). These variables can be used as selection variables for further processing.

You can create a parameters or select-options using the Tcode STVARV.

Regards,

Ashok

Read only

Former Member
0 Likes
1,787

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.

Check the links

[http://help.sap.com/saphelp_nw04/helpdata/en/c0/9803aae58611d194cc00a0c94260a5/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/c0/9803aae58611d194cc00a0c94260a5/content.htm]

[http://help.sap.com/saphelp_nw04/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm]

Hope this helps.

Thanks,

Balaji

Read only

Former Member
0 Likes
1,787

TVARV is the table Table of variables in selection criteria which gives the details of the Variants saved for the Selection screen of a program including the values of the selection screen parameters/fields

Chk these links.

Creating Table Variables in Table TVARV

http://help.sap.com/saphelp_nw04/helpdata/en/c0/9803aae58611d194cc00a0c94260a5/frameset.htm