‎2007 Apr 09 3:05 PM
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
‎2007 Apr 10 7:16 AM
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
‎2007 Apr 09 3:11 PM
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
‎2007 Apr 10 6:51 AM
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
‎2007 Apr 10 6:54 AM
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
‎2007 Apr 10 7:16 AM
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
‎2007 May 23 8:49 AM