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

inner join

Former Member
0 Likes
546

Hi it is necessary to use data base view for inner join?

5 REPLIES 5
Read only

former_member632991
Active Contributor
0 Likes
519

Hi,

it is not necessary, you can use the tables.

Regards,

Sonika Ahuja

Read only

Former Member
0 Likes
519

No its not necessary to use database view for inner join.

For example:

select mkpfmblnr mkpfmjahr msegzeile msegbukrs msegbwart MKPFBUDAT MKPFCPUTM MSEGMATNR MSEGWERKS MSEGEBELN

MSEGEBELP MSEGERFMG

INTO TABLE ht_mkpfmseg

FROM MKPF INNER JOIN MSEG

ON mkpfmandt = msegmandt

AND MKPFMBLNR = MSEGMBLNR

AND MKPFMJAHR = MSEGMJAHR

where mkpf~budat > '20040721'.

I hope it helps.

Best Regards,

Vibha

<b>*Please mark all the helpful answers</b>

Read only

Former Member
0 Likes
519

Hi Padmam,

You can use views for joining. It is not mandatory that you should use views while joining.

But one point you should remember is;

<b><i>Database views</i> implement an <i>inner join</i>. The other view types implement an <i>outer join.</i></b>

Please refer the following link for more information,

http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm

<i><b>

Best Regards

Ali S</b></i>

Read only

0 Likes
519

> But one point you should remember is;

> ]<i>Database views</i> implement an <i>inner

> join</i>. The other view types implement an <i>outer

> join.</i></b>

Just to be absolutely correct - there is a special view type "Projection View", where no join used at all

Read only

Former Member
0 Likes
519

Some more info:

DB views: inner join

Maintenance views: Outer join

Help views: Outer join

Projection view: Only fields of one table