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

Reading from a database view

Former Member
0 Likes
796

Im trying to read data from V_TVKBZ_ASSIGN view using the query *select * from V_TVKBZ_ASSIGN into zV_TVKBZ_ASSIGN where VKORG = gs_bapikna102_gwa-SALESORG VTWEG = gs_bapikna102_gwa-DISTR_CHAN SPART = gs_bapikna102_gwa-DIVISION.*

endselect.

However i get the error message " V_TVKBZ_ASSIGN" is not defined in the ABAP Dictionary as a table,projection view, or database view.

How do i go ahead with this query?

4 REPLIES 4
Read only

Former Member
0 Likes
718

hi Dexter Vaz

chk V_TVKBZ_ASSIGN is active mode or not ?

Regards

Deva

Read only

Former Member
0 Likes
718

Since V_TVKBZ_ASSIGN is a maintenance view you can't write select query for that. For select query it should be a database table or database view or projection view . Better you can write the select query for underlying tables of that view like

TVKBZ

TVBUR

TVKO

TVKOT

TVKBT

TASSIGN_SD_VKORG

TVKOS

TVKOV

TVTW

TSPA

TVTWT

TSPAT

Read only

0 Likes
718

Can you tell me that query?

Read only

0 Likes
718

ot it fellas thanks