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 on maintenance view.

Former Member
0 Likes
1,202

Hello Friends,

I have a quick question. I have a maintenance view, and I want to do a select statement on this view in an ABAP program, but seems like the view is not filled with data when running the program.

How do I get the view to be populated at runtime in the ABAP program? the work area and the internal table is TYPE of the view..

Here's the code:

select * into wa

from view

where bukrs = P_BUKRS

vtweg in S_CHNL.

append wa to it.

endselect.

best regards B

6 REPLIES 6
Read only

Former Member
0 Likes
942

HI,

try this way....

select * from view

into table it.

where bukrs = P_BUKRS

vtweg in S_CHNL.

Read only

Former Member
0 Likes
942

Hi

for maintanence view we con't write Select Stmt .

Read only

0 Likes
942

Ok, thanx.

Where can I see which tables the view gets it's data from.

In SE11 I only see the data-elements for the fields ...

Read only

0 Likes
942

Hi ,

In SE11 when you see the join , there is a tab with the name Table/Join Condition , there you will get the table and the condition based on which the data is displayed.

Regards

Arun

Read only

Former Member
0 Likes
942

Hi ,

To the extent i remember you can only use a database view in select statement .

Regards

Arun

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
942

Hello B,

Just to inform you: "You can select data only from Database Views".

You can design a work-around for this, by taking look @ the Join tables. May i know form which View you want to get the data?

BR,

Suhas