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

SELECT STATEMENT TO CAPTURE A VIEW!!!!

Former Member
0 Likes
877

DEAR ALL,

I have an issue where I have to capture data from a maintanance view and I am not sure how to acomplish that.

V_TROLZ01 in the maintanance view and I am not able to read from this view.

SELECT * FROM V_TROLZ01 WHERE ALAND = 'US'

AND AZONE = 'MINSTER'

AND LLAND = 'US'

AND LZONE = 'JACKSON '

INTO ITAB_PLAN.

can any one suggest me some sample code to accomplish this

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
836

can some one please give examples of the select innerjoin statement to acpomplish the task of finding the route

6 REPLIES 6
Read only

Former Member
0 Likes
836

Hi,

You can use select statement only for database tables, projection view or database view.

You cannot use select statement on maintenance view..

Thanks,

Naren

Read only

Former Member
0 Likes
836

Hi,

You can get data from the underlying SAP databases (TROLZ, TTGR, ...) but not from V_TROLZ01 which is a maintenance view.

Please use select inner join statement between table TROLZ and TTGR on the TRAGR field for example.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
836

Hi,

maintenance view doesn't allow to retrieve data by select stmt. So u can get data by joining all table as view has done.

Read only

Former Member
0 Likes
836

Hello,

Maintenance View are used to create the Table maintenance for a table .

You might come across the SM30 of a table. For this a maintenance view is used. So you cant retrieve data from M view...

Vasanth

Read only

Former Member
0 Likes
837

can some one please give examples of the select innerjoin statement to acpomplish the task of finding the route

Read only

0 Likes
836

I think you can just Select from TROLZ, it has all the fields that you are using.

SELECT * FROM TROLZ
WHERE ALAND = 'US'
AND AZONE = 'MINSTER'
AND LLAND = 'US'
AND LZONE = 'JACKSON '
INTO ITAB_PLAN.