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: 

select data from view ( V_T856 ).

Former Member
0 Kudos

Hi All,

i need to download transaction type and text from V_T856 , but the data is not selected from V_T856 view.

how to select data from a view, is there any special conditions.

i declared V_T856 in tables statement, even though select statement not exicuted.

pls suggest me with relevant information..

thank you

Regards

Ramesh.

1 ACCEPTED SOLUTION

Former Member

hi ramesh,

using Select statement you cannot retrieve the data from view.

use the FM - VIEW_GET_DATA.

call function 'VIEW_GET_DATA'      " func. mod to get data from maintenance view.
    exporting
      view_name = view 
    tables
      data      = gt_data.

Regards,

Sakthi.

2 REPLIES 2

Former Member

hi ramesh,

using Select statement you cannot retrieve the data from view.

use the FM - VIEW_GET_DATA.

call function 'VIEW_GET_DATA'      " func. mod to get data from maintenance view.
    exporting
      view_name = view 
    tables
      data      = gt_data.

Regards,

Sakthi.

Former Member
0 Kudos

Hi Rajesh ,

Since the view V_T865 is a Maint. view hence you cannot use select statement to retreive data from it , only database views can be used in select statements.

The solution i would suggest it to use a Join statement on T856 and T856T tables to get the data.

Regards,

Arun