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 data from View

Former Member
2,286

HI all,

Can anyone help me please. I want to read data from view with below simple program

Report zread_view.

DATA: it_t053 TYPE TABLE OF V_T053,

wa_t053 like line of it_t053.

*SELECT * INTO TABLE it_t053 from v_t053.*

LOOP AT it_t053 INTO wa_t053.

WRITE: / wa_t053-KURZT.

ENDLOOP.

But when activating this message is show:

'V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view.

Need for anyone help...?

Thanks,

Ramses

4 REPLIES 4
Read only

Former Member
0 Likes
1,313

hi,

which view you are accessing in the program? you can able to access only database view and projection view from prgram.

the view which you are using in the program is niether database view nor projection view. that is why you are getting that error message ''V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view".

hope this will help you.

Regards,

Kiran

Read only

Former Member
0 Likes
1,313

hai friend ,

instead of using v_t053 you can use the table t053 .

thanks,

anji.

Read only

Former Member
0 Likes
1,313

Hi folks,

After do checking, V_T053 is categorized as Maintenence View, but it is not possible to do select query from maintenance view..?

If I query directly from table T053, need to specify SPRAS = sy-langu.

But thanks for your all responds.

Rgds,

Ramses

Read only

Former Member
0 Likes
1,313

Hi,

Maintenance views do not store data. You cannot get data from v_157D since it is a Maintenance view.

Or else once you try using FM 'VIEW_MAINTENANCE_CALL'.