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

Read data from View

Former Member
0 Likes
2,234

Hello All

How can we read/select data from a view. I have written a select query for that but I m getting syntax error like "

"V_TVST" is not defined in the ABAP Dictionary as a table,

projection view or database view.

How can I go about this ?

Thanks

Tharani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,090

Hi !

The "Data-Tables" or often similar named as the "views".

In your example the data are possibly in table TVST.

You cannot select to V_TVST becase it is a logical View for the SM30 and not a view that is created as a databse view in SE11.

Regards

Rainer

Some forum points would be fine if that helped you a bit...

5 REPLIES 5
Read only

Former Member
0 Likes
1,090

Hi,

V_TVST is a <b>Maintenance View</b>.

You can only read data from projection view or database view.

Regards,

Wenceslaus.

Read only

0 Likes
1,090

then what is the way that I can get data from a maintenance view?

Thanks

Tharani

Read only

Former Member
0 Likes
1,091

Hi !

The "Data-Tables" or often similar named as the "views".

In your example the data are possibly in table TVST.

You cannot select to V_TVST becase it is a logical View for the SM30 and not a view that is created as a databse view in SE11.

Regards

Rainer

Some forum points would be fine if that helped you a bit...

Read only

0 Likes
1,090

Hi,

You can get data from the underlying SAP databases ( TVST

TVSTT) but not from v_tvst which is a maintenance view.

<b>Make a join between TVST and TVSTT on the VSTEL field.</b>

Ps: Reward helpful posts.

Regards,

Wenceslaus.

Read only

Former Member
0 Likes
1,090

the values entered in v_tvst r stored in database table tvst...

u can use that for ur selection.

regards,

Bikash