2008 Mar 11 3:10 PM
Hi Experts,
Can anybody help me out TVARV table.
Thanks in advance,
Nirmala.
2008 Mar 11 3:19 PM
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.
2008 Mar 11 3:19 PM
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.
2008 Mar 11 3:23 PM
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
2008 Mar 11 3:28 PM
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
2008 Mar 11 4:02 PM
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
2008 Mar 11 5:03 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |