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: 

finding views

Former Member
0 Kudos

hi dar

how to see whether there is any view provided by SAP on those base tables?

4 REPLIES 4

Former Member
0 Kudos

Hi,

Just do a where used list on the tables and select views in that.

Regards,

Atish

0 Kudos

hi atish,

thans for responce.

i am joining on mseg and mkpf . but i got a view V_MKPF. i know it will give better performance with view.

but i got only few fields available in view, where as i need lot of fields from mseg and mkpf.

am giving my code here. this statement is used 5 times with a change in two field values in where clause.

SELECT

a~mblnr

a~zeile

a~mjahr

a~werks

a~lgort

a~matnr

a~menge

a~meins

b~budat

b~cpudt

b~cputm

a~aufnr

a~lgnum

a~lgpla

a~tbnum

a~bwart

a~ebeln

INTO TABLE gt_mseg

FROM mseg

AS a INNER JOIN mkpf

AS b ON amblnr = bmblnr

AND amjahr = bmjahr

FOR ALL ENTRIES IN gt_matnr "MB

WHERE a~bwart IN gr_bwart

AND a~matnr EQ gt_matnr-matnr "MB

AND a~werks EQ p_werks

AND a~lgort EQ p_lgort

AND a~kzbew EQ 'B'

AND b~cpudt GE gw_ref-l_date

AND a~lgnum EQ p_lgnum.

plz suggest!

0 Kudos

Hi,

In such case create one more custom view and use that in program.

Creating a view with all your required fields is the better option as it will have good performance as well.

Regards,

Atish

Former Member
0 Kudos

hi