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: 

hardcoded

Former Member
0 Kudos

hi

what are the 3 ways of avoiding hard coded text.

1 declaring in constant

2 second is to use text element

what is the third way and how to use it .

i heard that we can use table TVARV check table but how do we use it ?

6 REPLIES 6

Former Member
0 Kudos

Hi

This table containes the variables in selection criteria.

Whenever u create select-options in a selection screen,

an entry is made in this table.

TVARV is the variant table and used to store the variants of a report.You do not need to create a new variant or keep changing an existing variant each time a value changes. Instead, you can change the relevant values in table TVARV.

Its an obsolette table in ECC 5.0 and the correct one will be TVARVC table.

We used to store the fiscal period variants in this table.

0 Kudos

can you plzzz give example

uwe_schieferstein
Active Contributor
0 Kudos

Hello

You may have a look into the SAP documentation:

<a href="http://help.sap.com/erp2005_ehp_02/helpdata/en/80/be58397e9d2e06e10000000a114084/content.htm">Specifying Selection Variables in the Program Variants</a>

Regards

Uwe

0 Kudos

i have read but i don't quite understand can anyone plzzz give concrete example

can you store and text in TVARV

Former Member
0 Kudos

say i want to fetch the contact person name for a sales office, it will be very difficult to change it time to time if u use any of the methods.

instead what u do is make entries in TVARV having Sales office and corresponding contact person under a variable name.

in ur programs u need to fetch this variable corresponding to ur sales office from this table before using it.

hope it makes clear

Former Member
0 Kudos

thx