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

Tvarvc Table

Former Member
0 Likes
992

Hi Gurus,

I have a condition where I need to pull an information from TVARVC table, I have an entry in Tvarvc "N_days" where the no. of days are stored.

And now I need to pull that entry and need to store in a variable.

As of now I ahve written the following code:

select * into table it_tvarvc

from tvarvc

where name = 'N_days'.

thanks

Rajeev Gupta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

If there is only one record and if it is say a parameter TVARVC-TYPE = 'P', then all you have to do is this

DATA: v_value LIKE tvarvc-low.

SELECT SINGLE low FROM tvarvc INTO v_value WHERE name = 'N_DAYS' AND type = 'P' AND numb = '0000'.

Hi Gurus,

I have a condition where I need to pull an information from TVARVC table, I have an entry in Tvarvc "N_days" where the no. of days are stored.

And now I need to pull that entry and need to store in a variable.

As of now I ahve written the following code:

select * into table it_tvarvc

from tvarvc

where name = 'N_days'.

thanks

Rajeev Gupta

1 REPLY 1
Read only

Former Member
0 Likes
639

If there is only one record and if it is say a parameter TVARVC-TYPE = 'P', then all you have to do is this

DATA: v_value LIKE tvarvc-low.

SELECT SINGLE low FROM tvarvc INTO v_value WHERE name = 'N_DAYS' AND type = 'P' AND numb = '0000'.