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

Data Dictionary

Former Member
0 Likes
925

Hi

How do we Write a Select Statment for View table in program

Regards

Sai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
903

Hi,

view doesnt have any physical storege like tables, so u cant write select on views.

Regards

Nilesh

8 REPLIES 8
Read only

Former Member
0 Likes
904

Hi,

view doesnt have any physical storege like tables, so u cant write select on views.

Regards

Nilesh

Read only

hymavathi_oruganti
Active Contributor
0 Likes
903

select <data> from <table>/<view> into table <itab>

Read only

0 Likes
903

Hi Hymavati

Thz for ur answer .ok if i am using more than one table with 4fields from 1 table and 4 fields from 2nd table wat would be the select query

Regards

sai

Read only

0 Likes
903

HI ,

For using more than one table with 4fields from 1 table and 4 fields from 2nd table , use a join condition in your select querry ... this should solve your prpblem ...

Regards,

Ranjita

Read only

Former Member
0 Likes
903

hello sai,

you can use <b>select * from</b> or its variants only if you are selecting from a database table, projection view or database view. if its a maintance view you can write seperate select queries for each database table.

Regards,

Mithun

Read only

Former Member
0 Likes
903

hi sai,

we can write select statement for view as u write select statement for data base table.

regards,

seshu.

Read only

Former Member
0 Likes
903

Hi Sai

The select query for view table looks like,

SELECT * FROM DD01V

WHERE DOMNAME LIKE 'CHAR%'

AND DDLANGUAGE = SY-LANGU.

ENDSELECT.

REWARD IF USEFUL...!!

Read only

0 Likes
903

Hi,

Format of a Select with a join

SELECT AFIELD1 AFIELD2 AFIELD3 AFIELD4

BFIELD5 BFIELD6

from TABLE1 As A TABLE2 as B

where

( Give the where clause)

on (Give the join Condition inner join / outer join & the respective fields)

Kindly reward helpful answers,

Regards,

Gaurav