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

maintenance view

Former Member
0 Likes
1,499

hi all,

I want to retrive data from V_TCURR view. As this is maintenance view so i am not able to retrive data from maintenance view by using select statement. It shows syntex error. So Please provide me the way we can retrive data from MAINTENANCE VIEW.

Thanks

Babbal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,052

Hi,

You can select data only if it is a database view.

You will not be able to do a select on a maintainance view.

If you want to select the data; check the tables of the view and do accordingly.

Regards,

Ankur Parab

8 REPLIES 8
Read only

Former Member
0 Likes
1,053

Hi,

You can select data only if it is a database view.

You will not be able to do a select on a maintainance view.

If you want to select the data; check the tables of the view and do accordingly.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
1,052

Hi Babbal,

You can't use the select query for the Maintenance Views.

you can directly use the tables which are using in that Maintenacne Views.

in your case for the View V_TCURR, the table using is TCURR.

So directly hit that table using the select query. it solves your problem

Thanks!!

Read only

Former Member
0 Likes
1,052

Hi,

A maintenance view permits you to maintain the data of an application object together. The data is automatically distributed in the underlying database tables. The maintenance status determines which accesses to the data of the underlying tables are possible with the maintenance view.

Hence it would be easy to retrieve the data from the DB tabke using select query in our case here its TCURR,

So go on

Thanks and Regards

Srikanth.P

Read only

Former Member
0 Likes
1,052

Use table TCURR instead of V_TCURR.

Read only

Former Member
0 Likes
1,052

Hi Babbal,

Instead of trying to fetch records from maintenance view, you can write a select statement on database table TCURR, which has all the data that is present in V_TCURR.

Hope this may work.

Regards,

Prashant Gaikwad

Read only

Former Member
0 Likes
1,052

you cant fetch data from maintanance view just select data from TCURR table it will help you

Read only

Former Member
0 Likes
1,052

Why dont you use FM

CONVERT_TO_LOCAL_CURRENCY

if your requirement is to get the currency conversion. This is better way than getting the data from table and then using tfact and ffact factors.

Read only

Former Member
0 Likes
1,052

Dear babbal,

select statement cant be on a Maintenance Views.what you can do is go directly to the tables which are using in that Maintenacne Views.in your case for the View V_TCURR,so you can use TCURR.

Cheers

fareed