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
780

Hi Experts,

How can we define the maintenance view (V_001_S) in program?Is it in Tables or Views? How to define? Give with example.

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
727

Hi Silviya,

I think you can't use Maintenance View in your ABAP program.

Read only

Former Member
0 Likes
727

Hi silvliya,

1. data : V_001_S like table of V_001_S with header line.

we can define like this.

*----


2. Sorry,

we can define like this,

but, we cannot use SELECT * from V_001_S

<b>(when we define it won't give any error,

but when we try to use select * ,

it will give error)</b>

bcos,

its a maintenance view

ie. its a collection of screens for

facilitation data entry into the table.

Its not a database view / projection view,

bcos such view actuaally

exist in the backend database.

regards,

amit m.

Message was edited by: Amit Mittal

Read only

Former Member
0 Likes
727

Hi Silviya,

You can either use <b>Projection view or DATAbase view</b>..

i dont think we can use Maintenace...

regards

satesh

Read only

hymavathi_oruganti
Active Contributor
0 Likes
727

u can use only databse view/ projection view in ur program.

to use a view, u can use the statement TABLES only. there is no statement like VIEW

Read only

Former Member
0 Likes
727

Hi Silviya,

You cannot directly use a Maintenance View in your report. However, in case you want to execute it and present the user with the maintenance screen, you can call transaction SM30 after setting parameters VIEWNAME as 'V_001_S' and UPDATE as 'X'. Here you will have to skip the first screen. This can easily be achieved by defining a new T-code with these settings and then calling this T-code from inside of your program.

Foe extracting data from a view it has to be a Projection or a Database View.

Hope this helps,

Regards,

Madhur

NB: Please do reward points if found helpful.