Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How should SQL statement tune to improve performance about sales order

$
0
0

Dear experts

 

When I check my report in SE30, I find that the sql statement is rather time-consuming. I wonder whether the sql statement is be able to tune.

 

My sql statement is as below:

SELECT * INTO CORRESPONDING FIELDS OF TABLE itab_so
     FROM ZVBAKPUP_B
     WHERE  KUNNR IN s_kunnr
          AND  LFSTA NE 'C'
          AND  AUART IN (''KB', 'ZKB')
          AND  MATNR IN s_matnr
          AND  VKORG IN s_vkorg
          AND  NORMT IN s_normt
          AND  MAKTX IN s_maktx
          AND  WERKS EQ p_werks
          AND  ABGRU EQ ''.

 

The structure of aforementioned view is as below:

join condition.jpg

view field.jpg

 

Thanks in advance for your help.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>