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

Former Member
0 Kudos

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

Former Member
0 Kudos

HI,

try this way....

select * from view

into table it.

where bukrs = P_BUKRS

vtweg in S_CHNL.

Former Member
0 Kudos

Hi

for maintanence view we con't write Select Stmt .

0 Kudos

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 ...

0 Kudos

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

Former Member
0 Kudos

Hi ,

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

Regards

Arun

SuhaSaha
Advisor
Advisor
0 Kudos

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