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

Regarding views

sreeramkumar_madisetty
Active Contributor
0 Likes
649

Hi Folks

I was developed a report and in that I am using the mara and makt tables.

Using the following I am fetching the data:

SELECT amatnr cwerks bmaktx bspras

amatkl amtart ameins aersda

INTO TABLE i_mara

FROM ( mara AS a INNER JOIN makt AS b

ON amatnr = bmatnr )

INNER JOIN marc AS c

ON amatnr = cmatnr

WHERE a~matnr IN s_matnr

AND a~matkl IN s_matkl

AND a~mtart IN s_mtart

AND a~ersda IN s_ersda

AND b~spras = 'EN'

AND c~werks IN s_werks.

But Client is not happy with the above statement's execution time so I need to reduce the execution time.

Can anyone help me that any Existed View is there for this purpose.

It's little bit urgent.

Regards,

Sreeram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
618

i have also replied to your previous thread

just check

V_MATNR or

V_MATNR_HU

views if they are satisfying that or not? have checked these?

regards

shiba dutta

5 REPLIES 5
Read only

Former Member
0 Likes
618

Hi,

I think, you have to limit the Material Type and Material Group with some restrictions on the selection screen. give No extensions.

little changes for the select statement.

SELECT amatnr cwerks bmaktx bspras

amatkl amtart ameins aersda

INTO TABLE i_mara

FROM ( mara AS a INNER JOIN marc AS c

ON amatnr = cmatnr )

INNER JOIN makt AS b

ON amatnr = bmatnr

WHERE a~matnr IN s_matnr

AND a~matkl IN s_matkl

AND a~mtart IN s_mtart

AND a~ersda IN s_ersda

AND c~werks IN s_werks

AND b~spras = 'EN'.

Just check this statement and restrict MTART and MATKL accordingly.

reward points if useful

regards,

ANJI

Read only

0 Likes
618

Hi Anji

Thanks for your reply.

What are the changes you did for this select statement.

Because i am not able to find any changes.

Regards,

Sreeram

Read only

0 Likes
618

Hi,

Just observe the sequence of data fetching.

first join MARA and MARC then MAKT.

and in the where condition also changed the sequence of fields.

reward points for useful answers

regards,

Anji

Read only

Former Member
0 Likes
619

i have also replied to your previous thread

just check

V_MATNR or

V_MATNR_HU

views if they are satisfying that or not? have checked these?

regards

shiba dutta

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
618

Hi

It's Answered.